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

RawReader Class Reference

#include <RawReader.h>

List of all members.

Public Member Functions

 RawReader ()
 ~RawReader ()
void openPath (string pathName) throw (Error)
void open (int index)
void close ()
char * getFileNameAt (int index) throw (Error)
bool isFileOpen ()
bool isDirOpen ()

Public Attributes

string fileInfoString
FileDescriptionfd
vector< FileDescription * > fileList
unsigned short dimX
unsigned short dimY
unsigned short dimZ
unsigned short numDataSets
unsigned short numTimeSteps
float maxPressure
float maxVorticity
float minPressure
float minVorticity
float distTimeSteps
CVoxelDatapVoxelData
float _width
float _height
unsigned long _size
ifstream * gtrFileStream
ifstream * dataFileStream

Private Member Functions

bool openGeometryFiles (string path)
bool openDataFiles (string path)

Private Attributes

bool openFlag
bool openDirFlag

Classes

struct  FileDescription


Constructor & Destructor Documentation

RawReader::RawReader  ) 
 

Constructor creates a list of raw files in the given directory.

RawReader::~RawReader  )  [inline]
 

Destructor closes an opened file and clears the file description list.


Member Function Documentation

void RawReader::close  ) 
 

Close the currently opened file and free the sources used. If now file is open, nothing happens. This method deletes the voxelData array.

char * RawReader::getFileNameAt int  index  )  throw (Error)
 

Return the name of a file at a given position. Throw an error if the position is not valid.

bool RawReader::isDirOpen  )  [inline]
 

Return the open state of a directory.

Returns:
true, if the dir is opened an the reader has a fileDescripton list

false, if the dir is not opened yet and the fileDescriptionList has not changed

bool RawReader::isFileOpen  )  [inline]
 

Return the open state of a file.

Returns:
true, if a File is opened and voxelData is initialised with densities

false, if the File is not openend and voxelData is not initialised

void RawReader::open int  index  ) 
 

Open a file from the file description list. If the index is not valid, the function throws an error

bool RawReader::openDataFiles string  path  )  [private]
 

bool RawReader::openGeometryFiles string  path  )  [private]
 

Read the geometry files

void RawReader::openPath string  pathName  )  throw (Error)
 

Open an existing path and construct a list of dat files. If the path does not exist, the function throws an error.


Member Data Documentation

float RawReader::_height
 

unsigned long RawReader::_size
 

float RawReader::_width
 

ifstream* RawReader::dataFileStream
 

pointer to the data file

unsigned short RawReader::dimX
 

Dimension of the dataset in x direction (read from the file)

unsigned short RawReader::dimY
 

Dimension of the dataset in y direction (read from the file)

unsigned short RawReader::dimZ
 

Dimension of the dataset in z direction (read from the file)

float RawReader::distTimeSteps
 

Timestep distance between 2 time steps

FileDescription* RawReader::fd
 

Description of a file conatining the path and the name for a geometry file.

string RawReader::fileInfoString
 

A text string which contains basic informations about the file

vector<FileDescription*> RawReader::fileList
 

List of file descriptions. The names in this list are used by the MenuBar

ifstream* RawReader::gtrFileStream
 

pointer to the geometry file

float RawReader::maxPressure
 

The maximum pressure in the current loaded dataset

float RawReader::maxVorticity
 

The maximzm vorticity in the current loaded dataset

float RawReader::minPressure
 

The min pressure in the current loaded dataset

float RawReader::minVorticity
 

The min vorticity in the current loaded dataset

unsigned short RawReader::numDataSets
 

Number of additional data sets

unsigned short RawReader::numTimeSteps
 

Number of time steps

bool RawReader::openDirFlag [private]
 

Flag if the directory had been opened and the filedescription list changed.

bool RawReader::openFlag [private]
 

Flag if a file is open and the voxelData contains density values.

CVoxelData* RawReader::pVoxelData
 

array wich contains the voxel densities (read from the file)


The documentation for this class was generated from the following files:
Generated on Tue Jan 24 00:36:47 2006 for ZVis by  doxygen 1.4.1