Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoVRImageDataReader.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : David Beilloin (Sep 2013)
22**=======================================================================*/
23#ifndef _SO_VR_IMAGE_DATA_READER_H_
24#define _SO_VR_IMAGE_DATA_READER_H_
25
26#include <ImageViz/SoImageViz.h>
27
30
31#ifdef _MSC_VER
32#pragma warning( push )
33//#pragma warning(disable:4251)
34#endif
35
36class SoBufferObject;
37class SoVRImageDataReaderImpl;
38class SoDEPRECATED SoVRImageDataReader : public SoVolumeReader
50{
52
53public:
56
59
67
70
72 virtual void getSubSlice( const SbBox2i32& subSlice, int sliceNumber, void * data );
73
75 virtual void getSubSlice(const SbBox2i32& subSlice, int sliceNumber, SoBufferObject * dataBuffer);
76
78 virtual int getNumSignificantBits();
79
81 virtual SbBool isThreadSafe() const;
82
85
86private:
88 virtual ~SoVRImageDataReader();
89
91 virtual void notify(SoNotList *list);
92
93private:
94 SoVRImageDataReaderImpl* m_impl;
95};
96
97#ifdef _MSC_VER
98#pragma warning( pop )
99#endif
100
101#endif
#define SO_FIELDCONTAINER_HEADER(className)
2D box class.
Definition SbBox.h:2383
3D box class.
Definition SbBox.h:649
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="extIP.gif" alt="ImageViz" border="0"></a> Abstract base class fo...
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Field containing an So...
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Reads volume from an S...
virtual int getNumSignificantBits()
This method is optional.
SoSFImageDataAdapter imageData
Input image data.
SoVRImageDataReader()
Default constructor.
virtual SbBool isThreadSafe() const
Should return TRUE if the reader is thread safe.
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...
SoVRImageDataReader(SoImageDataAdapter *_image)
Helper constructor equivalent to:
virtual ReadError getDataChar(SbBox3f &size, SoDataSet::DataType &type, SbVec3i32 &dim) override
Gets the characteristics (file header) of the data volume.
virtual SoVolumeWriter * getConfiguredWriter()
Returns a volume writer that corresponds to this reader (same format, parameters,...
virtual void getSubSlice(const SbBox2i32 &subSlice, int sliceNumber, SoBufferObject *dataBuffer)
Same as getSubSlice( const SbBox2i32& subSlice, int sliceNumber, void * data ) but using an SoBufferO...
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Abstract...
ReadError
Read error.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Abstract...
int SbBool
Boolean type.
Definition SbBase.h:87
size_t size() const
void notify(SoNotList *list)