Class NURBSPointConstPoint

3DS Max Plug-In SDK

Class NURBSPointConstPoint

See Also: Class NURBSObject, List of NURBSConst Types, Class Point3.

class NURBSPointConstPoint : public NURBSObject

Description:

This class is available in release 2.0 and later only.

This class is used to create a dependent point that lies at a point or relative to it.

All methods of this class are implemented by the system.

Data Members:

protected:

NURBSId mParentId;

The id of the parent object.

int mParentIndex;

The index in the NURBSSet of the parent object.

NURBSConstType mCType;

The type of constraint in use.

Point3 mOffset;

The offset from the object that the point is.

Friend Classes:

friend class NURBSSet;

Methods:

protected:

Prototype:

void Clean(NURBSIdTab ids);

Remarks:

This method is available in release 3.0 and later only.

This methods breaks the relation between this NURBSObject and a NURBSSet.

Parameters:

NURBSIdTab ids

A table with the IDs of each object in the NURBSSet.

public:

Prototype:

NURBSPointConstPoint();

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNPointCPoint;

 mpObject = NULL;

 mpNSet = NULL;

 mParentId = 0;

 mParentIndex = -1;

 mCType = kNConstOnObject;

 mOffset = Point3(0,0,0);

Prototype:

~NURBSPointConstPoint();

Remarks:

Destructor.

Prototype:

void SetParent(int index);

Remarks:

Sets the parent index to the specified value.

Parameters:

int index

The parent index to set.

Prototype:

void SetParentId(NURBSId id);

Remarks:

Sets the parent ID to the specified value.

Parameters:

NURBSId id

The parent ID to set.

Prototype:

int GetParent();

Remarks:

Returnst the parent index.

Prototype:

NURBSId GetParentId();

Remarks:

Returns the NURBSId of the parent. Note that a NURBSId won't be valid until the object has been instantiated in the scene.

Prototype:

void SetPointType(NURBSConstType type);

Remarks:

Sets the type of point.

Parameters:

NURBSConstType type

Specifies the type of point to set. See List of NURBSConst Types.

Prototype:

NURBSConstType GetPointType();

Remarks:

Returns the type of construction point this is. See List of NURBSConst Types.

Prototype:

void SetOffset(TimeValue t, Point3 pt);

Remarks:

Sets the offset value at the specified time.

Parameters:

TimeValue t

Specifies the time at which the offset is set.

Point3 pt

The offset value to set. This value is specified in object coordinates.

Prototype:

Point3 GetOffset(TimeValue t);

Remarks:

Returns the offset value at the specified time in object coordinates.

Parameters:

TimeValue t

The time to retrieve the offset.

Operators:

Prototype:

NURBSPointConstPoint & operator=(const NURBSPointConstPoint& pt);

Remarks:

Assignment operator.

Parameters:

const NURBSPointConstPoint& pt

The construction point to assign.