Public Member Functions | Friends

NURBSOffsetCurve Class Reference

Search for all occurrences

Detailed Description

See also:
Class NURBSCurve.

Description:
This class is available in release 2.0 and later only.

This class defines a dependent offset curve. An offset curve is offset from the original, parent curve. It lies in the same plane as its parent, and is normal to the original. Methods are available to get/set the parent index and id and to get/set the distance from the parent curve.

All methods of this class are implemented by the system.

#include <surf_api.h>

Inheritance diagram for NURBSOffsetCurve:
Inheritance graph
[legend]

List of all members.

Public Member Functions

DllExport  NURBSOffsetCurve (void)
virtual DllExport  ~NURBSOffsetCurve (void)
DllExport NURBSOffsetCurve operator= (const NURBSOffsetCurve &curve)
DllExport void  SetParent (int index)
DllExport void  SetParentId (NURBSId id)
DllExport int  GetParent (void)
DllExport NURBSId  GetParentId (void)
DllExport void  SetDistance (TimeValue t, double d)
DllExport double  GetDistance (TimeValue t)

Friends

class  NURBSSet

Constructor & Destructor Documentation

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

mType = kNOffsetCurve;

mpObject = NULL;

mpNSet = NULL;

mParentId = 0;

mParentIndex = -1;

mDistance = 0.0;
virtual DllExport ~NURBSOffsetCurve ( void  ) [virtual]
Remarks:
Destructor. The cache is cleared.

Member Function Documentation

DllExport NURBSOffsetCurve& operator= ( const NURBSOffsetCurve curve )
Remarks:
Assignment operator.
Parameters:
const NURBSOffsetCurve& curve

The curve to assign.
DllExport void SetParent ( int  index )
Remarks:
Sets the index in the NURBSSet of the parent object.
Parameters:
int index

The index into the NURBSSet of the parent curve.
DllExport void SetParentId ( NURBSId  id )
Remarks:
Sets the NURBSId of the parent.
Parameters:
NURBSId id

The id to set.
DllExport int GetParent ( void  )
Remarks:
Returns the index in the NURBSSet of the specified parent object.
DllExport NURBSId GetParentId ( void  )
Remarks:
Returns the NURBSId of the parent. Note that a NURBSId won't be valid until the object has been instantiated in the scene
DllExport void SetDistance ( TimeValue  t,
double  d 
)
Remarks:
Sets the distance of the offset curve from the original in 3ds Max units at the specified time.
Parameters:
TimeValue t

The time to set the offset distance.

double d

The distance to set.
DllExport double GetDistance ( TimeValue  t )
Remarks:
Returns the distance of the offset curve from the parent at the specified time.
Parameters:
TimeValue t

The time to get the offset distance.
Operators:

Friends And Related Function Documentation

friend class NURBSSet [friend]

NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve
NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve NURBSOffsetCurve