Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoFXAAParameters.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-2020 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#if !defined(SO_FXAAPARAMETERS_H)
25#define SO_FXAAPARAMETERS_H
26
27#include <Inventor/antialiasing/SoAntialiasingParameters.h>
28
44{
45public:
46
55 SoFXAAParameters(int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin);
56
59
63 int getQualityPreset() const;
64
68 float getSubPixQuality() const;
69
74
78 float getEdgeThresholdMin() const;
79
80 bool operator==( const SoFXAAParameters& other ) const
81 {
82 return m_qualityPreset == other.m_qualityPreset &&
83 m_subPixQuality == other.m_subPixQuality &&
84 m_edgeThresholdQuality == other.m_edgeThresholdQuality &&
85 m_edgeThresholdMin == other.m_edgeThresholdMin;
86 }
87
88 bool operator!=( const SoFXAAParameters& other ) const
89 {
90 return !operator==( other );
91 }
92
95 {
96 return new SoFXAAParameters( *this );
97 }
98
99private:
100
101 int m_qualityPreset;
102 float m_subPixQuality;
103 float m_edgeThresholdQuality;
104 float m_edgeThresholdMin;
105};
106
107#endif // SO_FXAAPARAMETERS_H
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Antialiasing par...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Antialiasing par...
float getSubPixQuality() const
Returns the subPixQuality parameter.
float getEdgeThresholdQuality() const
Returns the edgeThresholdQuality parameter.
virtual SoAntialiasingParameters * copy() const
Copy to a new instance.
int getQualityPreset() const
Returns the quality preset.
virtual ~SoFXAAParameters()
Default destructor.
SoFXAAParameters(int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin)
Constructor which takes a value for each possible parameter.
bool operator!=(const SoFXAAParameters &other) const
float getEdgeThresholdMin() const
Returns the edgeThresholdMinimum parameter.
bool operator==(const SoFXAAParameters &other) const