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.
- TGConicEndCenterEnd (const TGPoint & p0, const TGPoint & centerPt, const TGPoint & p2, bool otherArc =false)
- TGConicEndCenterEnd ()
- TGConicEndCenterEnd (const TGConicEndCenterEnd &)
Interface Category:
API.
Purpose:
- 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.
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).
- Default constructor.
- Copy constructor.
Calling Context:
- Call this function directly.
- Called by the stream-in operators. You can also call this function directly.
- Called to copy an object. You can also call this function directly.
Parameters:
- const TGPoint & p0 -The first control point.
- const TGPoint & centerPt -The second control point.
- const TGPoint & p2 -The third control point.
- bool otherArc =false -Determines whether the remaining portion of the circle is created.
- Takes no parameters.
- const TGConicEndCenterEnd & -The curve to be copied.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
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.