Class NURBSTexturePoint
See Also: Class NURBSTextureSurface, Class NURBSObject, Class Point2.
class NURBSTexturePoint : public NURBSObject
Description:
This class is available in release 3.0 and later only.
This class holds a single texture vertex in a NURBS texture surface. Methods are available to get and set the point in various formats.
Data Members:
protected:
double mX, mY;
The position of the point.
Methods:
public:
Prototype:
NURBSTexturePoint();
Remarks:
Constructor. The data members (from NURBSObject) are initialized as follows:
mKind = kNURBSTexturePoint;
mType = kNTexturePoint;
Prototype:
virtual Point2 GetPosition(TimeValue t);
Remarks:
Returns the position of the texture point at the specified time (as a Point2).
Parameters:
TimeValue t
The time at which to get the position.
Prototype:
virtual void GetPosition(TimeValue t, float& x, float& y);
Remarks:
Retrieves the position of the texture point at the specified time (as floats).
Parameters:
TimeValue t
The time at which to get the position.
float& x
The x position is returned here.
float& y
The y position is returned here.
Prototype:
virtual void GetPosition(TimeValue t, double& x, double& y);
Remarks:
Retrieves the position of the texture point at the specified time (as doubles).
Parameters:
TimeValue t
The time at which to get the position.
double& x
The x position is returned here.
double& y
The y position is returned here.
Prototype:
void SetPosition(TimeValue t, Point2 pt);
Remarks:
Sets the position of the point at the specified time (using a Point2).
Parameters:
TimeValue t
The time at which to set the position.
Point2 pt
The position to set.
Prototype:
void SetPosition(TimeValue t, float x, float y);
Remarks:
Sets the position of the point at the specified time (using floats).
Parameters:
TimeValue t
The time at which to set the position.
float x
The x coordinate to set.
float y
The y coordinate to set.
Prototype:
void SetPosition(TimeValue t, double x, double y);
Remarks:
Sets the position of the point at the specified time (using doubles).
Parameters:
TimeValue t
The time at which to set the position.
double x
The x coordinate to set.
double y
The y coordinate to set.