#include <pgmvol.h>
Inheritance diagram for vlVolFioPGMVol:

Public Member Functions | |
| vlVolFioPGMVol () | |
| Default constructor. | |
| virtual | ~vlVolFioPGMVol () |
| Default destructor. | |
| const std::vector< std::string > & | getFileExtensions () const |
| Return the list of valid file extensions for this file format. | |
| bool | readInfo (vlVolInfo &info, FILE *const fp, const std::string &filename) |
| Read info about the volume from the file. | |
| bool | readData (vlVolInfo &info, vlVolData *const data, FILE *const fp, const std::string &filename) |
| Read volume data from the file. | |
| bool | writeInfo (const vlVolInfo &info, FILE *const fp, const std::string &filename) |
| Write just the volume information to the file. | |
| bool | writeData (const vlVolInfo &info, const vlVolData *data, FILE *const fp, const std::string &filename) |
| Write just the volume data to file. | |
Protected Member Functions | |
| template<class T> bool | readDataT (T &dummy, vlVolInfo &info, vlVolData *const data, FILE *const fp, const std::string &filename) |
| template<class T> bool | writeDataT (T &dummy, const vlVolInfo &info, const vlVolData *data, FILE *const fp, const std::string &filename) |
Protected Attributes | |
| std::vector< std::string > | m_fileExtensions |
| Extensions associated with the file format. | |
|
|
Definition at line 46 of file pgmvol.cpp. References vlPlugin::infoRef(), m_fileExtensions, vlPluginInfo::setName(), vlPluginInfo::setService(), and vlPluginInfo::setVersion(). |
|
|
Definition at line 59 of file pgmvol.cpp. |
|
|
Implements vlVolFioFilter. Definition at line 70 of file pgmvol.cpp. References m_fileExtensions. |
|
||||||||||||||||||||
|
Implements vlVolFioFilter. Definition at line 128 of file pgmvol.cpp. References callFunctionOnDataType, vlVolInfo::dataType(), vlVolData::dataType(), vlVolInfo::dim(), vlVolData::dim(), filename, vlVolInfo::isValid(), and readDataT(). |
|
||||||||||||||||||||||||||||
|
Definition at line 157 of file pgmvol.cpp. References vlVolInfo::dim(), vlVolIterConst< DataType, Layout >::nextXYZ(), vlVolIter< DataType, Layout >::set(), uint32, vlTriple< uint16 >::x(), vlTriple< uint16 >::y(), and vlTriple< uint16 >::z(). Referenced by readData(). |
|
||||||||||||||||
|
The idea here is to always return false since there is no way to read the correct information from a raw file. Instead, whatever possible information gathered from the file is loaded into vlVolInfo and a false is returned.
Implements vlVolFioFilter. Definition at line 85 of file pgmvol.cpp. References vlVolInfo::dim(), max, vlVolInfo::setDataType(), vlVolInfo::setDim(), uint16, and UnsignedInt8. |
|
||||||||||||||||||||
|
Implements vlVolFioFilter. Definition at line 237 of file pgmvol.cpp. References callFunctionOnDataType, vlVolData::dataType(), filename, and writeDataT(). |
|
||||||||||||||||||||||||||||
|
Definition at line 250 of file pgmvol.cpp. References vlVolIterConst< DataType, Layout >::get(), and vlVolIterConst< DataType, Layout >::nextXYZ(). Referenced by writeData(). |
|
||||||||||||||||
|
Implements vlVolFioFilter. Definition at line 219 of file pgmvol.cpp. References vlVolInfo::bitsPerVoxel(), vlVolInfo::dim(), vlTriple< uint16 >::x(), vlTriple< uint16 >::y(), and vlTriple< uint16 >::z(). |
|
|
Definition at line 69 of file pgmvol.h. Referenced by getFileExtensions(), and vlVolFioPGMVol(). |
1.3.3