Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vuFileHelper Class Reference

#include <vuFileHelper.h>

List of all members.

Static Public Member Functions

vuString getFileType (const char *filename)
 tries to find the filetype.

Static Private Member Functions

vuString getdatFileType (const char *filename)
 Returns the type of the CG-TUWien file (type | geometry | modality | dimensionality | implementation) or 0 if it is invalid.
int getTwoByte (FILE *file)
 Reads two byte from file and returns the corresponding integer.
vuString getvuFileType (const char *filename)
 returns the type of the file (type | geometry | modality | dimensionality | implementation) returns 0 if invalid...
char getType (FILE *file)
 '1' if valid header, '' otherwise
char getGeometry (FILE *file)
 '1' if structured, '5' if BCC, '6' if Lightfield, '7' if Fourier, '' otherwise
char getModality (FILE *file)
 '1' if unimodal, '2' if multimodal, '' otherwise
char getDimension (FILE *file)
 '1' for 1d, '2' for 2d, '3' for 3d, '' otherwise
char getImplementation (FILE *file)
 '1' if byte, '2' if word, '3' if dword, '' otherwise
char _getKindOfLightfield (FILE *file)
 '1' for Spheric, '' otherwise
char _getFieldsDataType (FILE *file)
 '1' if 1B, '2' if 2B, '3' if 3B, 'A' if 1F, 'B' if 2F, 'C' if 3F, '' otherwise


Member Function Documentation

char vuFileHelper::_getFieldsDataType FILE *  file  )  [static, private]
 

'1' if 1B, '2' if 2B, '3' if 3B, 'A' if 1F, 'B' if 2F, 'C' if 3F, '' otherwise

Definition at line 211 of file vuFileHelper.cpp.

References dword, and size.

Referenced by getImplementation().

char vuFileHelper::_getKindOfLightfield FILE *  file  )  [static, private]
 

'1' for Spheric, '' otherwise

Definition at line 243 of file vuFileHelper.cpp.

References dword.

Referenced by getDimension().

vuString vuFileHelper::getdatFileType const char *  filename  )  [static, private]
 

Returns the type of the CG-TUWien file (type | geometry | modality | dimensionality | implementation) or 0 if it is invalid.

Definition at line 13 of file vuFileHelper.cpp.

References getTwoByte(), and size.

Referenced by getFileType().

Here is the call graph for this function:

char vuFileHelper::getDimension FILE *  file  )  [static, private]
 

'1' for 1d, '2' for 2d, '3' for 3d, '' otherwise

Definition at line 136 of file vuFileHelper.cpp.

References _getKindOfLightfield(), and dword.

Referenced by getvuFileType().

Here is the call graph for this function:

vuString vuFileHelper::getFileType const char *  filename  )  [static]
 

tries to find the filetype.

First the normal vu type is checked and if that does not give any result the CG-TUWien dat filetype is tried.

Definition at line 4 of file vuFileHelper.cpp.

References getdatFileType(), vuString::getLength(), and getvuFileType().

Referenced by _isConverterAvailable(), init(), main(), and vuMainWindow::open().

Here is the call graph for this function:

char vuFileHelper::getGeometry FILE *  file  )  [static, private]
 

'1' if structured, '5' if BCC, '6' if Lightfield, '7' if Fourier, '' otherwise

Definition at line 106 of file vuFileHelper.cpp.

Referenced by getvuFileType().

char vuFileHelper::getImplementation FILE *  file  )  [static, private]
 

'1' if byte, '2' if word, '3' if dword, '' otherwise

Definition at line 171 of file vuFileHelper.cpp.

References _getFieldsDataType(), dword, and size.

Referenced by getvuFileType().

Here is the call graph for this function:

char vuFileHelper::getModality FILE *  file  )  [static, private]
 

'1' if unimodal, '2' if multimodal, '' otherwise

Definition at line 123 of file vuFileHelper.cpp.

Referenced by getvuFileType().

int vuFileHelper::getTwoByte FILE *  file  )  [static, private]
 

Reads two byte from file and returns the corresponding integer.

Definition at line 35 of file vuFileHelper.cpp.

Referenced by getdatFileType().

char vuFileHelper::getType FILE *  file  )  [static, private]
 

'1' if valid header, '' otherwise

Definition at line 80 of file vuFileHelper.cpp.

Referenced by getvuFileType().

vuString vuFileHelper::getvuFileType const char *  filename  )  [static, private]
 

returns the type of the file (type | geometry | modality | dimensionality | implementation) returns 0 if invalid...

Definition at line 43 of file vuFileHelper.cpp.

References getDimension(), getGeometry(), getImplementation(), getModality(), and getType().

Referenced by getFileType().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:14 2004 for vuVolume by  doxygen 1.3.9.1