Generic CAM 0.1-PreAlpha

CSGSurface Class Reference

Wrapper class for the The GNU Triangulated Surface Library. More...

#include <CSGSurface2.h>

Collaboration diagram for CSGSurface:

List of all members.

Public Member Functions

 CSGSurface ()
virtual ~CSGSurface ()
void Clear ()
void Paint () const
void AddBox (const double sizeX, const double sizeY, const double sizeZ)
void SetSphere (const double radius, const unsigned char subdivision=3)
void ScaleUniform (float scaleXYZ)
void Scale (float scaleX, float scaleY, float scaleZ)
void Rotate (float rotateX, float rotateY, float rotateZ)
void Translate (float translateX=0, float translateY=0, float translateZ=0)
void BooleanRemove (const CSGSurface *surfaceToRemove)
void BooleanAdd (const CSGSurface *surfaceToAdd)
void InsertSurface (const CSGSurface *surface)
bool SelfTest (void)
void Statistics (void)
GtsSurface * GetSurface ()
 CSGSurface ()
virtual ~CSGSurface ()
void Clear ()
void Paint () const
void AddBox (const double sizeX, const double sizeY, const double sizeZ)
void SetSphere (const double radius, const unsigned char subdivision=3)
void ScaleUniform (float scaleXYZ)
void Scale (float scaleX, float scaleY, float scaleZ)
void Rotate (float rotateX, float rotateY, float rotateZ)
void Translate (float translateX=0, float translateY=0, float translateZ=0)
void BooleanRemove (const CSGSurface *surfaceToRemove)
void BooleanAdd (const CSGSurface *surfaceToAdd)
void InsertSurface (const CSGSurface *surface)
bool SelfTest (void)
void Statistics (void)

Public Attributes

Solid * solid

Protected Attributes

AffineTransformMatrix m
GtsSurface * s

Detailed Description

Wrapper class for the The GNU Triangulated Surface Library.

To hide all the uglieness deep inside...


Constructor & Destructor Documentation

CSGSurface::CSGSurface ( )
CSGSurface::~CSGSurface ( ) [virtual]
CSGSurface::CSGSurface ( )
virtual CSGSurface::~CSGSurface ( ) [virtual]

Member Function Documentation

void CSGSurface::AddBox ( const double  sizeX,
const double  sizeY,
const double  sizeZ 
)
void CSGSurface::AddBox ( const double  sizeX,
const double  sizeY,
const double  sizeZ 
)
void CSGSurface::BooleanAdd ( const CSGSurface surfaceToAdd)
void CSGSurface::BooleanAdd ( const CSGSurface surfaceToAdd)
void CSGSurface::BooleanRemove ( const CSGSurface surfaceToRemove)
void CSGSurface::BooleanRemove ( const CSGSurface surfaceToRemove)
void CSGSurface::Clear ( )
void CSGSurface::Clear ( )
GtsSurface* CSGSurface::GetSurface ( ) [inline]
void CSGSurface::InsertSurface ( const CSGSurface surface)
void CSGSurface::InsertSurface ( const CSGSurface surface)
void CSGSurface::Paint ( ) const
void CSGSurface::Paint ( ) const
void CSGSurface::Rotate ( float  rotateX,
float  rotateY,
float  rotateZ 
)
void CSGSurface::Rotate ( float  rotateX,
float  rotateY,
float  rotateZ 
)
void CSGSurface::Scale ( float  scaleX,
float  scaleY,
float  scaleZ 
)
void CSGSurface::Scale ( float  scaleX,
float  scaleY,
float  scaleZ 
)
void CSGSurface::ScaleUniform ( float  scaleXYZ)
void CSGSurface::ScaleUniform ( float  scaleXYZ)
bool CSGSurface::SelfTest ( void  )
bool CSGSurface::SelfTest ( void  )
void CSGSurface::SetSphere ( const double  radius,
const unsigned char  subdivision = 3 
)
void CSGSurface::SetSphere ( const double  radius,
const unsigned char  subdivision = 3 
)
void CSGSurface::Statistics ( void  )
void CSGSurface::Statistics ( void  )
void CSGSurface::Translate ( float  translateX = 0,
float  translateY = 0,
float  translateZ = 0 
)
void CSGSurface::Translate ( float  translateX = 0,
float  translateY = 0,
float  translateZ = 0 
)

Member Data Documentation

GtsSurface* CSGSurface::s [protected]

The documentation for this class was generated from the following files: