Public Member Functions | Friends

NURBSExtrudeSurface Class Reference

Search for all occurrences

Detailed Description

See also:
Class NURBSSurface.

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

This class defines a dependent extrude surface. An extrude surface is extruded from a curve sub-object. It is similar to a surface created with the Extrude modifier. The advantage is that an extrude sub-object is part of the NURBS model, so you can use it to construct other curve and surface sub-objects. Methods are available to get/set the parent index and id, get/set the extrusion vector and get/set the extrusion distance.

All methods of this class are implemented by the system.

#include <surf_api.h>

Inheritance diagram for NURBSExtrudeSurface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

DllExport  NURBSExtrudeSurface (void)
virtual DllExport  ~NURBSExtrudeSurface (void)
DllExport NURBSExtrudeSurface operator= (const NURBSExtrudeSurface &surf)
DllExport void  SetParent (int index)
DllExport void  SetParentId (NURBSId id)
DllExport int  GetParent (void)
DllExport NURBSId  GetParentId (void)
DllExport void  SetAxis (TimeValue t, Matrix3 &ray)
DllExport Matrix3 GetAxis (TimeValue t)
DllExport void  SetDistance (TimeValue t, double d)
DllExport double  GetDistance (TimeValue t)
DllExport void  SetCurveStartPoint (TimeValue t, double startpoint)
DllExport double  GetCurveStartPoint (TimeValue t)

Friends

class  NURBSSet

Constructor & Destructor Documentation

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

mType = kNExtrudeSurface;

mpObject = NULL;

mpNSet = NULL;

mParentId = 0;

mParentIndex = -1;

mXForm.IdentityMatrix();

mDistance = 0.0;

mCurveStartParam = 0.0;
virtual DllExport ~NURBSExtrudeSurface ( void  ) [virtual]
Remarks:
Destructor.

Member Function Documentation

DllExport NURBSExtrudeSurface& operator= ( const NURBSExtrudeSurface surf )
Remarks:
Assignment operator.
Parameters:
const NURBSExtrudeSurface& surf

The surface 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 surface.
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 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 SetAxis ( TimeValue  t,
Matrix3 ray 
)
Remarks:
Sets the extrusion axis at the specified time.
Parameters:
TimeValue t

The time at which to set the axis system.

Matrix3& ray

The extrusion axis.
DllExport Matrix3& GetAxis ( TimeValue  t )
Remarks:
Returns the extrusion axis at the specified time.
Parameters:
TimeValue t

The time at which to get the axis.
DllExport void SetDistance ( TimeValue  t,
double  d 
)
Remarks:
Sets the length of the extrudion at the specified time.
Parameters:
TimeValue t

The time at which to set the distance.

double d

The distance to set.
DllExport double GetDistance ( TimeValue  t )
Remarks:
Returns the length of the extrudion at the specified time.
Parameters:
TimeValue t

The time at which to return the distance.
DllExport void SetCurveStartPoint ( TimeValue  t,
double  startpoint 
)
Remarks:
Sets the start point at the specified time.
Parameters:
TimeValue t

The time at which to set the start point.

double startpoint

The start point in the range 0.0 to 1.0.
DllExport double GetCurveStartPoint ( TimeValue  t )
Remarks:
Returns the start point at the specified time.
Parameters:
TimeValue t

The time at which to get the start point.
Operators:

Friends And Related Function Documentation

friend class NURBSSet [friend]

NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface
NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface NURBSExtrudeSurface