Enum Class SoLDMResourceParameters.TileCachePolicies
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoLDMResourceParameters.TileCachePolicies>
,Constable
- Enclosing class:
SoLDMResourceParameters
tileCachePolicy
.
It specifies when and how the tiles are stored in CPU memory.
For non-compressed tiled data, the cache policy has no effect. The tiles are stored as-is in the first level CPU cache during data loading.
See SoLDMGlobalResourceParameters
for detail on the first and second level CPU tile cache.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor non-tiled data such as DICOM or SEGY or in-memory volume, tiles are created when needed (to send data to the GPU) and both low resolution and full resolution tiles are stored in the first level CPU tile cache.For non-tiled data such as DICOM or SEGY or in-memory volume, tiles are created when needed (to send data to the GPU): full resolution tiles are stored in the second level CPU tile cache and all the other created tiles (lower resolution) are stored in the first level CPU tile cache.For non-tiled data such as DICOM or SEGY or an in-memory volume, tiles are created when needed (to send data to the GPU) and stored in the second level CPU tile cache. -
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
-
NONE
For non-tiled data such as DICOM or SEGY or an in-memory volume, tiles are created when needed (to send data to the GPU) and stored in the second level CPU tile cache. For tiled data that is compressed (e.g. an LDM file created with compression), the compressed tiles are stored in the first level CPU tile cache "as is" to reduce the memory footprint (the first level tile cache contains only compressed data). When a tile must be sent to the GPU, it is uncompressed and the resulting uncompressed tile is stored in the second level CPU tile cache.This mode saves memory but can reduce interactivity.
-
LOWRES_ONLY
For non-tiled data such as DICOM or SEGY or in-memory volume, tiles are created when needed (to send data to the GPU): full resolution tiles are stored in the second level CPU tile cache and all the other created tiles (lower resolution) are stored in the first level CPU tile cache. For tiled data that is compressed (e.g. an LDM file created with compression), the full resolution tiles are stored *compressed* in the first level CPU tile cache (to reduce the CPU memory footprint) and the other created tiles are stored *uncompressed* in the first level CPU tile cache. When compressed tiles must be sent to the GPU, they are uncompressed and stored in the second level CPU tile cache.This setting uses more memory but saves time when low resolution tiles need to be sent to the GPU.
-
ALL
For non-tiled data such as DICOM or SEGY or in-memory volume, tiles are created when needed (to send data to the GPU) and both low resolution and full resolution tiles are stored in the first level CPU tile cache. This mode is recommended for non-tiled volumes loaded from disk when the volume will fit in memory (generally true for medical volumes). NOTE: For an in-memory volume, this setting will duplicate the data in memory. For an in-memory volume it is better to use the LOWRES_ONLY or NONE setting.For tiled data that is compressed (e.g. an LDM file created with compression), both full resolution and low resolution tiles are uncompressed when loaded and stored *uncompressed* in the first level CPU tile cache.
This setting uses the most memory, but saves time when tiles need to be sent to the GPU. It does not use the second level CPU tile cache.
-
-
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.
-