Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoSliceDetail.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 : J. SALLANNE (Sep 2014)
22**=======================================================================*/
23
24#ifndef _SO_SLICE_DETAIL_
25#define _SO_SLICE_DETAIL_
26
27#include <Inventor/details/SoSubDetail.h>
28#include <Inventor/SbPImpl.h>
29#include <VolumeViz/nodes/SoVolumeData.h>
30
31class SbPlane;
32class SbLine;
33
34SO_PIMPL_BASE_PUBLIC_DECLARATION(SoSliceDetail)
35
36
37//
38// Class: SoSliceDetail
39//
40// Abstract class for SoOrthoSliceDetail and SoObliqueSliceDetail nodes.
41//
43
71class SoSliceDetail : public SoDetail {
72
73 SO_DETAIL_HEADER(SoSliceDetail);
74 SO_PIMPL_BASE_PUBLIC_HEADER(SoSliceDetail);
75
76 public:
81
85 virtual ~SoSliceDetail();
86
88 virtual SoDetail* copy() const;
89
93 const SbVec3f& getValueObjectPos() const;
94
98 const SbVec3i32& getValueDataPos() const;
99
103 int64_t getValue() const;
104
108 double getValueD() const;
109
110 private:
111 static void initClass();
112 static void exitClass();
113
114 private:
115 void setDetails(SbPlane p, SbLine line, SoVolumeData* vd);
116 void getDetails(SbPlane& p, SbLine& line, SoVolumeData*& vd) const;
117
118 private:
120 SoSliceDetail(const SoSliceDetail& detail);
121
122};
123
124#endif /* _SO_SLICE_DETAIL_ */
125
126
Directed line in 3D.
Definition SbLine.h:57
Oriented plane in 3D.
Definition SbPlane.h:64
3D vector class.
Definition SbVec.h:932
3D vector class.
Definition SbVec.h:1517
Base class for describing detail information about a shape node.
Definition SoDetail.h:99
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Base class for detail...
virtual ~SoSliceDetail()
Destructor.
int64_t getValue() const
const SbVec3f & getValueObjectPos() const
virtual SoDetail * copy() const
Returns an instance that is a copy of this instance.
const SbVec3i32 & getValueDataPos() const
double getValueD() const
SoSliceDetail()
Constructor.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> Volume data property ...