NURBSCapSurface Class Reference
 
 
 
NURBSCapSurface Class Reference

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


#include <surf_api.h>

Inheritance diagram for NURBSCapSurface:
NURBSSurface NURBSObject MaxHeapOperators

Class Description

See also:
Class NURBSSurface.

Description:
This class provides access to the Cap Surface. A Cap Surface is a surface that caps a closed curve or the edge of a closed surface. Caps are especially useful with extruded surfaces.
protected:

Public Member Functions

DllExport  NURBSCapSurface (void)
virtual DllExport  ~NURBSCapSurface (void)
DllExport NURBSCapSurface operator= (const NURBSCapSurface &surf)
DllExport void  SetParent (int index)
DllExport void  SetParentId (NURBSId id)
DllExport int  GetParent (void)
DllExport NURBSId  GetParentId (void)
DllExport void  SetEdge (int edge)
DllExport int  GetEdge ()
DllExport void  SetCurveStartPoint (TimeValue t, double startpoint)
DllExport double  GetCurveStartPoint (TimeValue t)

Friends

class  NURBSSet

Constructor & Destructor Documentation

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

mType = kNCapSurface;

mpObject = NULL;

mpNSet = NULL;

mParentId = 0;

mParentIndex = -1;

mParentEdge = -1;

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

Member Function Documentation

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

The surface to assign.
DllExport void SetParent ( int  index )
Remarks:
Establishes the curve or surface that's capped by specifying its index in the NURBSSet.
Parameters:
int index

The index in the NURBSSet of the curve or surface to cap.
DllExport void SetParentId ( NURBSId  id )
Remarks:
Establishes the curve or surface that's capped by specifying its NURBSId.
Parameters:
NURBSId id

The id of the curve or surface to cap.
DllExport int GetParent ( void  )
Remarks:
Returns the index in the NURBSSet of the curve or surface that's capped.
DllExport NURBSId GetParentId ( void  )
Remarks:
Returns the NURBSId of the curve or surface that's capped.
DllExport void SetEdge ( int  edge )
Remarks:
Establishes which edge of the closed parent surface is capped.
Parameters:
int edge

The edge to cap. One of the following values:

0: The low U edge.

1: The high U edge.

2: The low V edge.

3: The high V edge.
DllExport int GetEdge ( )
Remarks:
Returns the edge of the closed parent surface is capped.
Returns:
One of the following values:

0: The low U edge.

1: The high U edge.

2: The low V edge.

3: The high V edge.
DllExport void SetCurveStartPoint ( TimeValue  t,
double  startpoint 
)
Remarks:
Sets the start point for the curve. Note: This is only applicable if the parent is a closed curve.
Parameters:
TimeValue t

The time to set the start point.

double startpoint

The start point to set.
DllExport double GetCurveStartPoint ( TimeValue  t )
Remarks:
Returns the start point for the curve. Note: This is only applicable if the parent is a closed curve.
Parameters:
TimeValue t

The time to get the start point.

Friends And Related Function Documentation

friend class NURBSSet [friend]