Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PbRegularMesh1D.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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PB_REGULAR_MESH1D_
25#define _PB_REGULAR_MESH1D_
26
28
43class PbRegularMesh1D : public PbMesh1D {
44
45
46 public:
47
52
57
61 PbRegularMesh1D(int numX, float xmin, float xmax) ;
62
67
72
76 friend int operator ==(const PbRegularMesh1D &m1, const PbRegularMesh1D &m2);
77
81 friend int operator !=(const PbRegularMesh1D &m1, const PbRegularMesh1D &m2)
82 { return !(m1 == m2); }
83
87 void setGeometry(int numX, float xmin, float xmax) ;
88
93 void getGeometry(int &numX, float &xmin, float &xmax) const ;
94
98 virtual SbVec3f getNodeCoord(int nod_index) const ;
99
100 /*---------------------------------------------------------------------------*/
101 private:
102 virtual void print(FILE *fp) const;
103
104 private:
105 virtual inline float getXCoord(int nodeIndex) const ;
106
107 virtual void updateBoundingBox() const;
108
109 private:
110 void copy(const PbRegularMesh1D &other_mesh) ;
111
112 float m_xMin, m_xMax, m_dx ;
113} ;
114/*---------------------------------------------------------------------------*/
115
116#endif /* _PB_REGULAR_MESH1D_ */
117
float xmax
New Data type.
Definition PbBasic.h:60
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mono...
Definition PbMesh1D.h:42
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a regular mono-d...
PbRegularMesh1D(int numX, float xmin, float xmax)
Constructor with geometry.
friend int operator==(const PbRegularMesh1D &m1, const PbRegularMesh1D &m2)
Equality comparison operator.
~PbRegularMesh1D()
Destructor.
PbRegularMesh1D(const PbRegularMesh1D &mesh)
Copy constructor.
void getGeometry(int &numX, float &xmin, float &xmax) const
Gets the mesh geometry.
PbRegularMesh1D()
Constructor.
friend int operator!=(const PbRegularMesh1D &m1, const PbRegularMesh1D &m2)
Inequality comparison operator.
virtual SbVec3f getNodeCoord(int nod_index) const
Gets the coordinates of a node.
void setGeometry(int numX, float xmin, float xmax)
Defines a new geometry.
PbRegularMesh1D & operator=(const PbRegularMesh1D &mesh)
Assignment operator.
3D vector class.
Definition SbVec.h:932