#include <vuLightfieldFile.h>
Inheritance diagram for vuLightfieldFile:
Public Member Functions | |
vuLightfieldFile () | |
vuLightfieldFile (const char *fileName, bool isWritingMode) | |
default constructor | |
~vuLightfieldFile () | |
Destructor. | |
const char * | getFileName () |
Returns the file name. | |
const vuString | getErrorMessage () |
Returns the last error message. | |
bool | open () |
Opens the file for reading or writing access. | |
void | close () |
Closes the file. | |
bool | readHeader () |
Reads the header. | |
bool | writeHeader () |
Writes the header. | |
Protected Member Functions | |
bool | _setErrorMessage (const char *msg) |
bool | _isReadyForReading () |
bool | _isReadyForWriting () |
Protected Attributes | |
word | m_Mode |
Binary = 1 (default), ASCII=2, Compressed... | |
dword | m_DataSize |
Data Size in bytes. | |
vuString | m_DataName |
Name of Data. | |
bool | m_IsWritingMode |
Status Flag, true if in writing mode, otherwise false. | |
vuString | m_FileName |
File name. | |
vuString | m_ErrorMessage |
Error Message. | |
fstream * | m_FileStream |
The internal file handler. | |
bool | m_IsHeaderDone |
Status flag, true if header is written/read, otherwise false. |
|
Definition at line 3 of file vuLightfieldFile.cpp. |
|
default constructor
Definition at line 10 of file vuLightfieldFile.cpp. References m_DataName, m_DataSize, m_FileName, m_FileStream, m_IsHeaderDone, m_IsWritingMode, and m_Mode. |
|
Destructor.
Definition at line 22 of file vuLightfieldFile.cpp. References CHECKNDELETE, and m_FileStream. |
|
Definition at line 137 of file vuLightfieldFile.cpp. References _setErrorMessage(), and m_FileStream. Referenced by readHeader(), and vuSphericLightfieldFile< SIZE, TYPE >::readView(). |
Here is the call graph for this function:
|
Definition at line 147 of file vuLightfieldFile.cpp. References _setErrorMessage(), and m_FileStream. Referenced by writeHeader(), and vuSphericLightfieldFile< SIZE, TYPE >::writeView(). |
Here is the call graph for this function:
|
Definition at line 131 of file vuLightfieldFile.cpp. References m_ErrorMessage. Referenced by _isReadyForReading(), _isReadyForWriting(), open(), vuSphericLightfieldFile< SIZE, TYPE >::readHeader(), readHeader(), vuSphericLightfieldFile< SIZE, TYPE >::readView(), vuSphericLightfieldFile< SIZE, TYPE >::writeHeader(), writeHeader(), and vuSphericLightfieldFile< SIZE, TYPE >::writeView(). |
|
Closes the file.
Definition at line 64 of file vuLightfieldFile.cpp. References m_FileStream. Referenced by Scanner::_lazyCalculate(), FourierSlicer< SIZE >::_lazyCalculate(), and vuSphericLightfieldBasicConverter< SI, TI, SO, TO >::convert(). |
|
Returns the last error message.
Definition at line 34 of file vuLightfieldFile.cpp. Referenced by vuSphericLightfieldBasicConverter< SI, TI, SO, TO >::exitWithHint(). |
|
Returns the file name.
Definition at line 28 of file vuLightfieldFile.cpp. References vuString::c_str(), and m_FileName. Referenced by vuSphericLightfieldBasicConverter< SI, TI, SO, TO >::exitWithHint(). |
Here is the call graph for this function:
|
Opens the file for reading or writing access.
Definition at line 40 of file vuLightfieldFile.cpp. References _setErrorMessage(), vuString::c_str(), CHECKNDELETE, vuString::isEmpty(), m_FileName, and m_FileStream. Referenced by Scanner::_lazyCalculate(), FourierSlicer< SIZE >::_lazyCalculate(), and vuSphericLightfieldBasicConverter< SI, TI, SO, TO >::convert(). |
Here is the call graph for this function:
|
Reads the header.
Reimplemented in vuSphericLightfieldFile< SIZE, TYPE >. Definition at line 72 of file vuLightfieldFile.cpp. References _isReadyForReading(), _setErrorMessage(), m_FileStream, m_IsHeaderDone, and m_Mode. Referenced by vuSphericLightfieldFile< SIZE, TYPE >::readHeader(). |
Here is the call graph for this function:
|
Writes the header.
Reimplemented in vuSphericLightfieldFile< SIZE, TYPE >. Definition at line 108 of file vuLightfieldFile.cpp. References _isReadyForWriting(), _setErrorMessage(), vuString::isEmpty(), m_DataName, m_FileStream, m_IsHeaderDone, and m_Mode. Referenced by vuSphericLightfieldFile< SIZE, TYPE >::writeHeader(). |
Here is the call graph for this function:
|
Name of Data.
Definition at line 47 of file vuLightfieldFile.h. Referenced by vuLightfieldFile(), and writeHeader(). |
|
Data Size in bytes.
Definition at line 45 of file vuLightfieldFile.h. Referenced by vuLightfieldFile(). |
|
Error Message.
Definition at line 53 of file vuLightfieldFile.h. Referenced by _setErrorMessage(). |
|
File name.
Definition at line 51 of file vuLightfieldFile.h. Referenced by getFileName(), open(), and vuLightfieldFile(). |
|
The internal file handler.
Definition at line 55 of file vuLightfieldFile.h. Referenced by _isReadyForReading(), _isReadyForWriting(), close(), open(), readHeader(), vuLightfieldFile(), writeHeader(), and ~vuLightfieldFile(). |
|
Status flag, true if header is written/read, otherwise false.
Definition at line 57 of file vuLightfieldFile.h. Referenced by readHeader(), vuLightfieldFile(), and writeHeader(). |
|
Status Flag, true if in writing mode, otherwise false.
Definition at line 49 of file vuLightfieldFile.h. Referenced by vuLightfieldFile(). |
|
Binary = 1 (default), ASCII=2, Compressed...
Definition at line 43 of file vuLightfieldFile.h. Referenced by readHeader(), vuLightfieldFile(), and writeHeader(). |