Stores the current focal distance of the camera. More...
#include <Inventor/elements/SoFocalDistanceElement.h>
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, float distance) |
static void | set (SoState *state, SoNode *, float distance) |
static float | get (SoState *state) |
static float | getDefault () |
Stores the current focal distance of the camera.
This element stores the current focal distance of the camera. This can be used to determine the center of attention of the camera.
SoCamera, SoOrthographicCamera, SoPerspectiveCamera
static float SoFocalDistanceElement::get | ( | SoState * | state | ) | [inline, static] |
Returns current focal distance from the state.
static int SoFocalDistanceElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoFloatElement.
static SoType SoFocalDistanceElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoFloatElement.
static float SoFocalDistanceElement::getDefault | ( | ) | [inline, static] |
Returns the default focal distance.
static void SoFocalDistanceElement::set | ( | SoState * | state, | |
SoNode * | , | |||
float | distance | |||
) | [inline, static] |
Sets the current focal distance in the state.
static void SoFocalDistanceElement::set | ( | SoState * | state, | |
float | distance | |||
) | [inline, static] |
Sets the current focal distance in the state.