Skip to content

classHSpline 02

Member Function Documentation

HCP * HSpline::CreateCPAfter HCP aftercp,
const Vector p
 

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

Parameters:
aftercp  - Points to the current HCP in the spline after which the new HCP will be inserted.
p  - Specifies the coordinate of the new control point.

HCP * HSpline::CreateCPAtHead 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.

Parameters:
p  - Specifies the coordinate of the new control point.

HCP * HSpline::CreateCPAtTail const Vector p  ) 
 

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.

Parameters:
p  - Specifies the coordinate of the new control point.

HCP * HSpline::CreateCPBefore HCP beforecp,
const Vector p
 

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

Parameters:
beforecp  - Points to the current HCP in the spline before which the new HCP will be inserted.
p  - Specifies the coordinate of the new control point.

BOOL HSpline::DeleteCP HCP cp  ) 
  Deletes the specifid HCP from the spline and destroys it.

void HSpline::DeleteHandle HSpline handle  )  [static]
  Explicitly destroys the HSpline.

HCP * HSpline::GetHeadCP  ) 
  Returns a pointer to the first HCP in the spline.

float HSpline::GetLength  ) 
 

HSpline * HSpline::GetNextSpline  ) 
  Returns a pointer to teh next spline in the list of spline that composes a model.

BOOL HSpline::GetPositionAndDirection float  ease,
Vector position,
Vector direction
 

BOOL HSpline::MakeLooped BOOL  looped  ) 
  Marks the Spline as looped. In essence, that creates a spline segment between the head and the tail HCPs of the spline.

void HSpline::operator delete void *  ptr  )  [inline]
<
 

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: