Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoCellIndices.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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_CELLINDICE_
25#define _PO_CELLINDICE_
26
27#include <MeshViz/3Ddata/PoCellShape.h>
28
53class PoCellIndices : public PoCellShape {
54
55 SO_KIT_HEADER(PoCellIndices) ;
56
57 /* Define fields for new parts */
58 SO_KIT_CATALOG_ENTRY_HEADER(nodesIndexSep);
59 SO_KIT_CATALOG_ENTRY_HEADER(nodesIndexApp);
60 SO_KIT_CATALOG_ENTRY_HEADER(nodesIndexGroup);
61
62 SO_KIT_CATALOG_ENTRY_HEADER(cellIndexSep);
63 SO_KIT_CATALOG_ENTRY_HEADER(cellIndexApp);
64 SO_KIT_CATALOG_ENTRY_HEADER(cellIndexGroup);
65
66
67 public:
68
73
74 /* Fields */
75
81
85 virtual void rebuild() ;
86
87 /*----------------------------------------------------------------------------*/
88 private:
89 static void initClass() ;
90 static void exitClass() ;
91
92 private:
93 virtual ~PoCellIndices() ;
94 // Destructor.
95
96 // Methods
97 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
98 virtual void setDefaultOnNonWritingFields();
99
100 private:
101 // Sensors
102 FieldSensorList m_fieldSensorList ;
103
104 // List of fields defined in this class
105 SoFieldList m_fieldList ;
106
107 void drawNodesIndex(const PbCell *cell, SoGroup *group);
108 void drawCellIndex(const PbCell *cell, SoGroup *group);
109} ;
110
111/*----------------------------------------------------------------------------*/
112
113#endif /* _PO_CELLINDICE_ */
114
115
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract cell...
Definition PbCell.h:49
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Builds text indices of a...
PoCellIndices()
Constructor.
SoSFFloat offset
Factor of the cell's size that specifies the distance of the nodes indices representation to the posi...
virtual void rebuild()
Forces node-kit rebuilding.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract representation ...
Definition PoCellShape.h:44
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Base class for all group nodes.
Definition SoGroup.h:122
Field containing a floating-point value.
Definition SoSFFloat.h:78
int SbBool
Boolean type.
Definition SbBase.h:87