Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoProfileElement.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : R. ALBOU (Jan 1999)
22**=======================================================================*/
23
24 /* include files */
25#ifndef _PO_PROFILE_ELEMENT_
26#define _PO_PROFILE_ELEMENT_
27
28#include <Inventor/SbLinear.h>
29#include <Inventor/elements/SoReplacedElement.h>
30
31class PoProfile;
32class PiCircleArc2;
33class PiEllipse2;
34class SbBox2f;
35class SbVec2f;
36
41
42 SO_ELEMENT_HEADER(PoProfileElement);
43
44 public:
45 // Set the current profile node
46 static void set(SoState *state, SoNode *node, const PoProfile *filter);
47
48 // Return the current profile node from the state
49 static const PoProfile *get(SoState *state);
50
51 // Return the bounding box of the current profile.
52 static SbBox2f getBBox(SoState *state);
53
59 static const SbVec2f *getProfile(SoState *state, float step, int &number);
60
61 // Default values
63 { return NULL; }
64
65 private:
66 // Initializes the class
67 static void initClass();
68 static void exitClass() ;
69
70 private:
72 virtual void init(SoState *state);
73
74 virtual ~PoProfileElement();
75
76 private:
77 PoProfile *m_profile;
78 static PiCircleArc2 m_circle;
79 static PiEllipse2 m_ellipse;
80 static SbVec2f m_profilePoints[360];
81};
82/*----------------------------------------------------------------------------*/
83
84#endif // _PO_PROFILE_ELEMENT_
85
86
static PoProfile * getDefault()
static const SbVec2f * getProfile(SoState *state, float step, int &number)
Return the current 2D polygon defining the profile.
static SbBox2f getBBox(SoState *state)
static void set(SoState *state, SoNode *node, const PoProfile *filter)
static const PoProfile * get(SoState *state)
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Definition PoProfile.h:40
2D box class.
Definition SbBox.h:1798
2D vector class.
Definition SbVec.h:76
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