#include <HPatch.h>
Inheritance diagram for HSpline:
Public Member Functions | |
HCP * | GetHeadCP () |
HSpline * | GetNextSpline () |
HCP * | CreateCPAtHead (const Vector &p) |
HCP * | CreateCPAtTail (const Vector &p) |
HCP * | CreateCPBefore (HCP *beforecp, const Vector &p) |
HCP * | CreateCPAfter (HCP *aftercp, const Vector &p) |
BOOL | DeleteCP (HCP *cp) |
BOOL | MakeLooped (BOOL looped) |
void | operator delete (void *ptr) |
float | GetLength () |
BOOL | GetPositionAndDirection (float ease, Vector &position, Vector &direction) |
Static Public Member Functions | |
static void | DeleteHandle (HSpline *handle) |
Internal Hash Patch is essentially defined by 4 Hermite splines. Unlike the Bezier spline where the tangents are defined from control vectors which have absolute coordinates, Hermite splines are defined from CPs and tangent vectors for each CP. There are two tangents on each CP: the In tangent and the Out tangent. For smooth CPs, the In tangent and the Out tangent are in excact opposed direction.
Generally when you want to walk a spline you will use the HSpline member function GetHeadCP() to get the first HCP in the HSpline, and use HCP::GetNext() to walk to the end. If the spline is looped, make sure to use the HCP::IsLoop() function to find the last HCP in the spline.
Definition at line 12 of file HPatch.h.
|
Creates a new HCP and places it after the specified HCP of the spline. If aftercp points to the spline tail HCP, the result is the same as with CreateCPAtTail(const Vector &p).
|
|
Creates a new HCP and places it before the first HCP of the spline. The new HCP becomes the head control point. If the spline is looped, the new HCP also becomes the tail control point.
|
|
Creates a new HCP and places it after the last HCP of the spline. The new HCP becomes the tail control point. If the spline is looped, the new HCP also becomes the head control point.
|
|
Creates a new HCP and places it before the specified HCP of the spline. If beforecp points to the spline head HCP, the result is the same as with CreateCPAtHead(const Vector &p).
|
|
Deletes the specifid HCP from the spline and destroys it. |
|
Explicitly destroys the HSpline. |
|
Returns a pointer to the first HCP in the spline. |
|
|
|
Returns a pointer to teh next spline in the list of spline that composes a model. |
|
|
|
Marks the Spline as looped. In essence, that creates a spline segment between the head and the tail HCPs of the spline. |
|
Destructor for the HSpline. Reimplemented from HTreeObject. Definition at line 25 of file HPatch.h. References HTreeObject::DeleteHandle(). Here is the call graph for this function: ![]() |
Generated on Thu Oct 27 11:46:58 2005 with
1.4.5 written by Dimitri van Heesch,
© 1997-2001