Package com.openinventor.ldm.nodes
Enum Class SoLDMResourceParameters.FixedResolutionReport.ReportCodes
java.lang.Object
java.lang.Enum<SoLDMResourceParameters.FixedResolutionReport.ReportCodes>
com.openinventor.ldm.nodes.SoLDMResourceParameters.FixedResolutionReport.ReportCodes
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoLDMResourceParameters.FixedResolutionReport.ReportCodes>
,Constable
- Enclosing class:
SoLDMResourceParameters.FixedResolutionReport
public static enum SoLDMResourceParameters.FixedResolutionReport.ReportCodes
extends Enum<SoLDMResourceParameters.FixedResolutionReport.ReportCodes>
implements IntegerValuedEnum
Available report code.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the integer value of the enum constant.valueOf
(int val) Returns the enum constant of this type with the specified integer valueReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PROGRESS
Loading in progress. In this case, the progress is indicated by the two variables numTilesToLoad and numTilesLoaded. The current resources of the machine allow LDM to load the data at the specified resolution. In this case, the only possible way to receive an ABORT report code from the system is either if the user changes the resources (i.e., decreases the main memory space), or add some new geometry to the scene. -
ABORT
If LDM cannot grant a fixed resolution request, the callback function is called with an ABORT report code. In this case, LDM will automatically disable the fixed resolution mode. The FixedResolutionCB callback will be called with an ABORT report code in the following cases:- The request to load the data at the specified resolution level (resolution argument in the enableFixedResolutionMode function) in main memory for the current geometry (either
SoVolumeRender
,SoVolumeSkin
,SoOrthoSlice
,SoObliqueSlice
, volume geometries, or other LDM based render nodes) is not possible because the main memory space (set by the setMaxMainMemory function) is not large enough. In this case, the callback is called with an ABORT code immediately after the first sceneGraph traversal, once the fixed resolution mode has been enabled. - There was a geometry change (i.e., a geometry node was added to the scene graph) and there is not enough room in memory for the geometry nodes to be displayed at the current resolution level. In this case, the memory space needed in addition for LDM to be able to grant the request, is specified by the numTilesToAdd variable. If there is enough main memory resources on the user machine, an automatic memory adjustment can then be realized by calling setMaxTilesInMainMem( getMaxTilesInMainMem() + numTilesToAdd ) right before enableFixedResolutionMode is called again. Those two calls can be done within the callback function so LDM does not disable the fixed resolution mode after an ABORT report code has been sent.
- The request to load the data at the specified resolution level (resolution argument in the enableFixedResolutionMode function) in main memory for the current geometry (either
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
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.
-