Public Member Functions | Protected Member Functions | Protected Attributes | Friends

NURBSCurveCurveIntersectionPoint Class Reference

Search for all occurrences

Detailed Description

See also:
Class NURBSPoint.

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

This class is used to create a dependent point at the intersection of two curves.

All methods of this class are implemented by the system.
Data Members:
protected:

NURBSId mParentId[2];

The ids of the two parent curves.

int mParentIndex[2];

The indicies of the two parent curves in the NURBSSet.

BOOL mTrimCurve[2];

Indicates the point that is constrained to the curve may be used to trim the curve.

BOOL mFlipTrim[2];

If TRUE the curve is trimmed from the point towards low parameter space. If FALSE the curve is trimmed from the point towards high parameter space.

#include <surf_api.h>

Inheritance diagram for NURBSCurveCurveIntersectionPoint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

DllExport  NURBSCurveCurveIntersectionPoint (void)
virtual DllExport  ~NURBSCurveCurveIntersectionPoint (void)
DllExport
NURBSCurveCurveIntersectionPoint
operator= (const NURBSCurveCurveIntersectionPoint &pt)
DllExport void  SetCurveParam (int curveNum, double param)
DllExport double  GetCurveParam (int curveNum)
DllExport void  SetParent (int pnum, int index)
DllExport void  SetParentId (int pnum, NURBSId id)
DllExport int  GetParent (int pnum)
DllExport NURBSId  GetParentId (int pnum)
DllExport BOOL  GetTrimCurve (int pnum)
DllExport void  SetTrimCurve (int pnum, BOOL trim)
DllExport BOOL  GetFlipTrim (int pnum)
DllExport void  SetFlipTrim (int pnum, BOOL flip)

Protected Member Functions

DllExport void  Clean (NURBSIdTab ids)

Protected Attributes

NURBSId  mParentId [2]
int  mParentIndex [2]
double  mCurveParam [2]
BOOL  mTrimCurve [2]
BOOL  mFlipTrim [2]

Friends

class  NURBSSet

Constructor & Destructor Documentation

DllExport NURBSCurveCurveIntersectionPoint ( void  )
Remarks:
Constructor. The data members are initialized by value:

mType = kNCurveCurveIntersectionPoint;

mpObject = NULL;

mpNSet = NULL;

mParentId[0] = mParentId[1] = 0;

mParentIndex[0] = mParentIndex[1] = -1;

mCurveParam[0] = mCurveParam[1] = 0.0;

mTrimCurve[0] = mTrimCurve[1] = FALSE;

mFlipTrim[0] = mFlipTrim[1] = FALSE;
virtual DllExport ~NURBSCurveCurveIntersectionPoint ( void  ) [virtual]
Remarks:
Destructor.

Member Function Documentation

DllExport void Clean ( NURBSIdTab  ids ) [protected]
Remarks:
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.

Reimplemented from NURBSObject.

Remarks:
Assignment operator.
Parameters:
const NURBSCurveCurveIntersectionPoint &pt

The intersection point to assign.
DllExport void SetCurveParam ( int  curveNum,
double  param 
)
DllExport double GetCurveParam ( int  curveNum )
Remarks:
Returns the point in parameter space of the specified curve of the point of intersection.
Parameters:
int curveNum

The parent curve number: 0 or 1.
DllExport void SetParent ( int  pnum,
int  index 
)
Remarks:
Sets the index in the NURBSSet of the specified parent object.
Parameters:
int pnum

The parent number: 0 or 1.

int index

The index into the NURBSSet of the parent surface.
DllExport void SetParentId ( int  pnum,
NURBSId  id 
)
Remarks:
Sets the NURBSId of the specified parent.
Parameters:
int pnum

The parent number: 0 or 1.

NURBSId id

The id to set.
DllExport int GetParent ( int  pnum )
Remarks:
Returns the index in the NURBSSet of the specified parent object.
Parameters:
int pnum

The parent number: 0 or 1.
DllExport NURBSId GetParentId ( int  pnum )
Remarks:
Returns the NURBSId of the specified parent. Note that a NURBSId won't be valid until the object has been instantiated in the scene
Parameters:
int pnum

The parent number: 0 or 1.
DllExport BOOL GetTrimCurve ( int  pnum )
Remarks:
Returns TRUE if this point is used to trim the specified curve and FALSE if it is not.
Parameters:
int pnum

The parent curve number: 0 or 1.
DllExport void SetTrimCurve ( int  pnum,
BOOL  trim 
)
Remarks:
Sets the trim curve boolean for the specified curve.
Parameters:
int pnum

The parent curve number: 0 or 1.

BOOL trim

TRUE to indicate this point is used to trim the curve; FALSE to indicate the curve is not trimmed beyond the point.
DllExport BOOL GetFlipTrim ( int  pnum )
Remarks:
Returns the state of the flip trim boolean.
Parameters:
int pnum

The parent curve number: 0 or 1.
Returns:
TRUE indicates the specified curve is trimmed from the point towards low parameter space. FALSE indicates the curve is trimmed from the point towards high parameter space.
DllExport void SetFlipTrim ( int  pnum,
BOOL  flip 
)
Remarks:
Sets the state of the flip trim boolean for the specified parent curve.
Parameters:
int pnum

The parent curve number: 0 or 1.

BOOL flip

TRUE to indicate the curve is trimmed from the point towards low parameter space. Use FALSE to indicate the curve is trimmed from the point towards high parameter space.
Operators:

Friends And Related Function Documentation

friend class NURBSSet [friend]

Member Data Documentation

NURBSId mParentId[2] [protected]
int mParentIndex[2] [protected]
double mCurveParam[2] [protected]
BOOL mTrimCurve[2] [protected]
BOOL mFlipTrim[2] [protected]

NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint
NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint NURBSCurveCurveIntersectionPoint