SoFocalDistanceElement Class Reference
[Elements]

Stores the current focal distance of the camera. More...

#include <Inventor/elements/SoFocalDistanceElement.h>

Inheritance diagram for SoFocalDistanceElement:
SoFloatElement SoElement SoTypedObject

List of all members.

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 ()

Detailed Description

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.

SEE ALSO

SoCamera, SoOrthographicCamera, SoPerspectiveCamera


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/