public class SoVRRasterStackReader extends SoVolumeReader
A raster stack is a list of raster images (that is, containing pixels, not vector graphics) of the same size so as to create a voxel volume. This reader uses a descriptive file (.lst) including a header and a list of all the raster image filenames. The file is structured as follows:
ORParameters { Raw 0 Dims 2048 2048 100 Size 10.000000 10.000000 10.000000 1250.000000 1250.000000 500.000000 Channel 2 } C:/tmp/tiff/img00000.tiff C:/tmp/tiff/img00001.tiff C:/tmp/tiff/img00002.tiff C:/tmp/tiff/img00003.tiff C:/tmp/tiff/img00004.tiff ....
Header DescriptionParameters { Raw 1 Endianess 1 HeaderLength 256 PrimType 0 Binary 0 Dims 1024 1024 300 Size 50.000000 50.000000 50.000000 1050.000000 1050.000000 250.000000 Channel 1 } img00000.raw img00001.raw img00002.raw img00003.raw img00004.raw ....
SoDataSet.DataType
(for raw data only).SoVRRasterStackReader.ChannelSelection
.Images in the list can be of different formats (uses all files formats supported by Open Inventor). VolumeViz can load image data in most common image formats including BMP, DDS, GIF, JPEG, JPEG2000, PNG and TIFF.
If images are different sizes, RD_UNSUPPORTED_DATA_TYPE_ERROR is returned by getDataChar.
The file path can be relative or absolute.
It is mandatory to have a line break after each property and/or filename otherwise VolumeViz could be unable to read the file properly.
Modifier and Type | Class and Description |
---|---|
static class |
SoVRRasterStackReader.ChannelSelections
Channel selection.
|
SoVolumeReader.Axis, SoVolumeReader.CoordinateTypes, SoVolumeReader.CopyPolicies, SoVolumeReader.DataInfo, SoVolumeReader.ReadErrors, SoVolumeReader.ReaderTypes, SoVolumeReader.SubVolumeInfo
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
ALL_CHANNELS
Deprecated.
Use
SoVRRasterStackReader.ChannelSelections.ALL_CHANNELS instead. |
static int |
ALPHA_CHANNEL
Deprecated.
|
static int |
BLUE_CHANNEL
Deprecated.
Use
SoVRRasterStackReader.ChannelSelections.BLUE_CHANNEL instead. |
static int |
GREEN_CHANNEL
Deprecated.
|
static int |
LUMINANCE
Deprecated.
Use
SoVRRasterStackReader.ChannelSelections.LUMINANCE instead. |
static int |
MAX_CHANNEL
Deprecated.
Use
SoVRRasterStackReader.ChannelSelections.MAX_CHANNEL instead. |
static int |
RED_CHANNEL
Deprecated.
Use
SoVRRasterStackReader.ChannelSelections.RED_CHANNEL instead. |
AM, AVS, COORDINATES_RECTILINEAR, COORDINATES_UNIFORM, COPY, DICOM, GENERIC, LDM, MEMORY, NO_COPY, NO_READER, RASTERSTACK, RD_FILE_FORMAT_NOT_VALID_ERROR, RD_FILE_NOT_FOUND_ERROR, RD_INVALID_DATA_ERROR, RD_NO_ERROR, RD_UNKNOWN_ERROR, RD_UNSUPPORTED_DATA_TYPE_ERROR, SEGY, TIFF, VOL, VOX, X, Y, Z
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRRasterStackReader()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setChannelSelection(SoVRRasterStackReader.ChannelSelections cs)
Selects channels to be used for data rendering.
|
boolean |
setDirectory(java.lang.String directory)
Specify a directory containing image files to load (jpg, png, tif,...).
|
void |
setSize(SbBox3f size)
Defines the bounding box size in physical units of the data set.
|
closeAllHandles, getAppropriateReader, getBorderFlag, getConfiguredWriter, getCoordinateType, getCurrentTimeStep, getDataChar, getDirectCoordSys, getDirectCoordSysAutoDetection, getDoubleMinMax, getFilename, getIntMinMax, getMinMax, getNumSignificantBits, getNumSubsampledTiles, getNumTimeSteps, getNumVoxels, getOriginalFilename, getReaderType, getShortTileSize, getSizeToAllocate, getSubSlice, getSubVolumeInfo, getTileMinMax, getTileSize, isDataConverted, isIgnoredFile, isRGBA, isThreadSafe, readTile, readTile, restoreAllHandles, setCurrentTimeStep, setDirectCoordSysAutoDetection, setDirectCoorSys, setFilename, setInputDataRange, setOutputDataType, setRectilinearCoordinates, setRGBA
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable, touch
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int MAX_CHANNEL
SoVRRasterStackReader.ChannelSelections.MAX_CHANNEL
instead.@Deprecated public static final int LUMINANCE
SoVRRasterStackReader.ChannelSelections.LUMINANCE
instead.@Deprecated public static final int RED_CHANNEL
SoVRRasterStackReader.ChannelSelections.RED_CHANNEL
instead.@Deprecated public static final int GREEN_CHANNEL
SoVRRasterStackReader.ChannelSelections.GREEN_CHANNEL
instead.@Deprecated public static final int BLUE_CHANNEL
SoVRRasterStackReader.ChannelSelections.BLUE_CHANNEL
instead.@Deprecated public static final int ALPHA_CHANNEL
SoVRRasterStackReader.ChannelSelections.ALPHA_CHANNEL
instead.@Deprecated public static final int ALL_CHANNELS
SoVRRasterStackReader.ChannelSelections.ALL_CHANNELS
instead.public void setSize(SbBox3f size)
public boolean setDirectory(java.lang.String directory)
Notes:
directory
- The directory from which to load files.
public void setChannelSelection(SoVRRasterStackReader.ChannelSelections cs)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com