Class: TSquareDotHalftone

Declaration: HalftoneDither.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

THalftoneDither

Inherited By:

None.

Purpose:

TSquareDotHalftone derives from THalftoneDither and overrides GetSpotFunction to implement a halftone screen where each halftone dot is square in shape.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TSquareDotHalftone::TSquareDotHalftone

  1. TSquareDotHalftone ()
  2. TSquareDotHalftone (GCoordinate angle, GCoordinate freq)
  3. TSquareDotHalftone (const TSquareDotHalftone &)

Interface Category:

API.

Purpose:

  1. Default constructor. Initializes frequency and angle to their default values of 72 dots per inch and 45 degrees, respectively.
  2. Creates a new TSquareDotHalftone object and initializes the angle and frequency to the specified values.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Call this function directly.
  3. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSquareDotHalftone::~TSquareDotHalftone

virtual ~ TSquareDotHalftone ()

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TSquareDotHalftone::operator=

TSquareDotHalftone & operator =(const TSquareDotHalftone & source)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function by using the operator in an assignment statement.

Parameters:

Return Value:

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

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSquareDotHalftone::operator>>=

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSquareDotHalftone::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TSquareDotHalftone::GetSpotFunction

virtual HalftoneSpotFunc GetSpotFunction () const

Interface Category:

API.

Purpose:

Gets a pointer to the function that implements the spot function. This class overrides THalftoneDither::GetSpotFunction to implement a halftone screen where each halftone dot is square in shape.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a pointer to the spot function.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not 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.