Package com.openinventor.ldm.nodes
Enum SoLDMResourceParameters.ViewpointRefinementPolicies
- java.lang.Object
-
- java.lang.Enum<SoLDMResourceParameters.ViewpointRefinementPolicies>
-
- com.openinventor.ldm.nodes.SoLDMResourceParameters.ViewpointRefinementPolicies
-
- All Implemented Interfaces:
IntegerValuedEnum
,java.io.Serializable
,java.lang.Comparable<SoLDMResourceParameters.ViewpointRefinementPolicies>
- Enclosing class:
- SoLDMResourceParameters
public static enum SoLDMResourceParameters.ViewpointRefinementPolicies extends java.lang.Enum<SoLDMResourceParameters.ViewpointRefinementPolicies> implements IntegerValuedEnum
Viewpoint refinement policies. Used byviewpointRefinementPolicy
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VIEWPOINT_REFINEMENT_INHERITED_FROM_GLOBAL
The refinement of tiles will depend on the viewpoint or not according to the flag returned bySoLDMGlobalResourceParameters.getViewpointRefinement()
.VIEWPOINT_REFINEMENT_OFF
Viewpoint will not affect tile loading priorities.VIEWPOINT_REFINEMENT_ON
The refinement of tiles will depend on the viewpoint.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the integer value of the enum constant.static SoLDMResourceParameters.ViewpointRefinementPolicies
valueOf(int val)
Returns the enum constant of this type with the specified integer valuestatic SoLDMResourceParameters.ViewpointRefinementPolicies
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SoLDMResourceParameters.ViewpointRefinementPolicies[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VIEWPOINT_REFINEMENT_OFF
public static final SoLDMResourceParameters.ViewpointRefinementPolicies VIEWPOINT_REFINEMENT_OFF
Viewpoint will not affect tile loading priorities.
-
VIEWPOINT_REFINEMENT_ON
public static final SoLDMResourceParameters.ViewpointRefinementPolicies VIEWPOINT_REFINEMENT_ON
The refinement of tiles will depend on the viewpoint. In other words, the closest tiles to the camera have the highest priority and will be loaded first. This can be useful for large volumes that cannot be completely loaded in memory.
-
VIEWPOINT_REFINEMENT_INHERITED_FROM_GLOBAL
public static final SoLDMResourceParameters.ViewpointRefinementPolicies VIEWPOINT_REFINEMENT_INHERITED_FROM_GLOBAL
The refinement of tiles will depend on the viewpoint or not according to the flag returned bySoLDMGlobalResourceParameters.getViewpointRefinement()
.
-
-
Method Detail
-
values
public static SoLDMResourceParameters.ViewpointRefinementPolicies[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SoLDMResourceParameters.ViewpointRefinementPolicies c : SoLDMResourceParameters.ViewpointRefinementPolicies.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoLDMResourceParameters.ViewpointRefinementPolicies valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
valueOf
public static SoLDMResourceParameters.ViewpointRefinementPolicies valueOf(int val)
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()
Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-
-