SplineKnotAssy Class Reference

SplineKnotAssy Class Reference

#include <spline3d.h>

Class Description

Used for the internal storage of spline knot assemblies in the Spline3D class.

+ Inheritance diagram for SplineKnotAssy:

Public Member Functions

CoreExport SplineKnotAssy ()
 
CoreExport SplineKnotAssy (int k, int l, Point3 p, Point3 in, Point3 out, int a1=-1, int a2=-1, int a3=-1, int Ia1=-1, int Ia2=-1, int Ia3=-1, int Oa1=-1, int Oa2=-1, int Oa3=-1, DWORD f=0)
 
CoreExport SplineKnotAssy (int k, int l, SplinePoint p, SplinePoint in, SplinePoint out, DWORD f=0)
 
CoreExport SplineKnotAssy (SplineKnot &k)
 
int Ktype ()
 
void SetKtype (int t)
 
int Ltype ()
 
void SetLtype (int t)
 
Point3 Knot ()
 
void SetKnot (const Point3 &p)
 
Point3 InVec ()
 
void SetInVec (const Point3 &p)
 
Point3 OutVec ()
 
void SetOutVec (const Point3 &p)
 
float GetParm ()
 
void SetParm (float p)
 
MtlID GetMatID ()
 
void SetMatID (MtlID id)
 
CoreExport int GetAux (int index, int which)
 Allow access as if the in/knot/out components are contained vertices. More...
 
CoreExport void SetAux (int index, int which, int value)
 Allow access as if the in/knot/out components are contained vertices. More...
 
CoreExport Point3 GetVert (int index)
 Allow access as if the in/knot/out components are contained vertices. More...
 
CoreExport void SetVert (int index, const Point3 &p)
 Allow access as if the in/knot/out components are contained vertices. More...
 
SplinePoint GetKnot ()
 
SplinePoint GetInVec ()
 
SplinePoint GetOutVec ()
 
void SetKnot (SplinePoint &sp)
 
void SetInVec (SplinePoint &sp)
 
void SetOutVec (SplinePoint &sp)
 
DWORD GetFlags ()
 
BOOL IsHidden ()
 
void Hide ()
 
void Unhide ()
 
BOOL IsNoSnap ()
 
void SetNoSnap ()
 
void ClearNoSnap ()
 
BOOL GetFlag (DWORD fl)
 
void SetFlag (DWORD fl, BOOL val=TRUE)
 
void ClearFlag (DWORD fl)
 

Friends

class Spline3D
 
class SplineKnot
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 

Constructor & Destructor Documentation

CoreExport SplineKnotAssy ( int  k,
int  l,
Point3  p,
Point3  in,
Point3  out,
int  a1 = -1,
int  a2 = -1,
int  a3 = -1,
int  Ia1 = -1,
int  Ia2 = -1,
int  Ia3 = -1,
int  Oa1 = -1,
int  Oa2 = -1,
int  Oa3 = -1,
DWORD  f = 0 
)
CoreExport SplineKnotAssy ( int  k,
int  l,
SplinePoint  p,
SplinePoint  in,
SplinePoint  out,
DWORD  f = 0 
)

Member Function Documentation

