50#ifndef _SO_TEXTURE_QUALITY_ELEMENT
51#define _SO_TEXTURE_QUALITY_ELEMENT
53#include <Inventor/elements/SoFloatElement.h>
54#include <Inventor/SoPreferences.h>
96 virtual void init(
SoState *state);
104 virtual SoElement* copyMatchInfo()
const;
108 static void initClass();
109 static void exitClass();
115 virtual void setElt(
float value);
139 TEXTURE_QUALITY = 0x1,
189 virtual void init(
SoState *state);
197 virtual SoElement *copyMatchInfo()
const;
201 static void initClass();
202 static void exitClass();
206 void pFlag(FILE *,
const char *,
int)
const;
Abstract base class for all state elements.
Element's subclasses store a single float, int, or enum value.
static SoNONUNICODE float getFloat(const char *name, float defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
Stores the current texture override.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack, and set up cache dependencies...
static SbBool getQualityOverride(SoState *state)
Returns TRUE iff SoTextureQualityElement is overridden.
virtual void print(FILE *fp) const
Prints element (for debugging).
static void setImageOverride(SoState *state, SbBool override)
Sets override flag for SoTextureImageElement.
static void setQualityOverride(SoState *state, SbBool override)
Sets override flag for SoTextureQualityElement.
static SbBool getImageOverride(SoState *state)
Returns TRUE iff SoTextureImageElement is overridden.
Stores the current texture quality.
static float getDefault()
Returns the default texture quality.
static int getClassStackIndex()
Returns the stack id for this element.
static void set(SoState *state, float qual)
Sets the current texture quality in the state.
static float get(SoState *state)
Returns current texture quality from the state.
static SoType getClassTypeId()
Returns the type identifier for this class.
static bool isSetInState(SoState *state)
Returns TRUE if element has been set in set.