NURBSIndependentPoint Class Reference
 
 
 
NURBSIndependentPoint Class Reference

This reference page is linked to from the following overview topics: NURBS Point Classes.


#include <surf_api.h>

Inheritance diagram for NURBSIndependentPoint:
NURBSPoint NURBSObject MaxHeapOperators

Class Description

See also:
Class NURBSPoint.

Description:
This class is used to create an independent, free-standing point. There are methods to set the position of the point in various floating point formats and operators to compare points.

All methods of this class are implemented by the system.

Public Member Functions

DllExport  NURBSIndependentPoint (void)
virtual DllExport  ~NURBSIndependentPoint (void)
DllExport NURBSIndependentPoint operator= (const NURBSIndependentPoint &pt)
DllExport BOOL  operator== (const NURBSIndependentPoint &pt)
DllExport BOOL  operator!= (const NURBSIndependentPoint &pt)
DllExport void  SetPosition (TimeValue t, Point3 pt)
DllExport void  SetPosition (TimeValue t, float x, float y, float z)
DllExport void  SetPosition (TimeValue t, double x, double y, double z)

Constructor & Destructor Documentation

DllExport NURBSIndependentPoint ( void  )
Remarks:
Constructor. The data members are initialized as follows:

mType = kNPoint;

mX = mY = mZ = 0.0;
virtual DllExport ~NURBSIndependentPoint ( void  ) [virtual]
Remarks:
Destructor.

Member Function Documentation

DllExport NURBSIndependentPoint& operator= ( const NURBSIndependentPoint pt )
Remarks:
Assignment operator.
Parameters:
const NURBSIndependentPoint& pt

The point to assign.
DllExport BOOL operator== ( const NURBSIndependentPoint pt )
Remarks:
Equality operator. Compares if the X, Y and Z coordinates are equal.
Parameters:
const NURBSIndependentPoint& pt

The point to compare.
Returns:
TRUE if equal; otherwise FALSE.
DllExport BOOL operator!= ( const NURBSIndependentPoint pt )
Remarks:
Inequality operator. Compares if the X, Y and Z coordinates are not equal.
Parameters:
const NURBSIndependentPoint& pt

The point to compare.
Returns:
TRUE if any of the coordinates are not equal; otherwise FALSE.
DllExport void SetPosition ( TimeValue  t,
Point3  pt 
)
Remarks:
Sets the position of the point at the specified time (as a Point3).
Parameters:
TimeValue t

Specifies the time to set the position.

Point3 pt

The position to set.
DllExport void SetPosition ( TimeValue  t,
float  x,
float  y,
float  z 
)
Remarks:
Sets the position of the point at the specified time (as floats).
Parameters:
TimeValue t

Specifies the time to set the position.

float x

The X position to set.

float y

The Y position to set.

float z

The Z position to set.
DllExport void SetPosition ( TimeValue  t,
double  x,
double  y,
double  z 
)
Remarks:
Sets the position of the point at the specified time (as doubles).
Parameters:
TimeValue t

Specifies the time to set the position.

double x

The X position to set.

double y

The Y position to set.

double z

The Z position to set.
Operators: