Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
MoFaceDetail.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_FACEDETAIL_
26#define _MO_FACEDETAIL_
27
28#include <Inventor/details/SoFaceDetail.h>
29#include <Inventor/STL/vector>
30#include <MeshVizXLM/MbVec3.h>
31#include <MeshVizXLM/mapping/MoMeshVizDataMapping.h>
32
33#include <MeshVizXLM/mapping/details/MoMeshDetail.h>
34#include <MeshVizXLM/mapping/details/MoSurfaceMeshDetail.h>
35
36class MeXTopologyI;
37
39//
40// Class: MoFaceDetail
41//
42// Detail information about vertex-based shapes made of faces. It
43// adds indices of various items that vary among faces, vertices and input cell
44//
45//
47
73class MESHVIZXLM_DMAP_API MoFaceDetail : public SoFaceDetail {
74
75 SO_DETAIL_HEADER(MoFaceDetail);
76
77 public:
85 virtual ~MoFaceDetail();
86
91 double getValue(const SbVec3f& point) const;
92
97 std::vector<double> getValues(const SbVec3f& point) const;
98
103 const MoMeshDetail* getMeshDetail() const { return &m_meshDetail; }
104
110 const MoSurfaceMeshDetail* getMeshRepresentationDetail() const { return m_repDetail; }
111
112 // Returns an instance that is a copy of this instance. The caller
113 // is responsible for deleting the copy when done.
114 virtual MoFaceDetail * copy() const;
115
116 private:
117 // Copies the given details. Optional table to mapp the facet indices to
118 // the extracted surfaceCell which is mandatory when the extracted mesh contains deadcells
119 MoFaceDetail(const SoFaceDetail* faceDetail, const MoSurfaceMeshDetail* surfMeshDetail, const std::vector<size_t>* facetMapping = NULL);
120 // Copy constructor
121 MoFaceDetail(const MoFaceDetail& faceDetail);
122 // Assignment operator
123 MoFaceDetail& operator=(const MoFaceDetail& faceDetail);
124
125 private:
126 static void initClass();
127 static void exitClass();
128
129 private:
130 MoMeshDetail m_meshDetail;
131 MoSurfaceMeshDetail* m_repDetail;
132
133 size_t getExtractedCellIndex() const { return m_extractedCellIndex; }
134
135 private:
136 size_t m_extractedCellIndex;
137
138};
139
140#endif /* _MO_FACEDETAIL_ */
141
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> List of extracted cells ...
Stores detail information about vertex-based shapes made of faces.
const MoSurfaceMeshDetail * getMeshRepresentationDetail() const
Returns information about the mesh representation (skin, isosurface...) containing the face,...
std::vector< double > getValues(const SbVec3f &point) const
Computes and returns all values of the mapped scalarsets at the given point.
double getValue(const SbVec3f &point) const
Computes and returns the first value of the mapped scalarset at the given point.
const MoMeshDetail * getMeshDetail() const
Returns information about the input mesh containing the cell that the face belongs to,...
virtual ~MoFaceDetail()
Destructor.
MoFaceDetail()
Constructor.
virtual MoFaceDetail * copy() const
Returns an instance that is a copy of this instance.
Stores detail information about a mesh.
Stores detail information about a mesh representation defined by a surface.
3D vector class.
Definition SbVec.h:932
Stores detail information about vertex-based shapes made of faces.