25#ifndef _SO_BASE_CONVERTER_PARAMETERS
26#define _SO_BASE_CONVERTER_PARAMETERS
29#pragma warning( push )
30#pragma warning(disable:4251)
33#include <Inventor/STL/vector>
34#include <Inventor/SbBox.h>
35#include <Inventor/SbPList.h>
36#include <LDM/compressors/SoDataCompressor.h>
37#include <Inventor/helpers/SbFileHelper.h>
422 void saveAsBitSet(
bool flag,
double bitsetThreshold = 0);
468 bool isForEditing()
const;
469 void setIsForEditing(
bool flag);
470 void setDefaultValue(
double value);
471 double getDefaultValue()
const;
472 bool isTileDimDefault();
473 bool isRGBAModeDefault()
const;
474 void setIsFromWriter(
bool flag );
475 bool isFromWriter()
const;
476 bool recomputeHistogram()
const;
477 void enableRecomputeHistogram(
bool flag);
483 void enableTileMinMax(
const bool flag);
488 bool isTileMinMaxEnabled()
const;
545#pragma warning( pop )
736SoConverterParameters::isForEditing()
const
742SoConverterParameters::setDefaultValue(
const double value)
748SoConverterParameters::getDefaultValue()
const
754SoConverterParameters::isTileDimDefault()
800SoConverterParameters::enableRecomputeHistogram(
const bool flag)
806SoConverterParameters::recomputeHistogram()
const
812SoConverterParameters::enableTileMinMax(
const bool flag)
818SoConverterParameters::isTileMinMaxEnabled()
const
824SoConverterParameters::isRGBAModeDefault()
const
842SoConverterParameters::isFromWriter()
const
848SoConverterParameters::setIsFromWriter(
bool flag )
static SbString getBaseName(const SbString &fullFilePath)
Returns the filename part of a full path string.
Class for smart character strings.
void makeEmpty(const SbBool freeOld=TRUE)
Sets string to be the empty string ("").
Maintains a list of pointers to SbString instances.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Containe...
void setTileDim(const int tileDim)
Set tile dimension.
SbString m_compressionName
virtual ~SoConverterParameters()
Destructor.
void setBitSetThreshold(double bitsetThreshold)
Set the bitset threshold value.
void getInputRangeMinMax(double &min, double &max) const
Returns input data range.
int getTargetWordFormat() const
Returns word format property.
SoDataSet * getInputVolume() const
Returns the the volume used as input.
bool setCompressionName(const SbString &compressionName)
Set compression name.
bool isInputDataRangeSpecified() const
Return whether or not the input data range has been specified.
bool isForUpdate() const
Return TRUE if converter is configured to perform a simple update.
SoConverterParameters()
Default constructor.
void setHeaderFileName(const SbString &headerFileName)
Set header filename (i.e.
bool m_inputDataRangeSpecified
int getMaxMemory() const
Returns max memory available for converter.
void setCompressionLevel(int compressionLevel)
Set compression level.
bool isHistogramEnabled() const
Returns true if histogram will be computed.
double getBitSetThreshold() const
Returns the bitset generation threshold value.
int getCompressionLevel() const
bool isVerbose() const
Returns verbose mode setting.
SbString getDataSectionFileName() const
Returns the data filename.
bool m_outputDataTypeSpecified
SoDataSet::DataType getOutputDataFormat() const
Returns the output data format.
@ DECIMATION
Decimation : Only one voxel out of two.
@ AVERAGE
Average : Voxel value in parent tile is an average of Neighbor voxel in child tile.
void setInputFileName(const SbString &inputFileName)
Set the input filename.
static SoConverterParameters * create(const SbStringList &arguments)
Static method to build a parameters container from command line arguments.
void setVerticalFlip(bool flag)
Set the m_bVerticalFlip flag.
void setOutputHeaderOnly(bool headerOnly)
Set the header only feature.
void buildOutputFileName()
bool setTargetWordFormat(int wordFormat)
Set the target machine word format.
bool setInputRangeMinMax(double min, double max)
Set the input data range to map to the output data format.
bool setOutputDataFormat(const SoDataSet::DataType &dataType)
Set the output data format with an SoDataSet::DataType.
bool isOutputDataTypeSpecified() const
Return whether or not the output data type has been specified.
void setRGBAMode(const bool flag)
Set RGBA data mode (output will be unsigned int32 RGBA values).
void setVerbose(const bool isVerbose)
Set verbose mode.
@ PARAM_NO_ERROR
No error.
@ PARAM_ERROR
Input params problems.
void setDataFileName(const SbString &dataFileName)
Set data filename (i.e.
SoDataSet * m_inputVolume
int getNbArgs() const
Returns the number of arguments set during init.
double getUndefinedValue() const
Returns the undefined value.
SbString getCompressionName() const
Returns compression type.
bool setMaxMemory(int maxMemory)
Set maximum memory available for the converter, in MB.
bool isRGBAMode() const
Returns true if RGBA mode.
bool m_recomputeHistogram
bool m_isTileDimDefaultValue
void enableHistogram(const bool flag)
Specify if the histogram must be computed or not.
SbString getHeaderFileName() const
Returns header filename.
bool isCrcCheckDone() const
void setInputVolume(SoDataSet *inputVolume)
Define the volume used as input.
bool isSavedAsBitSet() const
Returns true if output will be saved as a bitset (ie: 8 values per byte)
bool getOutputHeaderOnly() const
Returns header only setting.
SoDataSet::DataType m_dataTypeOut
void setCrcCheck(bool addCrcCheck)
Set CRC32 check on compression.
void saveAsBitSet(bool flag, double bitsetThreshold=0)
Specify if dataset should be saved as a bitset (8 values per byte) or values.
SbString m_dataSectionFileName
bool setLowResAlgorithm(int lowResAlgorithm)
Set the algorithm used to build low resolution tiles.
static const char * m_dataTypeXml[]
bool useDefaultCompLvl() const
static SoConverterParameters * create(int argc, char **argv)
Static method to build a parameters container from command line arguments.
SampleType getLowResAlgorithm() const
Returns algorithm used to build low resolution tiles.
int getPondCoef() const
Retrieve the ponderation coefficient for low resolution tiles.
bool isVerticalFlip() const
Return if m_bVerticalFlip flag is set.
void setTileDim(const SbVec3i32 &tileDim)
Set tile dimension.
static const char * m_dataTypeStr[]
bool setOutputDataFormat(const SbString &dataFormat)
Set the output data format from a format string.
void setUndefinedValue(double undefinedValue)
Set the undefined value.
bool m_useDefaultCompLevel
bool m_bVerticalFlip
Flip the output data on Y axis.
SbString getInputFileName() const
Returns input filename.
void doUpdate(bool value)
Only applies to input files in LDM format.
SbString m_headerFileName
SbString getDataFileName() const
Returns the complete data filename (i.e.: the whole path to .dat file).
SbVec3i32 getTileDim() const
Returns tile dimension.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Data set...
DataType
Supported data type.