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
148 { return ktype; }
void SetKtype ( int  t)
inline
149 { ktype=t; }
int Ltype ( )
inline
150 { return ltype; }
void SetLtype ( int  t)
inline
151 { ltype=t; }
Point3 Knot ( )
inline
152 { return knot.point; }
void SetKnot ( const Point3 p)
inline
153 { knot.point=p; }
Point3 InVec ( )
inline
154 { return inVec.point; }
void SetInVec ( const Point3 p)
inline
155 { inVec.point=p; }
Point3 OutVec ( )
inline
156 { return outVec.point; }
void SetOutVec ( const Point3 p)
inline
157 { outVec.point=p; }
float GetParm ( )
inline
158 { return du; }
void SetParm ( float  p)
inline
159 { du = p; }
MtlID GetMatID ( )
inline
160 {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:116
#define SPLINE_MATID_SHIFT
The mat ID is stored in the HIWORD of the knot flags.
Definition: spline3d.h:115
void SetMatID ( MtlID  id)
inline
161 {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:115
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
p0=aux1 1=aux2 2=aux3
SplinePoint GetKnot ( )
inline
185 { return knot; }
SplinePoint GetInVec ( )
inline
186 { return inVec; }
SplinePoint GetOutVec ( )
inline
187 { return outVec; }
void SetKnot ( SplinePoint sp)
inline
188 { knot = sp; }
void SetInVec ( SplinePoint sp)
inline
189 { inVec = sp; }
void SetOutVec ( SplinePoint sp)
inline
190 { outVec = sp; }
DWORD GetFlags ( )
inline
191 { return flags; }
BOOL IsHidden ( )
inline
194 {return (flags&SEGMENT_VISIBLE);}
#define SEGMENT_VISIBLE
Definition: spline3d.h:118
void Hide ( )
inline
195 { flags |= (DWORD)(SEGMENT_VISIBLE);}
#define SEGMENT_VISIBLE
Definition: spline3d.h:118
void Unhide ( )
inline
196 { flags &= (DWORD)(~SEGMENT_VISIBLE);}
#define SEGMENT_VISIBLE
Definition: spline3d.h:118
BOOL IsNoSnap ( )
inline
198 {return (flags&SPLINEKNOT_NO_SNAP);}
#define SPLINEKNOT_NO_SNAP
Suppresses snapping to knot if set.
Definition: spline3d.h:119
void SetNoSnap ( )
inline
199 { flags |= (DWORD)(SPLINEKNOT_NO_SNAP);}
#define SPLINEKNOT_NO_SNAP
Suppresses snapping to knot if set.
Definition: spline3d.h:119
void ClearNoSnap ( )
inline
200 { flags &= (DWORD)(~SPLINEKNOT_NO_SNAP);}
#define SPLINEKNOT_NO_SNAP
Suppresses snapping to knot if set.
Definition: spline3d.h:119
BOOL GetFlag ( DWORD  fl)
inline
202 { return (flags & fl) ? TRUE : FALSE; }
void SetFlag ( DWORD  fl,
BOOL  val = TRUE 
)
inline
203 { if (val) flags |= fl; else flags &= ~fl; }
void ClearFlag ( DWORD  fl)
inline
204 { flags &= ~fl; }

Friends And Related Function Documentation

friend class Spline3D
friend
friend class SplineKnot
friend