public class SoConverterParameters extends Inventor
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoConverterParameters.ParametersErrors |
static class |
SoConverterParameters.SampleTypes |
Inventor.ConstructorCommand
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 |
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.
|
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, getNativeResourceHandle
@Deprecated public static SoConverterParameters create(int argc, java.lang.String[] argv)
create(String[])
instead.public void saveAsBitSet(boolean flag)
public SbVec3i32 getTileDim()
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 void setTileDim(SbVec3i32 tileDim)
public double getBitSetThreshold()
public boolean isHistogramEnabled()
public java.lang.String getHeaderFileName()
public void setHeaderFileName(java.lang.String headerFileName)
public boolean isSavedAsBitSet()
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 static SoConverterParameters create(java.lang.String[] argv)
public void setVerbose(boolean isVerbose)
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 doUpdate(boolean value)
public void setTileDim(int tileDim)
public boolean isForUpdate()
public boolean isVerbose()
public boolean useDefaultCompLvl()
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 boolean isCrcCheckDone()
public boolean setOutputDataFormat(SoDataSet.DataTypes dataType)
SoDataSet.DataType
.
public SoConverterParameters.SampleTypes getLowResAlgorithm()
public void setOutputHeaderOnly(boolean headerOnly)
public boolean setLowResAlgorithm(int lowResAlgorithm)
public boolean getOutputHeaderOnly()
public SoDataSet.DataTypes getOutputDataFormat()
public boolean setInputRangeMinMax(double min, double max)
public void setCrcCheck(boolean addCrcCheck)
public double[] getInputRangeMinMax()
public void setCompressionLevel(int compressionLevel)
setCompressionName()
. The meaning of this parameter depends on the type of compression used:
public boolean setTargetWordFormat(int wordFormat)
public int getCompressionLevel()
public int getTargetWordFormat()
public java.lang.String getCompressionName()
public int getPondCoef()
public void setRGBAMode(boolean flag)
public java.lang.String getDataFileName()
public boolean isInputDataRangeSpecified()
public void setInputFileName(java.lang.String inputFileName)
setInputVolume()
. An input file must be specified.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 void setDataFileName(java.lang.String dataFileName)
public boolean isRGBAMode()
public java.lang.String getDataSectionFileName()
public java.lang.String getInputFileName()
public boolean setMaxMemory(int maxMemory)
public double getUndefinedValue()
public int getMaxMemory()
public void setUndefinedValue(double undefinedValue)
SoHeightFieldRender
(vertices with undefined values are not rendered).public void setInputVolume(SoDataSet inputVolume)
setInputFileName()
.public boolean isOutputDataTypeSpecified()
public SoDataSet getInputVolume()
public int getNbArgs()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com