Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoImageDataAdapter.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_IMAGE_DATA_ADAPTER_H_
24#define _SO_IMAGE_DATA_ADAPTER_H_
25
26#include <ImageViz/SoImageViz.h>
28#include <Inventor/SbVec.h>
29#include <Inventor/SbBox.h>
32#include <Inventor/SbPImpl.h>
38
39#ifdef _MSC_VER
40#pragma warning( push )
41#pragma warning(disable:4251)
42#endif
43
45class SoDEPRECATED SoImageDataAdapter : public SoFieldContainer
77{
79 SO_PIMPL_BASE_PUBLIC_HEADER(SoImageDataAdapter);
80
81public:
93 {
114 BINARY
115 };
116
129
147
152
159
165 virtual void setInterpretation( const Interpretation& interpretation );
166
171
178 virtual SbVec4i32 getSize() const;
179
184 virtual SbBox3f getExtent() const;
185
191
196 void setVoxelSize( const SbVec3f& voxelSize );
197
203
209 void setOrigin( const SbVec3f& origin );
210
218 void setDirection(const SbVec3f &rowDirection, const SbVec3f &columnsDirection);
219
224
229
234
240
247
248private:
249
253 virtual void notify( SoNotList* list );
254
256 inventor::impl::SoImageDataAdapterImpl* getImpl() const;
257
258private:
259
261 virtual ~SoImageDataAdapter();
262
263private:
264 // default constructor is not available
266
269 SbImageDataAccessor m_dataAccessor;
270
271};
272
273#ifdef _MSC_VER
274#pragma warning( pop )
275#endif
276
277#endif /* _SO_IMAGE_DATA_ADAPTER_H_ */
278
279
SO_PIMPL_BASE_PUBLIC_DECLARATION(SoImageDataAdapter)
#define SO_FIELDCONTAINER_ABSTRACT_HEADER(className)
3D box class.
Definition SbBox.h:649
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Class used to retrieve...
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Basic class representi...
4x4 matrix class.
Definition SbMatrix.h:309
3D vector class.
Definition SbVec.h:932
4D vector class.
Definition SbVec.h:2639
Abstract base class for objects that contain fields.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Abstract base class fo...
virtual SbBox3f getExtent() const
Returns the extent of the image in 3D.
void setDirection(const SbVec3f &rowDirection, const SbVec3f &columnsDirection)
Set the direction cosines of rows and columns.
virtual Interpretation getInterpretation() const
Returns the current interpretation of the image.
SbMatrix getIndexToPhysicalTransformation() const
Returns the transformation that maps a position in the image coordinate system to a position in the p...
virtual void setInterpretation(const Interpretation &interpretation)
Sets the interpretation of the image.
void setOrigin(const SbVec3f &origin)
Sets the image origin in 3D.
SoSFEnum interpretation
Image Interpretation Default is VALUE.
SbVec3f getOrigin() const
Returns the image origin in 3D.
SbVec3f getPlaneDirection() const
Returns the vector in physical coordinate that points from the origin (0,0,0) to the point (0,...
virtual SbImageDataType getImageDataType()
Returns the data type of the image.
virtual SbVec4i32 getSize() const
Returns a vector representing the dimensions of the image data.
Interpretation
Image Interpretation.
@ VALUE
Image is a grayscale or color image.
@ LABEL
Image is a collection of objects defined by id (label) values.
SbVec3f getColumnDirection() const
Returns the vector in physical coordinate that points from the origin (0,0,0) to the point (0,...
SbImageDataAccessor & getDataAccessor()
Returns an SbImageDataAccessor.
void setVoxelSize(const SbVec3f &voxelSize)
Sets the voxel size in 3D.
SoSFBox3f extent
The extent and orientation fields define the position, size and orientation of the image in 3D (typic...
SbVec3f getRowDirection() const
Returns the vector in physical coordinate that points from the origin (0,0,0) to the point (1,...
SbVec3f getVoxelSize() const
Returns the size of a voxel in 3D.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Field containing...
Definition SoSFBox3f.h:55
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a rotation.
void notify(SoNotList *list)