CIvfFileReader Class Reference

#include <ivffile/IvfFileReader.h>

Inheritance diagram for CIvfFileReader:

CIvfFileBase CIvfBase CIvfRefCountBase CIvfRTTIBase CIvfAc3DReader CIvfDxfReader CIvfPolyReader List of all members.

Public Member Functions

 CIvfFileReader ()
virtual ~CIvfFileReader ()
 IvfClassInfo ("CIvfFileReader", CIvfFileBase)
void getSize (double *min, double *max)
void setReverseFace (bool flag)
bool getReverseFace ()
void setScaling (double scaleFactor)
double getScaling ()
void getMidpoint (double &x, double &y, double &z)
virtual void read ()

Protected Member Functions

void getLine (std::istream &in, std::string &row)
bool findPos (const char *keyword, std::string &row, int &pos)
bool find (const char *keyword, std::string &row)
void getLine (std::string &row)
void maxMinCalc (double x, double y, double z)
void resetSize ()

Detailed Description

Base class for a file reader

This class implements basic functions for parsing a text based 3d geometry file. It also serves as a base class for file readers. File readers should override the read() method and assign imported geometry using the setShape() method in the CIvfFileBase class.

Author:
Jonas Lindemann

Definition at line 46 of file IvfFileReader.h.


Constructor & Destructor Documentation

CIvfFileReader::CIvfFileReader  ) 
 

CIvfFileReader constructor

virtual CIvfFileReader::~CIvfFileReader  )  [virtual]
 

CIvfFileReader destructor


Member Function Documentation

void CIvfFileReader::getMidpoint double &  x,
double &  y,
double &  z
 

Return midpoint of loaded model

bool CIvfFileReader::getReverseFace  ) 
 

Get handling of face orientation (Not completely impl.)

double CIvfFileReader::getScaling  ) 
 

Get scaling of loaded model (Not completely impl.)

void CIvfFileReader::getSize double *  min,
double *  max
 

Returns min/max size of read geometry

For this method to work, any derived file loaders must use the maxMinCalc() and resetSize() when reading the file. (Not completely implemented yet...)

virtual void CIvfFileReader::read  )  [virtual]
 

Virtual method for reading the model

This method is implemented in derived file loaders.

Reimplemented in CIvfAc3DReader, CIvfDxfReader, and CIvfPolyReader.

void CIvfFileReader::setReverseFace bool  flag  ) 
 

Set handling of face orientation (Not completely impl.)

void CIvfFileReader::setScaling double  scaleFactor  ) 
 

Set scaling of loaded model (Not completely impl.)


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:50 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO