#include <vlvoldata.h>
Inheritance diagram for vlVolData:

Public Member Functions | |
| virtual | ~vlVolData () |
| default destructor | |
| virtual vlDim | dim () const |
| Returns the dimensions of the 3D data. | |
| virtual vlStep | stepping () const |
| Returns the stepping in voxel distance along x, y and z axis. | |
| virtual vlUnit | units () const |
| Returns the actual distance between the voxels along x, y and z. | |
| virtual uint16 | bitsPerVoxel () const |
| Returns the number of bits that form a voxel. | |
| virtual uint16 | bytesPerVoxel () const |
| Returns the number of bytes that form a voxel. | |
| virtual uint64 | voxelCount () const |
| Returns the total number of voxels in the volume = XDim x YDim x ZDim. | |
| virtual vlDataType | dataType () const |
| Returns the type of the data stored. | |
| virtual const char * | typeInfo () const=0 |
| Returns the type name of the stored data. | |
| virtual vlLayoutType | layout () const |
| Returns the layout in which the data is stored. | |
| virtual bool | isDirty () const |
| Returns the state of the dirty flag. | |
| virtual void | setDirty (bool dirty) |
| Set/Reset the dirty flag. | |
| virtual bool | isValid () const=0 |
| Returns true if the data is valid. | |
| virtual bool | clear (const uint8 data=0x00)=0 |
| Clears the volume data with the given data. | |
| virtual void * | getVoxelVoidPtr (const vlPoint3ui &position) const=0 |
| Returns the pointer to the voxel at the given position. | |
Protected Member Functions | |
| vlVolData (const vlDim &dim, const vlDataType dataType, const vlUnit &units, const vlLayoutType layout) | |
| Constructor - only for derived classes. | |
Protected Attributes | |
| vlDim | m_dim |
| dimension for the data along x, y and z | |
| vlStep | m_step |
| step distance for the data along x, y and z | |
| vlUnit | m_units |
| Unit size of each voxel. | |
| vlDataType | m_dataType |
| data type of the stored data | |
| vlLayoutType | m_layout |
| The layout in which the data is stored. | |
| uint16 | m_bitsPerVoxel |
| The number of bits and bytes each voxel consumes. | |
| uint16 | m_bytesPerVoxel |
| The number of bits and bytes each voxel consumes. | |
| bool | m_dirty |
| Dirty flag - true indicates volume has changed. | |
Definition at line 46 of file vlvoldata.h.
|
|
Definition at line 58 of file vlvoldata.cpp. |
|
||||||||||||||||||||
|
Definition at line 43 of file vlvoldata.cpp. |
|
|
Definition at line 82 of file vlvoldata.cpp. References m_bitsPerVoxel, and uint16. Referenced by vlVolume::bitsPerVoxel(). |
|
|
Definition at line 88 of file vlvoldata.cpp. References m_bytesPerVoxel, and uint16. Referenced by vlVolume::bytesPerVoxel(). |
|
|
|
Definition at line 100 of file vlvoldata.cpp. References m_dataType, and vlDataType. Referenced by vlVolume::dataType(), vlVolFioVOX::readData(), vlVolFioSLC::readData(), vlVolFioPPM::readData(), vlVolFioRAW::readData(), vlVolFioPGMVol::readData(), vlVolFiof3d::readData(), vlVolFioDEN::readData(), vlVolume::readSubvolumes(), vlVolume::resize(), vlVolFioVOX::writeData(), vlVolFioRAW::writeData(), vlVolFioPGMVol::writeData(), and vlVolFiof3d::writeData(). |
|
|
Definition at line 64 of file vlvoldata.cpp. References m_dim. Referenced by vlVolume::copyDataT(), vlVolume::dim(), vlVolFioVOX::readData(), vlVolFioSLC::readData(), vlVolFioPPM::readData(), vlVolFioRAW::readData(), vlVolFioPGMVol::readData(), vlVolFiof3d::readData(), and vlVolFioDEN::readData(). |
|
|
This returns a void pointer, so make sure you cast it to the correct type. To avoid type-conflicts, "use iterators".
Implemented in vlVolDataLayout< DataType, LayoutType >, vlVolDataLayout< DataType, LayoutType >, vlVolDataLayout< DataType, vlLayout::Linear >, and vlVolDataLayoutBase< DataType >. Referenced by vlVolume::getVoxelVoidPtr(). |
|
|
Definition at line 112 of file vlvoldata.cpp. References m_dirty. Referenced by vlVolume::isDirty(). |
|
|
|
Definition at line 106 of file vlvoldata.cpp. References m_layout, and vlLayoutType. Referenced by vlVolume::dataLayout(), and vlVolDataLayoutBase< DataType >::vlVolDataLayoutBase(). |
|
|
Definition at line 118 of file vlvoldata.cpp. References m_dirty. Referenced by vlVolume::setDirty(). |
|
|
Definition at line 70 of file vlvoldata.cpp. References m_step. Referenced by vlVolume::stepping(). |
|
|
|
Definition at line 76 of file vlvoldata.cpp. References m_units. Referenced by vlVolume::resize(), vlVolume::units(), and vlVolDataLayout< DataType, Layout >::vlVolDataLayout(). |
|
|
Definition at line 94 of file vlvoldata.cpp. References m_dim, uint64, vlTriple< uint16 >::x(), vlTriple< uint16 >::y(), and vlTriple< uint16 >::z(). Referenced by vlVolume::voxelCount(). |
|
|
Definition at line 123 of file vlvoldata.h. Referenced by bitsPerVoxel(), and vlVolDataLayout< DataType, LayoutType >::vlVolDataLayout(). |
|
|
Definition at line 123 of file vlvoldata.h. Referenced by bytesPerVoxel(), and vlVolDataLayout< DataType, LayoutType >::vlVolDataLayout(). |
|
|
Definition at line 117 of file vlvoldata.h. Referenced by dataType(), and vlVolDataLayout< DataType, LayoutType >::vlVolDataLayout(). |
|
|
Definition at line 108 of file vlvoldata.h. Referenced by dim(), vlVolDataLayout< DataType, LayoutType >::vlVolDataLayout(), and voxelCount(). |
|
|
Definition at line 126 of file vlvoldata.h. Referenced by isDirty(), and setDirty(). |
|
|
Definition at line 120 of file vlvoldata.h. Referenced by layout(). |
|
|
Definition at line 111 of file vlvoldata.h. Referenced by stepping(). |
|
|
Definition at line 114 of file vlvoldata.h. Referenced by units(). |
1.3.3