SoVolumeReader(3)
β¨ SoVolumeReader(3) β¨
Library Functions Manual Β· SoVolumeReader π
okay bestie, welcome to the abstract superclass of the whole volume-reader family. this is the blueprint all the volume data reader classes inherit from, and yes she's giving main character energy even though she's abstract π
πΈ NAME πΈ
SoVolumeReader β abstract superclass for all volume data reader classes. no cap, that's literally her whole thing π
β¨ SYNOPSIS β¨
#include <VolumeViz/readers/SoVolumeReader.h>
Inherited by SoVRVolFileReader. π¦
π«Ά Public Types
enum CopyPolicyβ{ COPY, NO_COPY, NO_COPY_AND_DELETE }
π Public Member Functions
virtual void setUserData (void *data)virtual int getNumSignificantBits (void)virtual void getDataChar (SbBox3f &size, SoVolumeData::DataType &type, SbVec3s &dim)=0virtual void getSubSlice (SbBox2s &slice, int slicenumber, void *voxels)=0virtual SbBool getSubVolume (SbBox3s &volume, void *voxels)virtual SbBool getSubVolume (const SbBox3s &volume, const SbVec3s subsamplelevel, void *&voxels)virtual SbBool getSubVolumeInfo (SbBox3s &volume, SbVec3s reqsubsamplelevel, SbVec3s &subsamplelevel, SoVolumeReader::CopyPolicy &policy)SbVec3s getNumVoxels (SbVec3s realsize, SbVec3s subsamplinglevel) constSbVec3s getSizeToAllocate (SbVec3s realsize, SbVec3s subsamplinglevel) constint setFilename (const char *filename)
π§ Protected Member Functions
void * getBuffer (int64_t offset, unsigned int size)int bytesToInt (unsigned char *ptr, int sizeBytes)void swapBytes (int *intPtr, int sizeBytes)int64_t fileSize (void)
π Protected Attributes
void * m_data
β Friends
class SoVolumeReaderPclass SoVolumeData
π Detailed Description π
Abstract superclass for all volume data reader classes.
that's it. that's the vibe. she's the parent, she sets the rules, and the actual readers do the work π
π Member Function Documentation π
void SoVolumeReader::setUserData (void * data) [virtual]
Reimplemented in SoVRVolFileReader. π«Ά
virtual void SoVolumeReader::getDataChar (SbBox3f & size, SoVolumeData::DataType & type, SbVec3s & dim) [pure virtual]
Returns information about the volume data contained in a volume reader. Sub-classes, i.e. the non-abstract readers, needs to implement this function. so like β if you're abstract, no shade, but somebody's gotta fill this in β¨
sizeis set to the "world size" of the volume, in unit coordinates.typeis set to eitherSoVolumeData::UNSIGNED_BYTEorSoVolumeData::UNSIGNED_SHORT, to signify that the voxel values are either 8-bit or 16-bit, respectively.dimgives the volume dimensions in voxel coordinates, i.e. the number of rows, columns and stacks of voxels along the internal 3 coordinate axes of the volume.
Implemented in SoVRVolFileReader. π
virtual void SoVolumeReader::getSubSlice (SbBox2s & subslice, int slicenumber, void * data) [pure virtual]
Extract a subslice from the volume (which may still reside solely on disk). Sub-classes, i.e. the non-abstract readers, needs to implement this function. yep, still virtual, still on you bestie π
Implemented in SoVRVolFileReader. πΈ
π Author π
Generated automatically by Doxygen for SIMVoleon from the source code.
okay so real talk β she's abstract, so don't try to instantiate her directly, you'd just be sad π the whole point is that the non-abstract subclasses implementgetDataCharandgetSubSlicefor you. periodt.
this iconic little page is brought to you by SIMVoleon, Version 2.1.0 π mwah, slay, go read some volumes π¦β¨
π¦ where this page comes from
- fedora 43: SIMVoleon-devel 2.1.0-9.fc43 Β· BSD-3-Clause
- fedora 43: SIMVoleon-devel 2.1.0-9.fc43 Β· BSD-3-Clause
- fedora 44: SIMVoleon-devel 2.1.0-11.fc44 Β· BSD-3-Clause
- fedora 44: SIMVoleon-devel 2.1.0-11.fc44 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms