Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoNurbsPropertyElement.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 : R. ALBOU (Jun 1998)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _SO_NURBS_PROPERTY_ELEMENT_
26#define _SO_NURBS_PROPERTY_ELEMENT_
27
28#include <Inventor/elements/SoReplacedElement.h>
29#include <Inventor/nodes/SoNurbsProperty.h>
30
31#include <Inventor/SbColor.h>
44SoEXTENDER_Documented class SoNurbsPropertyElement : public SoReplacedElement {
45
46 SO_ELEMENT_HEADER(SoNurbsPropertyElement) ;
47 public:
48
58
62 static void set(SoState *state, SoNode *node, DrawStyle drawStyleMask,
63 int numSamplePoints, const SbColor &color,
64 u_short isoParamCurvesPattern,
66 float tessDistance, float tessAngle);
70 static void get(SoState *state, DrawStyle &drawStyleMask, int &numSamplePoints,
71 SbColor &color, u_short &isoParamCurvesPattern,
73 float &tessDistance, float &tessAngle);
74
78 static void getDefault(DrawStyle &drawStyleMask, int &numSamplePoints,
79 SbColor &color, u_short &isoParamCurvesPattern,
81 float &tessDistance, float &tessAngle);
82
83private:
84
86 virtual void init(SoState *state);
87
88 private:
89 // Initializes the SoNurbsPropertyElement class
90 static void initClass() ;
91 static void exitClass() ;
92
93 private:
94 DrawStyle m_drawStyleMask ;
95 int m_numSamplePoints ;
96 SbColor m_color ;
97 u_short m_isoParamCurvesPattern ;
99 float m_tessDistance;
100 float m_tessAngle;
101
102 private:
103 virtual ~SoNurbsPropertyElement() ;
104} ;
105
106#endif /* _SO_NURBS_PROPERTY_ELEMENT_ */
107
108
Color vector class.
Definition SbColor.h:82
Abstract base class for all database nodes.
Definition SoNode.h:145
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores current N...
static void getDefault(DrawStyle &drawStyleMask, int &numSamplePoints, SbColor &color, u_short &isoParamCurvesPattern, SoNurbsProperty::TessellationType &tessType, float &tessDistance, float &tessAngle)
Get default values.
static void get(SoState *state, DrawStyle &drawStyleMask, int &numSamplePoints, SbColor &color, u_short &isoParamCurvesPattern, SoNurbsProperty::TessellationType &tessType, float &tessDistance, float &tessAngle)
Gets the current NURBS properties attributes in the state.
static void set(SoState *state, SoNode *node, DrawStyle drawStyleMask, int numSamplePoints, const SbColor &color, u_short isoParamCurvesPattern, SoNurbsProperty::TessellationType tessType, float tessDistance, float tessAngle)
Sets the current NURBS properties attributes in the state.
@ CENTRAL_ISO_PARAM_CURVES
Central iso param curves.
@ BOUNDARIES_AND_TRIM_CURVES
Boundaries and trim curves.
TessellationType
Tesselation type.
Abstract base class for each state element whose value is replaced whenever it is set.
Traversal state.
Definition SoState.h:74