Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoVRTiffFileReader.h
1/*=======================================================================
2** VSG_COPYRIGHT_TAG
3**=======================================================================*/
4/*=======================================================================
5** Author : M.Mathiaut (Oct 2014)
6**=======================================================================*/
7
8#ifndef _SO_VR_TIFF_FILE_READER_
9#define _SO_VR_TIFF_FILE_READER_
10
11#include <Inventor/misc/SoRef.h>
12#include <Inventor/misc/SoRefCounter.h>
13#include <LDM/readers/SoVolumeReader.h>
14#include <VolumeViz/nodes/SoVolumeData.h>
15#include <Inventor/STL/vector>
16#include <Inventor/SbPImpl.h>
17
18
19SO_PIMPL_BASE_PUBLIC_DECLARATION(SoVRTiffFileReader);
20
46{
47
48 SO_FIELDCONTAINER_HEADER(SoVRTiffFileReader);
49 SO_PIMPL_BASE_PUBLIC_HEADER(SoVRTiffFileReader);
50
51public:
52
55
59 virtual int setFilename( const SbString& filename );
60
64 virtual ReadError getDataChar( SbBox3f& size, SoDataSet::DataType& type, SbVec3i32& dim ) override;
65
69 virtual void getSubSlice( const SbBox2i32& subSlice, int sliceNumber, void* data );
70
74 virtual void getSubSlice( const SbBox2i32& subSlice, int sliceNumber, SoBufferObject* dataBuffer );
75
80 {
81 return TIFF;
82 }
83
88
89private:
90
92 virtual ~SoVRTiffFileReader();
93};
94
95#endif /* _SO_VR_TIFF_FILE_READER_ */
96
97
2D box class.
Definition SbBox.h:2383
3D box class.
Definition SbBox.h:649
Class for smart character strings.
Definition SbString.h:202
3D vector class.
Definition SbVec.h:1517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
DataType
Supported data type.
Definition SoDataSet.h:604
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> TIFF file reader.
SbBool isThreadSafe() const
Return true as this reader is thread safe.
virtual int setFilename(const SbString &filename)
Specifies the path of the file.
virtual ReadError getDataChar(SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) override
Gets the characteristics (file header) of the data volume.
virtual void getSubSlice(const SbBox2i32 &subSlice, int sliceNumber, SoBufferObject *dataBuffer)
Same as getSubSlice( const SbBox2i32& subSlice, int sliceNumber, void * data ) but using an SoBufferO...
SoVRTiffFileReader()
Constructor.
virtual SoVolumeReader::ReaderType getReaderType()
Returns the reader type.
virtual void getSubSlice(const SbBox2i32 &subSlice, int sliceNumber, void *data)
Must copy the rectangular part defined by subSlice of the XY slice sliceNumber to the memory refe...
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Abstract...
ReaderType
Available reader type.
ReadError
Read error.
int SbBool
Boolean type.
Definition SbBase.h:87