stlExporter_c Class Reference

#include <stl.h>

Inheritance diagram for stlExporter_c:

Inheritance graph
[legend]

List of all members.

Public Types

enum  parameterTypes { PAR_TYP_DOUBLE, PAR_TYP_POS_DOUBLE, PAR_TYP_POS_INTEGER, PAR_TYP_SWITCH }
 parameters can have different type this enum lists all supported types More...

Public Member Functions

 stlExporter_c (void)
 create new exporter, defaults to binary mode active
virtual ~stlExporter_c (void)
void write (const char *basename, const voxel_c &shape, const faceList_c &holes)
 This function exports one shape.
virtual unsigned int numParameters (void) const =0
 return the number of parameters for the concrete exporter
virtual const char * getParameterName (unsigned int idx) const =0
 return a text to display to the user about the parameter x
virtual const char * getParameterTooltip (unsigned int) const
 get the tooltip text for this parameter
virtual parameterTypes getParameterType (unsigned int) const
 get the parameter type for this parameter
virtual double getParameter (unsigned int idx) const =0
 get the value of a parameter
virtual void setParameter (unsigned int idx, double value)=0
 set the value of a parameter
void setBinaryMode (bool on)
 select whether to use binary mode or not
bool getBinaryMode (void)
 find out if binary mode is active
virtual Polyhedron * getMesh (const voxel_c &v, const faceList_c &holes) const =0

Private Member Functions

 stlExporter_c (const stlExporter_c &)
void operator= (const stlExporter_c &)

Private Attributes

bool binaryMode
 binary STL export active or not


Member Enumeration Documentation

parameters can have different type this enum lists all supported types

Enumerator:
PAR_TYP_DOUBLE 
PAR_TYP_POS_DOUBLE 
PAR_TYP_POS_INTEGER 
PAR_TYP_SWITCH 


Constructor & Destructor Documentation

stlExporter_c::stlExporter_c ( void   )  [inline]

create new exporter, defaults to binary mode active

virtual stlExporter_c::~stlExporter_c ( void   )  [inline, virtual]

stlExporter_c::stlExporter_c ( const stlExporter_c  )  [private]


Member Function Documentation

bool stlExporter_c::getBinaryMode ( void   )  [inline]

find out if binary mode is active

References binaryMode.

virtual Polyhedron* stlExporter_c::getMesh ( const voxel_c v,
const faceList_c &  holes 
) const [pure virtual]

Implemented in stlExporter_0_c, and stlExporter_2_c.

Referenced by write().

virtual double stlExporter_c::getParameter ( unsigned int  idx  )  const [pure virtual]

get the value of a parameter

Implemented in stlExporter_0_c, and stlExporter_2_c.

virtual const char* stlExporter_c::getParameterName ( unsigned int  idx  )  const [pure virtual]

return a text to display to the user about the parameter x

Implemented in stlExporter_0_c, and stlExporter_2_c.

virtual const char* stlExporter_c::getParameterTooltip ( unsigned int   )  const [inline, virtual]

get the tooltip text for this parameter

Reimplemented in stlExporter_0_c, and stlExporter_2_c.

virtual parameterTypes stlExporter_c::getParameterType ( unsigned int   )  const [inline, virtual]

get the parameter type for this parameter

Reimplemented in stlExporter_0_c, and stlExporter_2_c.

References PAR_TYP_DOUBLE.

virtual unsigned int stlExporter_c::numParameters ( void   )  const [pure virtual]

return the number of parameters for the concrete exporter

Implemented in stlExporter_0_c, and stlExporter_2_c.

void stlExporter_c::operator= ( const stlExporter_c  )  [private]

void stlExporter_c::setBinaryMode ( bool  on  )  [inline]

select whether to use binary mode or not

References binaryMode.

virtual void stlExporter_c::setParameter ( unsigned int  idx,
double  value 
) [pure virtual]

set the value of a parameter

Implemented in stlExporter_0_c, and stlExporter_2_c.

void stlExporter_c::write ( const char *  basename,
const voxel_c shape,
const faceList_c &  holes 
)

This function exports one shape.

References binaryMode, and getMesh().


Member Data Documentation

bool stlExporter_c::binaryMode [private]

binary STL export active or not

Referenced by getBinaryMode(), setBinaryMode(), and write().


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

Generated on Sun Oct 10 10:03:12 2010 for BurrTools by  doxygen 1.5.8