Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoProjectionElement.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 : G.TALLEC (May 2007)
22**=======================================================================*/
23
24#ifndef _SO_PROJECTION_ELEMENT
25#define _SO_PROJECTION_ELEMENT
26
27#include <Inventor/elements/SoElement.h>
28
29#include <Inventor/misc/SoState.h>
30#include <Inventor/elements/SoReplacedElement.h>
31#include <Inventor/errors/SoDebugError.h>
32
33class SbProjection;
34class SoProjection;
35
51{
52
53 SO_ELEMENT_HEADER( SoProjectionElement );
54
55public:
56
60 static void set( SoState *state, SoProjection *prj );
61
65 static void set( SoState *state, SoNode *, SoProjection *prj );
66
70 static SoProjection *get( SoState *state );
71
75 static SbProjection *getInternalProjection( SoState *state );
76
77private:
78
80 virtual void commonInit();
81
83 virtual void init(SoState *state);
84
88 virtual SbBool matches(const SoElement* elt) const;
89
93 virtual SoElement* copyMatchInfo() const;
94
95 private:
96
97 // Initializes the SoProjectionElement class
98 static void initClass();
99 static void exitClass();
100
101private:
102
103 virtual void setProjection( SoProjection *projection );
104
105 virtual ~SoProjectionElement();
106
107private:
108 // projection node
109 SoProjection *m_projection;
110 bool m_isOn;
111};
112
113#endif
114
115
Base class for coordinate projection classes.
Abstract base class for all state elements.
Definition SoElement.h:102
SoNONUNICODE SbBool set(const char *fieldDataString)
Sets one or more fields in this object to the values specified in the given string,...
void get(SbString &fieldDataString)
Returns the values of the fields of this object in the Open Inventor ASCII file format in the given s...
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> Coordinate proje...
void setProjection(SbProjection *projection)
Set the current projection.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87