Class SoFocalDistanceElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoFloatElement
-
- com.openinventor.inventor.elements.SoFocalDistanceElement
-
public class SoFocalDistanceElement extends SoFloatElement
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static float
get(SoState state)
Returns current focal distance from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.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
set(SoState state, SoNode name_12186, float distance)
Sets the current focal distance in the state.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getDefault
public static float getDefault()
Returns the default focal distance.
-
set
public static void set(SoState state, float distance)
Sets the current focal distance in the state.
-
get
public static float get(SoState state)
Returns current focal distance from the state.
-
-