Public Member Functions | Friends

SplineKnotAssy Class Reference

Search for all occurrences

Detailed Description

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

#include <spline3d.h>

Inheritance diagram for SplineKnotAssy:
Inheritance graph
[legend]

List of all members.

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.
CoreExport void  SetAux (int index, int which, int value)
  Allow access as if the in/knot/out components are contained vertices.
CoreExport Point3  GetVert (int index)
  Allow access as if the in/knot/out components are contained vertices.
CoreExport void  SetVert (int index, const Point3 &p)
  Allow access as if the in/knot/out components are contained vertices.
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

Constructor & Destructor Documentation

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 )

Member Function Documentation

int Ktype ( ) [inline]
{ return ktype; }
void SetKtype ( int  t ) [inline]
int Ltype ( ) [inline]
{ return ltype; }
void SetLtype ( int  t ) [inline]
Point3 Knot ( ) [inline]
{ return knot.point; }
void SetKnot ( const Point3 p ) [inline]
{ knot.point=p; }
Point3 InVec ( ) [inline]
{ return inVec.point; }
void SetInVec ( const Point3 p ) [inline]
{ inVec.point=p; }
Point3 OutVec ( ) [inline]
{ return outVec.point; }
void SetOutVec ( const Point3 p ) [inline]
{ outVec.point=p; }
float GetParm ( ) [inline]
void SetParm ( float  p ) [inline]
MtlID GetMatID ( ) [inline]
{return (int)((flags>>SPLINE_MATID_SHIFT)&SPLINE_MATID_MASK);}
void SetMatID ( MtlID  id ) [inline]
{flags &= 0xFFFF; flags |= (DWORD)(id<<SPLINE_MATID_SHIFT);}
CoreExport int GetAux ( int  index,
int  which 
)

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

Parameters:
index 0=inVec 1=knot 2=outVec
which 0=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:
index 0=inVec 1=knot 2=outVec
which 0=aux1 1=aux2 2=aux3
CoreExport Point3 GetVert ( int  index )

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

Parameters:
index 0=inVec 1=knot 2=outVec
which 0=aux1 1=aux2 2=aux3
CoreExport void SetVert ( int  index,
const Point3 p 
)

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

Parameters:
index 0=inVec 1=knot 2=outVec
which 0=aux1 1=aux2 2=aux3
SplinePoint GetKnot ( ) [inline]
{ return knot; }
SplinePoint GetInVec ( ) [inline]
{ return inVec; }
SplinePoint GetOutVec ( ) [inline]
{ return outVec; }
void SetKnot ( SplinePoint sp ) [inline]
void SetInVec ( SplinePoint sp ) [inline]
{ inVec = sp; }
void SetOutVec ( SplinePoint sp ) [inline]
{ outVec = sp; }
DWORD GetFlags ( ) [inline]
{ return flags; }
BOOL IsHidden ( ) [inline]
{return (flags&SEGMENT_VISIBLE);}
void Hide ( ) [inline]
{ flags |= (DWORD)(SEGMENT_VISIBLE);}
void Unhide ( ) [inline]
{ flags &= (DWORD)(~SEGMENT_VISIBLE);}
BOOL IsNoSnap ( ) [inline]
{return (flags&SPLINEKNOT_NO_SNAP);}
void SetNoSnap ( ) [inline]
{ flags |= (DWORD)(SPLINEKNOT_NO_SNAP);}
void ClearNoSnap ( ) [inline]
{ flags &= (DWORD)(~SPLINEKNOT_NO_SNAP);}
BOOL GetFlag ( DWORD  fl ) [inline]
{ return (flags & fl) ? TRUE : FALSE; }
void SetFlag ( DWORD  fl,
BOOL  val = TRUE 
) [inline]
{ if (val) flags |= fl; else flags &= ~fl; }
void ClearFlag ( DWORD  fl ) [inline]
{ flags &= ~fl; }

Friends And Related Function Documentation

friend class Spline3D [friend]
friend class SplineKnot [friend]

SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy
SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy SplineKnotAssy