int Ktype ( )
inline
146 { return ktype; }
void SetKtype ( int  t)
inline
147 { ktype=t; }
int Ltype ( )
inline
148 { return ltype; }
void SetLtype ( int  t)
inline
149 { ltype=t; }
Point3 Knot ( )
inline
150 { return knot.point; }
void SetKnot ( const Point3 p)
inline
151 { knot.point=p; }
Point3 InVec ( )
inline
152 { return inVec.point; }
void SetInVec ( const Point3 p)
inline
153 { inVec.point=p; }
Point3 OutVec ( )
inline
154 { return outVec.point; }
void SetOutVec ( const Point3 p)
inline
155 { outVec.point=p; }
float GetParm ( )
inline
156 { return du; }
void SetParm ( float  p)
inline
157 { du = p; }
MtlID GetMatID ( )
inline
158 {return (int)((flags>>SPLINE_MATID_SHIFT)&SPLINE_MATID_MASK);}
#define SPLINE_MATID_MASK
The mat ID is stored in the HIWORD of the knot flags.
Definition: spline3d.h:114
#define SPLINE_MATID_SHIFT
The mat ID is stored in the HIWORD of the knot flags.
Definition: spline3d.h:113
void SetMatID ( MtlID  id)
inline
159 {flags &= 0xFFFF; flags |= (DWORD)(id<<SPLINE_MATID_SHIFT);}
#define SPLINE_MATID_SHIFT
The mat ID is stored in the HIWORD of the knot flags.
Definition: spline3d.h:113
CoreExport int GetAux ( int  index,
int  which 
)

Allow access as if the in/knot/out components are contained vertices.

Parameters
index0=inVec 1=knot 2=outVec
which0=aux1 1=aux2 2=aux3
CoreExport void SetAux ( int  index,
int  which,
int  value 
)

Allow access as if the in/knot/out components are contained vertices.

Parameters
index0=inVec 1=knot 2=outVec
which0=aux1 1=aux2 2=aux3
value
CoreExport Point3 GetVert ( int  index)

Allow access as if the in/knot/out components are contained vertices.

Parameters
index0=inVec 1=knot 2=outVec
CoreExport void SetVert ( int  index,
const Point3 p 
)

Allow access as if the in/knot/out components are contained vertices.

Parameters
index0=inVec 1=knot 2=outVec
which0=aux1 1=aux2 2=aux3
SplinePoint GetKnot ( )
inline
183 { return knot; }
SplinePoint GetInVec ( )
inline
184 { return inVec; }
SplinePoint GetOutVec ( )
inline
185 { return outVec; }
void SetKnot ( SplinePoint sp)
inline
186 { knot = sp; }
void SetInVec ( SplinePoint sp)
inline
187 { inVec = sp; }
void SetOutVec ( SplinePoint sp)
inline
188 { outVec = sp; }
DWORD GetFlags ( )
inline
189 { return flags; }
BOOL IsHidden ( )
inline
192 {return (flags&SEGMENT_VISIBLE);}
#define SEGMENT_VISIBLE
Definition: spline3d.h:116
void Hide ( )
inline
193 { flags |= (DWORD)(SEGMENT_VISIBLE);}
#define SEGMENT_VISIBLE
Definition: spline3d.h:116
void Unhide ( )
inline
194 { flags &= (DWORD)(~SEGMENT_VISIBLE);}
#define SEGMENT_VISIBLE
Definition: spline3d.h:116
BOOL IsNoSnap ( )
inline
196 {return (flags&SPLINEKNOT_NO_SNAP);}
#define SPLINEKNOT_NO_SNAP
Suppresses snapping to knot if set.
Definition: spline3d.h:117
void SetNoSnap ( )
inline
197 { flags |= (DWORD)(SPLINEKNOT_NO_SNAP);}
#define SPLINEKNOT_NO_SNAP
Suppresses snapping to knot if set.
Definition: spline3d.h:117
void ClearNoSnap ( )
inline
198 { flags &= (DWORD)(~SPLINEKNOT_NO_SNAP);}
#define SPLINEKNOT_NO_SNAP
Suppresses snapping to knot if set.
Definition: spline3d.h:117
BOOL GetFlag ( DWORD  fl)
inline
200 { return (flags & fl) ? TRUE : FALSE; }
void SetFlag ( DWORD  fl,
BOOL  val = TRUE 
)
inline
201 { if (val) flags |= fl; else flags &= ~fl; }
void ClearFlag ( DWORD  fl)
inline
202 { flags &= ~fl; }

Friends And Related Function Documentation

friend class Spline3D
friend
friend class SplineKnot
friend