Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SculptConfig Class Reference

SculptDemo configuration class. More...

#include <SculptConfig.h>

List of all members.

Reading and writing the configuration

void saveConfig (const char *)
 Saves the configuration to a named file -- unimplemented.
static SculptConfigopenConfig (const char *)
 Opens a named file and reads its configuration.

Public Member Functions

 SculptConfig ()
 Constructor.
virtual ~SculptConfig ()
 Destructor.
char * getPatientID ()
char * getDefectFile ()
char * getSkullFile ()
char * getTextureFile ()
float * getPhantomOffset ()
float * getToolColor ()
int getCubeSize ()

Protected Attributes

Collaboration data
char patientID [256]
char skullFile [256]
 Skull model volume file.
char defectFile [256]
float phantomOffset [3]
 Offset for the PHANToM location.
float toolColor [3]
 Pencil drawing color.
char textureFile [256]
int cubeSize

Friends

ostream & operator<< (ostream &, const SculptConfig &)
 Output stream operator.
istream & operator>> (istream &, SculptConfig &)
 Input stream operator.


Detailed Description

SculptDemo configuration class.

Author:
Vaidya Chandrasekhar
The configuration for a particular environment is parsed from an input file and provides the initial data keys for querying the remote database. The patientID is used for identifying the configuration, and the skull model is loaded along with any reference images or models.

See also:
CrEditApp, CrMesh


Constructor & Destructor Documentation

SculptConfig::SculptConfig  ) 
 

Constructor.

SculptConfig::~SculptConfig  )  [virtual]
 

Destructor.


Member Function Documentation

int SculptConfig::getCubeSize  ) 
 

char * SculptConfig::getDefectFile  ) 
 

char * SculptConfig::getPatientID  ) 
 

float * SculptConfig::getPhantomOffset  ) 
 

char * SculptConfig::getSkullFile  ) 
 

char * SculptConfig::getTextureFile  ) 
 

float * SculptConfig::getToolColor  ) 
 

SculptConfig * SculptConfig::openConfig const char *   )  [static]
 

Opens a named file and reads its configuration.

void SculptConfig::saveConfig const char *   ) 
 

Saves the configuration to a named file -- unimplemented.


Friends And Related Function Documentation

ostream& operator<< ostream &  out,
const SculptConfig config
[friend]
 

Output stream operator.

istream& operator>> istream &  in,
SculptConfig config
[friend]
 

Input stream operator.


Member Data Documentation

int SculptConfig::cubeSize [protected]
 

char SculptConfig::defectFile[256] [protected]
 

char SculptConfig::patientID[256] [protected]
 

float SculptConfig::phantomOffset[3] [protected]
 

Offset for the PHANToM location.

char SculptConfig::skullFile[256] [protected]
 

Skull model volume file.

char SculptConfig::textureFile[256] [protected]
 

float SculptConfig::toolColor[3] [protected]
 

Pencil drawing color.

Reference images.


The documentation for this class was generated from the following files:
Generated on Wed May 18 01:24:59 2005 for SculptDemo by  doxygen 1.4.3