Class: TGConicEndCenterEnd

Declaration: Curve.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TGCurve

Inherited By:

None.

Purpose:

TGConicEndCenterEnd is one of several lightweight classes derived from TGCurve whose sole purpose is to disambiguate the constructors for arcs having similar arguments. Applications shouldn't define variables of type TGConicEndCenterEnd. Instead, use TGCurve and rely on TGConicEndCenterEnd only for its constructor. For example: TGCurve myCurve =TGConicEndCenterEnd( a, b, c ); This creates a curve as a conic with tangents perpendicular to ab and bc and centered about b.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive from this class.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TGConicEndCenterEnd::TGConicEndCenterEnd

  1. TGConicEndCenterEnd (const TGPoint & p0, const TGPoint & centerPt, const TGPoint & p2, bool otherArc =false)
  2. TGConicEndCenterEnd ()
  3. TGConicEndCenterEnd (const TGConicEndCenterEnd &)

Interface Category:

API.

Purpose:

  1. Constructs a conic arc with tangents perpendicular to p0p1 and p2p1 and centered about p1. If the vectors p0p1 and p2p1 are equal, then this generates a circular arc of less than 180 degrees. The curve is a rational quadratic Bezier, with the start and end points taken from p0 and p2, and the midpoint computed from the intersection of the lines perpendicular to p1p0 and p1p2.
  2. If the intersection of the lines perpendicular to p1p0 and p1p2 falls outside the wedge defined by p1p0 and p1p2, then a circular arc in the other direction is created. If the specified bool is true, then the remaining portion of the circle is created (that is, the arc is always greater than 180 degrees).
  3. Default constructor.
  4. Copy constructor.

Calling Context:

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

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGConicEndCenterEnd::~TGConicEndCenterEnd

virtual ~ TGConicEndCenterEnd ()

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.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.