Class: TPainterMaker

Declaration: PainterMaker.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

This is the base class that retrieves painters for frame buffers. Painters are responsible for colors and patterns for graphics and images.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TPainterMaker::~TPainterMaker

virtual ~ TPainterMaker ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::UsePaint

  1. virtual void UsePaint (const TLongRect & bounds, const TPaint * paint, const TTransferMode * transferMode, const TSpanPainter * paintClass, const TGrafState & grafState, int whichPaint =0)
  2. virtual void UsePaint (const TLongRect & bounds, const TPaint * paint, const TTransferMode * transferMode, const THairlinePainter * paintClass, const TGrafState & grafState, int whichPaint =0)
  3. virtual void UsePaint (const TLongRect & bounds, const TPaint * paint, const TTransferMode * transferMode, const TBitmapGlyphPainter * paintClass, const TGrafState & grafState, int whichPaint =0)
  4. virtual void UsePaint (const TLongRect & bounds, const TShader * shader, const T3DSpanPainter * paintClass, const TGrafState & grafState, int whichPaint =0)

Interface Category:

API.

Purpose:

  1. Specifies a TSpanPainter painter to be used for the frame buffer.
  2. Specifies a THairlinePainter painter to be used for the frame buffer.
  3. Specifies a TBitmapGlyphPainter painter to be used for the frame buffer.
  4. Specifies a T3DSpanPainter painter to be used for the frame buffer.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.
  3. Call this function directly.
  4. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::DoneWithPaints

virtual void DoneWithPaints ()

Interface Category:

API.

Purpose:

Indicates that this application is done using painters for the frame buffer. This function frees resources that had been allocated for painters.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::StartDrawing

  1. virtual void StartDrawing (const TLongRect & bounds, unsigned long & boundsBottom, TSpanPainter * & activePainter, int whichPaint =0)
  2. virtual void StartDrawing (const TLongRect & bounds, unsigned long & boundsBottom, THairlinePainter * & activePainter, int whichPaint =0)
  3. virtual void StartDrawing (const TLongRect & bounds, unsigned long & boundsBottom, TBitmapGlyphPainter * & activePainter, int whichPaint =0)
  4. virtual void StartDrawing (const TLongRect & bounds, unsigned long & boundsBottom, T3DSpanPainter * & activePainter, int whichPaint =0)

Interface Category:

API.

Purpose:

  1. Starts the TSpanPainter painter rendering to the frame buffer.
  2. Starts the THairlinePainter painter rendering to the frame buffer.
  3. Starts the TBitmapGlyphPainter painter rendering to the frame buffer.
  4. Starts the T3DSpanPainter painter rendering to the frame buffer.

Calling Context:

  1. Call this function directly.
  2. Call this function directly.
  3. Call this function directly.
  4. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::StopDrawing

virtual void StopDrawing ()

Interface Category:

API.

Purpose:

Stops the current painter drawing to the frame buffer.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::InitializeStreamers

virtual TPixelStreamReader * InitializeStreamers (const TLongRect & bounds, const TTransferMode * transferMode, const TGImage & srcPixels, const TPixelBuffer & dstPixels, EPixelStreamReaderRequest readerRequest, const TGrafState & grafState, TLongRect & minimumEnclosure)

Interface Category:

API.

Purpose:

Initializes the pixel stream reader. This function specifies the source image that is to be read, along with the destination buffer for the output pixels and the type of pixel stream reader.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a pointer to the pixel stream reader for this graphic.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::DoneWithStreamers

virtual void DoneWithStreamers ()

Interface Category:

API.

Purpose:

Indicates that this application is finished using the pixel stream reader. Releases the pixel stream reader and frees resources that had been allocated for it.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::StartPixelTransfer

virtual void StartPixelTransfer (const TLongRect & bounds, unsigned long & boundsBottom, TPixelStreamWriter * & writer)

Interface Category:

API.

Purpose:

Starts the pixel transfer process. The pixels are read from the source object and written to the destination buffer.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::StopPixelTransfer

virtual void StopPixelTransfer ()

Interface Category:

API.

Purpose:

Stops the pixel transfer process.

Calling Context:

Call this function directly when you have finished transferring one pixel buffer to another.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TPainterMaker::TPainterMaker

TPainterMaker ()

Interface Category:

API.

Purpose:

Default constructor.

Calling Context:

Called by the stream-in operators. This constructor is for internal use only.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.