Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
MoLineDetail.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_LINEDETAIL_
26#define _MO_LINEDETAIL_
27
28#include <Inventor/details/SoLineDetail.h>
29#include <MeshVizXLM/MbVec3.h>
30#include <MeshVizXLM/mapping/MoMeshVizDataMapping.h>
31
32#include <MeshVizXLM/mapping/details/MoMeshDetail.h>
33#include <MeshVizXLM/mapping/details/MoLineMeshDetail.h>
34
35class MeXTopologyI;
36
38//
39// Class: MoLineDetail
40//
41// Detail information about vertex-based shapes made of line
42// segments. It adds indices of various items that vary among lines, vertices
43// and cell id
44//
45//
47
74class MESHVIZXLM_DMAP_API MoLineDetail : public SoLineDetail {
75
76 SO_DETAIL_HEADER(MoLineDetail);
77
78 public:
86 virtual ~MoLineDetail();
87
92 double getValue(const SbVec3f& point) const;
93
98 std::vector<double> getValues(const SbVec3f& point) const;
99
104 const MoMeshDetail* getMeshDetail() const { return &m_meshDetail; }
105
110 const MoLineMeshDetail* 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 MoLineDetail * copy() const;
115
116 private:
117 // Copies the given details
118 MoLineDetail(const SoLineDetail* lineDetail, const MoLineMeshDetail* lineMeshDetail, const std::vector<size_t>* lineMapping = NULL);
119 // Copy constructore
120 MoLineDetail(const MoLineDetail& lineDetail);
121 // Assignment operator
122 MoLineDetail& operator=(const MoLineDetail& lineDetail);
123
124 private:
125 static void initClass();
126 static void exitClass();
127
128 private:
129 MoMeshDetail m_meshDetail;
130 MoLineMeshDetail* m_repDetail;
131
132 size_t getExtractedCellIndex() const { return m_extractedCellIndex; }
133
134 private:
135 size_t m_extractedCellIndex;
136
137};
138
139#endif /* _MO_LINEDETAIL_ */
140
<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 line segments.
std::vector< double > getValues(const SbVec3f &point) const
Computes and returns all values of the mapped scalarsets at the given point.
const MoLineMeshDetail * getMeshRepresentationDetail() const
Returns information about the mesh representation (outline, clipline, ...) containing the line,...
const MoMeshDetail * getMeshDetail() const
Returns information about the input mesh containing the cell that the line belongs to,...
virtual ~MoLineDetail()
Destructor.
double getValue(const SbVec3f &point) const
Computes and returns the first value of the mapped scalarset at the given point.
virtual MoLineDetail * copy() const
Returns an instance that is a copy of this instance.
MoLineDetail()
Constructor.
Stores detail information about a mesh representation defined by a line.
Stores detail information about a mesh.
3D vector class.
Definition SbVec.h:932
Stores detail information about vertex-based shapes made of line segments.