Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
MiCellExtractIj.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 : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _MICELLEXTRACTIJ_H
24#define _MICELLEXTRACTIJ_H
25
26#include <MeshVizXLM/mesh/data/MiDataSetI.h>
27#include <MeshVizXLM/mesh/data/MiDataSetIj.h>
28#include <MeshVizXLM/extractors/MiBaseExtractor.h>
29#include <MeshVizXLM/extrmesh/data/MeXDataSetI.h>
30
31#include <MeshVizXLM/mesh/MiSurfaceMeshRegular.h>
32#include <MeshVizXLM/mesh/MiSurfaceMeshRectilinear.h>
33#include <MeshVizXLM/mesh/MiSurfaceMeshCurvilinear.h>
34#include <MeshVizXLM/extrmesh/MeXSurfaceMeshUnstructured.h>
35#include <MeshVizXLM/tessellator/MiTessellator.h>
36
37#include <Inventor/STL/vector>
38
39class MiCellFilterIj;
40
52class MESHVIZXLM_EXTR_API MiCellExtractIj : virtual public MiBaseExtractor
53{
54public:
55
56 virtual ~MiCellExtractIj() {}
57
59
62 static MiCellExtractIj* getNewInstance(const MiSurfaceMeshRegular& mesh, bool parallel = true, MiTessellator* tessellator=NULL);
63 static MiCellExtractIj* getNewInstance(const MiSurfaceMeshRectilinear& mesh, bool parallel = true, MiTessellator* tessellator=NULL);
64 static MiCellExtractIj* getNewInstance(const MiSurfaceMeshCurvilinear& mesh, bool parallel = true, MiTessellator* tessellator=NULL);
66
70 class couple
71 {
72 public:
73 couple():i(0),j(0) {}
74 couple(size_t x, size_t y):i(x),j(y) {}
75 couple(size_t v):i(v),j(v) {}
76 size_t i;
77 size_t j;
79 friend bool operator ==(const couple &t1, const couple &t2)
80 { return (t1.i==t2.i && t1.j==t2.j);}
82 friend bool operator <(const couple &t1, const couple &t2)
83 { return (t1.i<t2.i || (t1.i==t2.i && t1.j<t2.j)); }
84 };
85
93 virtual const MeXSurfaceMeshUnstructured&
94 extractCell(const std::vector<couple>& cellIndexes, double factor, const MiCellFilterIj* cellFilter=NULL) = 0;
95
103 virtual const MeXSurfaceMeshUnstructured&
104 extractCell(double factor, const MiCellFilterIj* cellFilter=NULL) = 0;
105
113 virtual const MeXScalardSetI& extractScalarSet(const MiScalardSetIj& inputSet) = 0;
114
122 virtual const MeXVec3dSetI& extractVec3Set(const MiVec3dSetIj& inputSet) = 0;
123
131 virtual const MeXStringSetI& extractStringSet(const MiStringSetIj& inputSet) = 0;
132
136 virtual const MeXSurfaceMeshUnstructured& getExtract() const = 0;
137
138};
139
140#endif /* _MICELLEXTRACTIJ_H */
141
142
<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> Extracted unstructured s...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
A pair of indices used to define the cells to be extracted.
couple(size_t x, size_t y)
constructor
couple(size_t v)
constructor
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Cell extractor for struc...
static MiCellExtractIj * getNewInstance(const MiSurfaceMeshRectilinear &mesh, bool parallel=true, MiTessellator *tessellator=NULL)
virtual const MeXSurfaceMeshUnstructured & extractCell(const std::vector< couple > &cellIndexes, double factor, const MiCellFilterIj *cellFilter=NULL)=0
Creates an unstructured surface mesh from the cells faces corresponding to the given indices in the o...
virtual const MeXStringSetI & extractStringSet(const MiStringSetIj &inputSet)=0
Extracts a string set from the surface mesh.
virtual const MeXSurfaceMeshUnstructured & getExtract() const =0
Returns the result of the extraction as a mesh.
static MiCellExtractIj * getNewInstance(const MiSurfaceMeshRegular &mesh, bool parallel=true, MiTessellator *tessellator=NULL)
Factory method returning a new instance of a class implementing this interface.
virtual const MeXSurfaceMeshUnstructured & extractCell(double factor, const MiCellFilterIj *cellFilter=NULL)=0
Creates an unstructured surface mesh from the faces of the cells corresponding to the given indices i...
static MiCellExtractIj * getNewInstance(const MiSurfaceMeshCurvilinear &mesh, bool parallel=true, MiTessellator *tessellator=NULL)
virtual ~MiCellExtractIj()
virtual const MeXVec3dSetI & extractVec3Set(const MiVec3dSetIj &inputSet)=0
Extracts a vector set from the surface mesh.
virtual const MeXScalardSetI & extractScalarSet(const MiScalardSetIj &inputSet)=0
Extracts a scalar set from the surface mesh.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Interface class defining...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Generic data set interfa...
Definition MiDataSetIj.h:41
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Curvilinear surface mesh...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Rectilinear surface mesh...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Regular surface mesh abs...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract tessellator int...