Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoVolumeRenderDetail.h
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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : T.DUFOUR (Jun 2002)
22**=======================================================================*/
23
24#ifndef _SO_VOLUME_RENDER_DETAIL_
25#define _SO_VOLUME_RENDER_DETAIL_
26
27#include <Inventor/details/SoSubDetail.h>
28#include <VolumeViz/details/SoVolumeDetail.h>
29
30SO_PIMPL_PUBLIC_DECLARATION(SoVolumeRenderDetail)
31
32
33//
34// Class: SoVolumeRenderDetail
35//
36// Detail about an SoVolumeRender node.
37//
39
84
85 SO_DETAIL_HEADER(SoVolumeRenderDetail);
86 SO_PIMPL_PUBLIC_HEADER(SoVolumeRenderDetail);
87
88 public:
97
108 size_t getMaskCount(SbBool realValue = FALSE) const;
109
122 SoLDM::DataSetIdPair getMask(size_t index, SbBool realValue = FALSE) const;
123
135 void getVoxelStyleAndIsoValue(SoVolumeDataDrawStyle::DrawStyle& style, double &iso, SbBool realValue = FALSE) const;
136
143 void getRgbaValues(std::vector<SbVec4ub>& rgbaValues, std::vector<SbVec3f>& objectPos,
144 std::vector<SbVec3i32>& dataPos, std::vector<SoLDMTileID>& tileIds,
145 float opacityThreshold = -1.f) const;
146
153 void getRgbaValues(std::vector<SbVec4ub>& rgbaValues, std::vector<SbVec3f>& objectPos, float opacityThreshold = -1.f) const;
154
160 void getRgbaValues(std::vector<SbVec4ub>& rgbaValues, float opacityThreshold = -1.f) const;
161
167 void getRgbaValues(std::vector<SbVec4ub>& rgbaValues, std::vector<SbVec3i32>& dataPos, float opacityThreshold = -1.f) const;
168
173 const std::vector<SoLDMTileID>& getRgbaValuesTileIds() const;
174
176 virtual SoDetail* copy() const;
177
178 private:
179 static void initClass();
180 static void exitClass();
181
186 void setRgbaValues(const std::vector<SbVec4ub>& rgbaValues, const std::vector<SbVec3f>& points);
187
188private:
191};
192
193#endif /* _SO_VOLUME_RENDER_DETAIL_ */
194
195
Base class for describing detail information about a shape node.
Definition SoDetail.h:99
DrawStyle
Volume rendering style.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Base class for detail...
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Stores detail informa...
SoLDM::DataSetIdPair getMask(size_t index, SbBool realValue=FALSE) const
Returns the i-th volume mask applied to the first non-transparent voxel.
virtual SoDetail * copy() const
Returns an instance that is a copy of this instance.
void getRgbaValues(std::vector< SbVec4ub > &rgbaValues, std::vector< SbVec3f > &objectPos, std::vector< SbVec3i32 > &dataPos, std::vector< SoLDMTileID > &tileIds, float opacityThreshold=-1.f) const
Returns the RGBA value, object space position, data space position and tileId for each voxel intersec...
void getRgbaValues(std::vector< SbVec4ub > &rgbaValues, std::vector< SbVec3i32 > &dataPos, float opacityThreshold=-1.f) const
Returns the RGBA value and data space position of each voxel intersected by the pick ray.
void getVoxelStyleAndIsoValue(SoVolumeDataDrawStyle::DrawStyle &style, double &iso, SbBool realValue=FALSE) const
Returns the style applied to the first non-transparent voxel (and its isovalue if the style is SoVolu...
size_t getMaskCount(SbBool realValue=FALSE) const
Returns the number of volume masks applied to the first non-transparent voxel.
void getRgbaValues(std::vector< SbVec4ub > &rgbaValues, float opacityThreshold=-1.f) const
Returns the RGBA value of each voxel intersected by the pick ray.
const std::vector< SoLDMTileID > & getRgbaValuesTileIds() const
Returns the tileID of each voxel intersected by the pick ray.
SoVolumeRenderDetail()
Constructor.
virtual ~SoVolumeRenderDetail()
Destructor.
void getRgbaValues(std::vector< SbVec4ub > &rgbaValues, std::vector< SbVec3f > &objectPos, float opacityThreshold=-1.f) const
Returns the RGBA value and object space position of each voxel intersected by the pick ray.
int SbBool
Boolean type.
Definition SbBase.h:87
std::pair< SoDataSet *, int > DataSetIdPair
Pair containing an SoDataset and its dataSetId.
Definition SoLDM.h:71