Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
MoMeshRepresentationDetail.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-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Martial Bonaventure (Nov 2010)
22**=======================================================================*/
23
24
25#ifndef _MO_MESHREPRESENTATIONDETAIL_
26#define _MO_MESHREPRESENTATIONDETAIL_
27
28#ifdef _WIN32
29# pragma warning( push )
30# pragma warning(disable:4251)
31#endif
32
33#include <Inventor/details/SoSubDetail.h>
34#include <Inventor/STL/vector>
35
36#include <MeshVizXLM/extrmesh/data/MeXDataSetI.h>
37#include <MeshVizXLM/mapping/MoMeshVizDataMapping.h>
38
40
42//
43// Class: MoMeshRepresentationDetail
44//
45// Detail information about a mesh representation.
46//
47//
49
67class MESHVIZXLM_DMAP_API MoMeshRepresentationDetail : public SoDetail {
68
69 SO_DETAIL_HEADER(MoMeshRepresentationDetail);
70
71 public:
80
81 /*
82 * Returns the first mapped scalarset used for coloring the mesh representation
83 */
85
86 /*
87 * Returns the list of mapped scalarsets used for coloring the mesh representation
88 */
89 const std::vector<const MeXScalardSetI*>& getExtractedColorScalarSets() const { return m_extractedColorScalarsets; }
90
91 // Returns an instance that is a copy of this instance. The caller
92 // is responsible for deleting the copy when done.
93 virtual MoMeshRepresentationDetail * copy() const = 0;
94
95 private:
96 MoMeshRepresentationDetail(const MiMeshUnstructuredI* mesh, const std::vector<const MeXScalardSetI*>& scalarsets);
97
98 // Computes the values of the scalarsets in the cell defined by the index at the given point.
99 // Returns an empty vector if point is not inside the cell.
100 std::vector<double> computeValues(const MbVec3d& point, int32_t index) const;
101
102 private:
103 static void initClass();
104 static void exitClass();
105
106private:
107 const MiMeshUnstructuredI* m_mesh;
108 std::vector<const MeXScalardSetI*> m_extractedColorScalarsets;
109
110};
111
112#ifdef _WIN32
113# pragma warning( pop )
114#endif
115
116#endif /* _MO_MESHREPRESENTATIONDETAIL_ */
117
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Generic data set interfa...
Definition MeXDataSetI.h:45
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> I Unstructured mesh abst...
Stores detail information about a mesh representation.
virtual MoMeshRepresentationDetail * copy() const =0
Returns an instance that is a copy of this instance.
MoMeshRepresentationDetail()
Constructor.
virtual ~MoMeshRepresentationDetail()
Destructor.
const std::vector< const MeXScalardSetI * > & getExtractedColorScalarSets() const
const MeXScalardSetI * getExtractedColorScalarSet() const
Base class for describing detail information about a shape node.
Definition SoDetail.h:99