Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoFullSceneAntialiasingElement.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-2020 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Nicolas Daguise (Nov 2003)
22**=======================================================================*/
23
24#ifndef _SO_FULL_SCENE_ANTIALIASING_ELEMENT_
25#define _SO_FULL_SCENE_ANTIALIASING_ELEMENT_
26
40
42
43 public:
45 enum Filter {
47 POINTS = 0x01,
49 LINES = 0x02,
51 POLYGONS = 0x04,
53 TEXT = 0x08,
56 };
57
61 static void set(SoState *state, SbBool on, SbBool currOn, int filter);
65 static SbBool get(SoState *state, SbBool &on, SbBool &pointsOn, SbBool &linesOn, SbBool &polygonsOn, SbBool &textsOn, int& filter);
66
70 virtual void push(SoState *state);
71
78
82 static SbBool getDefault(SbBool &on, SbBool &pointsOn, SbBool &linesOn, SbBool &polygonsOn, SbBool &textsOn, int& filter);
83
84private:
85
87 virtual void init(SoState *state);
88
92 virtual SbBool matches(const SoElement* elt) const;
93
97 virtual SoElement* copyMatchInfo() const;
98
99 private:
100 // Initializes the SoFullSceneAntialiasingElement class
101 static void initClass();
102 static void exitClass();
103
104 private:
105 SbBool m_on;
106 int m_filterMask;
107 SbBool m_pointsOn;
108 SbBool m_linesOn;
109 SbBool m_polygonsOn;
110 SbBool m_textOn;
111
112 virtual void setElt(SbBool on, SbBool currOn, int filter);
113
115};
116
117#endif /* _SO_FULL_SCENE_ANTIALIASING_ELEMENT_ */
118
119
#define SoEXTENDER_Documented
static void init()
#define SO_ELEMENT_HEADER(className)
Abstract base class for all state elements.
Definition SoElement.h:102
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the curre...
static void set(SoState *state, SbBool on, SbBool currOn, int filter)
Sets the current Full-Scene Antialising attributes in the state.
static SoFullSceneAntialiasingElement * getInstance(const SoState *state)
Returns the top (current) instance of the element in the state.
static SbBool get(SoState *state, SbBool &on, SbBool &pointsOn, SbBool &linesOn, SbBool &polygonsOn, SbBool &textsOn, int &filter)
Gets the current Full-Scene Antialising attributes in the state.
virtual void push(SoState *state)
Push copies the values from the previous element.
static SbBool getDefault(SbBool &on, SbBool &pointsOn, SbBool &linesOn, SbBool &polygonsOn, SbBool &textsOn, int &filter)
Returns the default values.
Traversal state.
Definition SoState.h:74
int SbBool
Boolean type.
Definition SbBase.h:87