public class SoConverterParameters extends Inventor
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoConverterParameters.ParametersErrors |
static class |
SoConverterParameters.SampleTypes |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE
Deprecated.
Use
SoConverterParameters.SampleTypes.AVERAGE instead. |
static int |
DECIMATION
Deprecated.
Use
SoConverterParameters.SampleTypes.DECIMATION instead. |
static int |
PARAM_ERROR
Deprecated.
Use
SoConverterParameters.ParametersErrors.PARAM_ERROR instead. |
static int |
PARAM_NO_ERROR
Deprecated.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoConverterParameters()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static SoConverterParameters |
create(int argc,
java.lang.String[] argv)
Deprecated.
As of Open Inventor 9.3, use
create(String[]) instead. |
static SoConverterParameters |
create(java.lang.String[] argv)
Static method to build a parameters container from command line arguments.
|
void |
doUpdate(boolean value)
Only applies to input files in LDM format.
|
void |
enableHistogram(boolean flag)
Specify if the histogram must be computed or not.
|
double |
getBitSetThreshold()
Returns the bitset generation threshold value.
|
int |
getBorder()
Deprecated.
As of Open Inventor 9000 See documentation for more details
|
int |
getCompressionLevel() |
java.lang.String |
getCompressionName()
Returns compression type.
|
java.lang.String |
getDataFileName()
Returns the complete data filename (i.e.
|
java.lang.String |
getDataSectionFileName()
Returns the data filename.
|
java.lang.String |
getHeaderFileName()
Returns header filename.
|
java.lang.String |
getInputFileName()
Returns input filename.
|
double[] |
getInputRangeMinMax()
Returns input data range.
|
SoDataSet |
getInputVolume()
Returns the the volume used as input.
|
SoConverterParameters.SampleTypes |
getLowResAlgorithm()
Returns algorithm used to build low resolution tiles.
|
int |
getMaxMemory()
Returns max memory available for converter.
|
int |
getNbArgs()
Returns the number of arguments set during init.
|
SoDataSet.DataTypes |
getOutputDataFormat()
Returns the output data format.
|
boolean |
getOutputHeaderOnly()
Returns header only setting.
|
int |
getPondCoef()
Retrieve the ponderation coefficient for low resolution tiles.
|
int |
getTargetWordFormat()
Returns word format property.
|
SbVec3i32 |
getTileDim()
Returns tile dimension.
|
double |
getUndefinedValue()
Returns the undefined value.
|
boolean |
isCrcCheckDone() |
boolean |
isForUpdate()
Return true if converter is configured to perform a simple update.
|
boolean |
isHistogramEnabled()
Returns true if histogram will be computed.
|
boolean |
isInputDataRangeSpecified()
Return whether or not the input data range has been specified.
|
boolean |
isOutputDataTypeSpecified()
Return whether or not the output data type has been specified.
|
boolean |
isRGBAMode()
Returns true if RGBA mode.
|
boolean |
isSavedAsBitSet()
Returns true if output will be saved as a bitset (ie: 8 values per byte)
|
boolean |
isVerbose()
Returns verbose mode setting.
|
void |
saveAsBitSet(boolean flag)
Calls saveAsBitSet(flag, (double)0).
|
void |
saveAsBitSet(boolean flag,
double bitsetThreshold)
Specify if dataset should be saved as a bitset (8 values per byte) or values.
|
void |
setBitSetThreshold(double bitsetThreshold)
Set the bitset threshold value.
|
boolean |
setBorder()
Deprecated.
|
boolean |
setBorder(int border)
Deprecated.
As of Open Inventor 9000 See documentation for more details
|
void |
setCompressionLevel(int compressionLevel)
Set compression level.
|
boolean |
setCompressionName(java.lang.String compressionName)
Set compression name.
|
void |
setCrcCheck(boolean addCrcCheck)
Set CRC32 check on compression.
|
void |
setDataFileName(java.lang.String dataFileName)
Set data filename (i.e.
|
void |
setHeaderFileName(java.lang.String headerFileName)
Set header filename (i.e.
|
void |
setInputFileName(java.lang.String inputFileName)
Set the input filename.
|
boolean |
setInputRangeMinMax(double min,
double max)
Set the input data range to map to the output data format.
|
void |
setInputVolume(SoDataSet inputVolume)
Define the volume used as input.
|
boolean |
setLowResAlgorithm(int lowResAlgorithm)
Set the algorithm used to build low resolution tiles.
|
boolean |
setMaxMemory(int maxMemory)
Set maximum memory available for the converter, in MB.
|
boolean |
setOutputDataFormat(SoDataSet.DataTypes dataType)
Set the output data format with an
SoDataSet.DataType . |
boolean |
setOutputDataFormat(java.lang.String dataFormat)
Set the output data format from a format string.
|
void |
setOutputHeaderOnly(boolean headerOnly)
Set the header only feature.
|
void |
setRGBAMode(boolean flag)
Set RGBA data mode (output will be unsigned int32 RGBA values).
|
boolean |
setTargetWordFormat(int wordFormat)
Set the target machine word format.
|
void |
setTileDim(int tileDim)
Set tile dimension.
|
void |
setTileDim(SbVec3i32 tileDim)
Set tile dimension.
|
void |
setUndefinedValue(double undefinedValue)
Set the undefined value.
|
void |
setVerbose(boolean isVerbose)
Set verbose mode.
|
boolean |
useDefaultCompLvl() |
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int DECIMATION
SoConverterParameters.SampleTypes.DECIMATION
instead.@Deprecated public static final int AVERAGE
SoConverterParameters.SampleTypes.AVERAGE
instead.@Deprecated public static final int PARAM_NO_ERROR
SoConverterParameters.ParametersErrors.PARAM_NO_ERROR
instead.@Deprecated public static final int PARAM_ERROR
SoConverterParameters.ParametersErrors.PARAM_ERROR
instead.@Deprecated public static SoConverterParameters create(int argc, java.lang.String[] argv)
create(String[])
instead.@Deprecated public boolean setBorder()
public void saveAsBitSet(boolean flag)
public void doUpdate(boolean value)
public java.lang.String getHeaderFileName()
public boolean isForUpdate()
public void setHeaderFileName(java.lang.String headerFileName)
public java.lang.String getDataSectionFileName()
public double getBitSetThreshold()
public void setBitSetThreshold(double bitsetThreshold)
bitsetThreshold
- For each value (V) of a dataset, if V > threshold the bitset is set to 1 for this bit, or to 0 otherwise. Default is 0.public void setDataFileName(java.lang.String dataFileName)
public SbVec3i32 getTileDim()
public boolean isVerbose()
public static SoConverterParameters create(java.lang.String[] argv)
public void setVerbose(boolean isVerbose)
public void setTileDim(SbVec3i32 tileDim)
@Deprecated public boolean setBorder(int border)
public void setTileDim(int tileDim)
@Deprecated public int getBorder()
public void saveAsBitSet(boolean flag, double bitsetThreshold)
flag
- Dataset is a bitset (true) or values (false)
bitsetThreshold
- For each value (V) of a dataset, if V > bitsetThreshold the bitset is set to 1 for this bit, or to 0 otherwise. Used only if flag parameter is set to true. Default is 0.public boolean setTargetWordFormat(int wordFormat)
public SoConverterParameters.SampleTypes getLowResAlgorithm()
public int getTargetWordFormat()
public boolean setLowResAlgorithm(int lowResAlgorithm)
public SoDataSet.DataTypes getOutputDataFormat()
public void setUndefinedValue(double undefinedValue)
SoHeightFieldRender
(vertices with undefined values are not rendered).public boolean setOutputDataFormat(java.lang.String dataFormat)
Note that if the input reader does not support the requested conversion, the output data format will be the same as the input data format (no conversion).
public int getPondCoef()
public boolean setOutputDataFormat(SoDataSet.DataTypes dataType)
SoDataSet.DataType
.
public java.lang.String getCompressionName()
public boolean setCompressionName(java.lang.String compressionName)
setCompressionLevel()
. The following compression types are currently supported:.
SoGzipDataCompressor
.
SoJpegDataCompressor
. SoJp3dDataCompressor
. Returns true if parameter is valid, else returns false.
public void setCrcCheck(boolean addCrcCheck)
public void setCompressionLevel(int compressionLevel)
setCompressionName()
. The meaning of this parameter depends on the type of compression used:
public int getCompressionLevel()
public boolean setInputRangeMinMax(double min, double max)
public boolean useDefaultCompLvl()
public double[] getInputRangeMinMax()
public boolean isCrcCheckDone()
public void setInputVolume(SoDataSet inputVolume)
setInputFileName()
.public void enableHistogram(boolean flag)
Disabling Histogram generation will greatly speedup the conversion process, but some VolumeViz rendering features and optimizations won't be available.
It also implies that the following information won't be computed:
Note also that if RGBA mode is set then no histogram is computed.
public SoDataSet getInputVolume()
public boolean isRGBAMode()
public java.lang.String getInputFileName()
public boolean isSavedAsBitSet()
public java.lang.String getDataFileName()
public boolean isHistogramEnabled()
public void setInputFileName(java.lang.String inputFileName)
setInputVolume()
. An input file must be specified. To get more information regarding possible limitation of any readers you may use, please see documentation of Readers.public int getNbArgs()
public void setOutputHeaderOnly(boolean headerOnly)
public double getUndefinedValue()
public boolean getOutputHeaderOnly()
public boolean isOutputDataTypeSpecified()
public boolean setMaxMemory(int maxMemory)
public void setRGBAMode(boolean flag)
public int getMaxMemory()
public boolean isInputDataRangeSpecified()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com