Public Member Functions | Protected Attributes

NURBSTexturePoint Class Reference

This reference page is linked to from the following overview topics: NURBS Texture Mapping.


Search for all occurrences

Detailed Description

See also:
Class NURBSTextureSurface, Class NURBSObject, Class Point2.

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.

#include <surf_api.h>

Inheritance diagram for NURBSTexturePoint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

DllExport  NURBSTexturePoint ()
virtual DllExport Point2  GetPosition (TimeValue t)
virtual DllExport void  GetPosition (TimeValue t, float &x, float &y)
virtual DllExport void  GetPosition (TimeValue t, double &x, double &y)
DllExport void  SetPosition (TimeValue t, Point2 pt)
DllExport void  SetPosition (TimeValue t, float x, float y)
DllExport void  SetPosition (TimeValue t, double x, double y)
DllExport void  SetIndices (int uIndex, int vIndex)

Protected Attributes

double  mX
double  mY
int  mUIndex
int  mVIndex

Constructor & Destructor Documentation

DllExport NURBSTexturePoint ( )
Remarks:
Constructor. The data members (from NURBSObject) are initialized as follows:

mKind = kNURBSTexturePoint;

mType = kNTexturePoint;

Member Function Documentation

virtual DllExport Point2 GetPosition ( TimeValue  t ) [virtual]
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.
virtual DllExport void GetPosition ( TimeValue  t,
float &  x,
float &  y 
) [virtual]
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.
virtual DllExport void GetPosition ( TimeValue  t,
double &  x,
double &  y 
) [virtual]
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.
DllExport 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.
DllExport 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.
DllExport 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.
DllExport void SetIndices ( int  uIndex,
int  vIndex 
)

Member Data Documentation

double mX [protected]
double mY [protected]
int mUIndex [protected]
int mVIndex [protected]

NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint
NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint NURBSTexturePoint