Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PoBevelEdgeElement.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 : R. ALBOU (Mar 1999)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _PO_BEVEL_EDGE_ELEMENT_
26#define _PO_BEVEL_EDGE_ELEMENT_
27
29
31
36
38
39 public:
40 // Set the current beveled edge attributes
41 static void set(SoState *state, SoNode *node, SbBool on, float radius,
42 PoBevelEdge::RadiusFlag radiusFlag, float bevelAngle);
43
44 // Return the current beveled edge attributes from the state
45 static void get(SoState *state, SbBool &on, float &radius,
46 PoBevelEdge::RadiusFlag &radiusFlag, float &bevelAngle);
47
48 // Default values
49 static void getDefault(SbBool &on, float &radius,
50 PoBevelEdge::RadiusFlag &radiusFlag,
51 float &bevelAngle);
52
53 private:
54 // Initializes the class
55 static void initClass();
56 static void exitClass() ;
57
58 private:
60 virtual void init(SoState *state);
61
62 virtual ~PoBevelEdgeElement();
63
64 private:
65 SbBool m_on;
66 float m_radius, m_bevelAngle;
67 PoBevelEdge::RadiusFlag m_radiusFlag;
68};
69/*----------------------------------------------------------------------------*/
70
71#endif // _PO_BEVEL_EDGE_ELEMENT_
72
73
static void init()
#define SO_ELEMENT_HEADER(className)
static void getDefault(SbBool &on, float &radius, PoBevelEdge::RadiusFlag &radiusFlag, float &bevelAngle)
static void set(SoState *state, SoNode *node, SbBool on, float radius, PoBevelEdge::RadiusFlag radiusFlag, float bevelAngle)
static void get(SoState *state, SbBool &on, float &radius, PoBevelEdge::RadiusFlag &radiusFlag, float &bevelAngle)
RadiusFlag
Radius Type.
Definition PoBevelEdge.h:69
Abstract base class for all database nodes.
Definition SoNode.h:145
Abstract base class for each state element whose value is replaced whenever it is set.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87