Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PoSFMesh.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#ifndef _PO_SF_MESH_
24#define _PO_SF_MESH_
25
26#include <MeshViz/PbBasic.h>
29
30class PbMesh;
31
42class PoSFMesh : public SoSField {
43
44
45 public:
46
50 virtual SoType getTypeId() const;
51
56
66 void addValuesSet(int index, const float *val, const SbString &setName = "");
67
82 void addValuesSet(int index, const float *val,
83 PoMeshProperty::DataBinding binding, const SbString &setName = "");
84
90 void addStringsSet(int index, const SbString *val, const SbString &setName = "");
91
97 void addVecsSet(int index, const SbVec3f *val, const SbString &setName = "");
98
99 /*----------------------------------------------------------------------------*/
100 private:
101 static void initClass() ;
102 static void exitClass() ;
103 static void initClasses() ;
104 static void exitClasses() ;
105
106 private:
107
112
116 virtual ~PoSFMesh() {};
117
118 virtual PbMesh* getMesh() const=0;
119
120 /* Reads value of field from file */
121 virtual SbBool readValue(SoInput *in);
122
123 /* Writes value of field to file */
124 virtual void writeValue(SoOutput *out) const;
125
126 private:
127 static SoType classTypeId;
128} ;
129
130/*----------------------------------------------------------------------------*/
131
132#endif /* _PO_SF_MESH_ */
133
#define SO_FIELD_CHECK_INIT(className)
Definition SoSubField.h:572
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mesh...
Definition PbMesh.h:84
DataBinding
Data binding.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract Inventor field ...
Definition PoSFMesh.h:42
void addValuesSet(int index, const float *val, const SbString &setName="")
Convenience method that adds a set of scalar values to the internal PbMesh object.
virtual SoType getTypeId() const
Gets the type of a particular object of this class.
static SoType getClassTypeId()
Gets the type of this class.
void addStringsSet(int index, const SbString *val, const SbString &setName="")
Convenience methods that adds a set of strings values to the internal PbMesh object.
void addValuesSet(int index, const float *val, PoMeshProperty::DataBinding binding, const SbString &setName="")
Adds a set of scalar values that can be located either at nodes or at cells.
void addVecsSet(int index, const SbVec3f *val, const SbString &setName="")
Convenience methods that adds a set of vector values to the internal PbMesh object.
Class for smart character strings.
Definition SbString.h:202
3D vector class.
Definition SbVec.h:932
Used to read Open Inventor data files.
Definition SoInput.h:363
Used to write Open Inventor data files.
Definition SoOutput.h:185
Abstract base class for all single-value fields.
Definition SoSField.h:93
Stores runtime type information.
Definition SoType.h:98
int SbBool
Boolean type.
Definition SbBase.h:87