Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoBevelProperty.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 _SO_BEVEL_PROPERTY
24#define _SO_BEVEL_PROPERTY
25
30
31class SoBevelAction;
32
34//
35// Class: SoBevelProperty
36//
37// Node used to set the bevel properties for all subsequent shapes.
38//
40
74class SoBevelProperty : public SoNode
75{
77
78 public:
80 enum Test
81 {
97 ALL_TESTS = 0x07
98 };
123
130
135
136 private:
137 virtual void doAction(SoAction *action);
138 virtual void bevel(SoBevelAction *action);
139 virtual void callback(SoCallbackAction *action);
140
141 private:
142 static void initClass();
143 static void exitClass();
144 static const float DEFAULT_RADIUS;
145 static const SbBool DEFAULT_ABSOLUTE_RADIUS;
146 static const float DEFAULT_ANGLE;
147 static const int DEFAULT_TESTS;
148
149 private:
150 virtual ~SoBevelProperty();
151
152private:
153SoDEPRECATED
156 SoSFBool vrmlOutput;
157};
158
159#endif
160
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
Abstract base class for all actions.
Definition SoAction.h:132
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Creates a scene ...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Node to define b...
SoBevelProperty()
Constructor.
SoSFBool absoluteRadius
If TRUE, the value of radius will be taken as the bevel radius.
@ ALL_TESTS
All tests.
@ DUPLICATE_TEST
Remove duplicate faces.
@ COPLANAR_TEST
Concatenate coplanar faces.
@ ORDERING_TEST
Reorder facet normals.
SoSFFloat radius
This defines the bevel radius (the size of the rounded edge or corner).
SoSFBitMask testsBeforeBevel
Which tests should be performed in order to "clean up" the shape before it is beveled.
SoSFFloat angle
Indicates the angle (in radians, between 0 and pi) between two adjacent face normals above which th...
Performs a generic traversal of a scene graph or path.
Abstract base class for all database nodes.
Definition SoNode.h:145
Single-value field containing a set of bit flags.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a floating-point value.
Definition SoSFFloat.h:78
int SbBool
Boolean type.
Definition SbBase.h:87