Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PbIrregularMesh1D.h
Go to the documentation of this file.
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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PB_IRREGULAR_MESH1D_
25#define _PB_IRREGULAR_MESH1D_
26
28
39
40
41 public:
42
47
52
56 PbIrregularMesh1D(int size, const float *x) ;
57
62
67
71 friend int operator ==(const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2);
72
76 friend int operator !=(const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2)
77 { return !(m1 == m2); }
78
82 void setGeometry(int size, const float *x) ;
83
89 void getGeometry(int &size, const float* &x) const ;
90
94 virtual SbVec3f getNodeCoord(int nod_index) const ;
95
96 /*---------------------------------------------------------------------------*/
97 private:
98 virtual void print(FILE *fp) const;
99
100 private:
101 virtual inline float getXCoord(int nodeIndex) const ;
102
103 virtual void updateBoundingBox() const;
104
105 private:
106 void destroy() ;
107 void copy(const PbIrregularMesh1D &other_mesh) ;
108
109 float *m_x ;
110} ;
111/*---------------------------------------------------------------------------*/
112
113#endif /* _PB_IRREGULAR_MESH1D_ */
114
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a irregular mono...
friend int operator!=(const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2)
Inequality comparison operator.
friend int operator==(const PbIrregularMesh1D &m1, const PbIrregularMesh1D &m2)
Equality comparison operator.
PbIrregularMesh1D()
Constructor.
void setGeometry(int size, const float *x)
Defines a new geometry.
virtual SbVec3f getNodeCoord(int nod_index) const
Gets the coordinates of a node.
PbIrregularMesh1D(int size, const float *x)
Constructor with geometry.
PbIrregularMesh1D(const PbIrregularMesh1D &mesh)
Copy constructor.
~PbIrregularMesh1D()
Destructor.
PbIrregularMesh1D & operator=(const PbIrregularMesh1D &mesh)
Assignment operator.
void getGeometry(int &size, const float *&x) const
Gets the mesh geometry.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mono...
Definition PbMesh1D.h:42
3D vector class.
Definition SbVec.h:932
size_t size() const