Class: THairlinePainter

Declaration: HairlinePainter.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TPainter

Inherited By:

None.

Purpose:

The THairlinePainter class derives from the base class that establishes painters. Painters are responsible for colors and patterns for graphics and images, and are associated with frame buffers. The THairlinePainter class handles line 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: THairlinePainter::~THairlinePainter

virtual ~ THairlinePainter ()

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: THairlinePainter::PaintHairlineSteppingInX

virtual void PaintHairlineSteppingInX (TLongPoint & currentPixel, Fixed subpixelYPosition, Fixed yFractionalStep, long stepsToTake, bool steppingRightward)

Interface Category:

API.

Purpose:

Calculates the image pattern along the horizontal axis.

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: THairlinePainter::PaintHairlineSteppingInY

virtual void PaintHairlineSteppingInY (TLongPoint & currentPixel, Fixed subpixelXPosition, Fixed xFractionalStep, long stepsToTake, bool steppingDownward)

Interface Category:

API.

Purpose:

Calculates the image pattern along the vertical axis.

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: THairlinePainter::PaintClippedHairlineSteppingInX

virtual void PaintClippedHairlineSteppingInX (TLongPoint & currentPixel, Fixed subpixelYPosition, Fixed yFractionalStep, long stepsToTake, bool steppingRightward, const TLongRect & clippingRect)

Interface Category:

API.

Purpose:

Calculates the image pattern along the horizontal axis, taking into consideration clipping boundaries.

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: THairlinePainter::PaintClippedHairlineSteppingInY

virtual void PaintClippedHairlineSteppingInY (TLongPoint & currentPixel, Fixed subpixelXPosition, Fixed xFractionalStep, long stepsToTake, bool steppingDownward, const TLongRect & clippingRect)

Interface Category:

API.

Purpose:

Calculates the image pattern along the vertical axis.

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: THairlinePainter::PaintBlock

virtual void PaintBlock (GDevCoordinate y, GDevCoordinate x1, GDevCoordinate x2, unsigned long count)

Interface Category:

API.

Purpose:

Fills the rectilinear area with the paint graphics.

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: THairlinePainter::THairlinePainter

  1. THairlinePainter ()
  2. THairlinePainter (const THairlinePainter & source)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called by the stream-in operators and derived classes.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: THairlinePainter::operator=

const THairlinePainter & operator =(const THairlinePainter & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

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.