55#ifndef _SO_FOCAL_DISTANCE_ELEMENT
56#define _SO_FOCAL_DISTANCE_ELEMENT
84 {
set(state, distance); }
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Subclasses store a single float, int, or enum value.
static float get(int stackIndex, SoState *state)
Get value.
static void set(int stackIndex, SoState *state, float value)
Set value.
Element that stores the current focal distance of the camera.
static void set(SoState *state, SoNode *, float distance)
static float getDefault()
Returns the default focal distance.
static void set(SoState *state, float distance)
Sets the current focal distance in the state.
static void initClass()
Initializes the SoFocalDistanceElement class.
virtual ~SoFocalDistanceElement()
static float get(SoState *state)
Returns current focal distance from the state.
virtual void init(SoState *state)
Initializes element.
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.