24#ifndef _SO_LDM_CONVERTER_
25#define _SO_LDM_CONVERTER_
27#include <LDM/converters/SoConverter.h>
31#pragma warning( push )
32#pragma warning(disable:4251)
94 virtual void getSubSlice(
const SbBox2i32& subSlice,
int sliceNumber,
void * data ) ;
97 virtual SbBox3f getSize(
int& error) ;
98 virtual std::vector<SoDataSet::DatumElement> getDatum(
int& error) ;
99 virtual SbVec3i32 getDimension(
int& error) ;
100 virtual int getRange(
double & rangeMin,
double & rangeMax );
102 virtual std::vector<SbVec2d>& getTileMinMax(
int numTiles);
103 virtual void closeInputFileHandles();
108 virtual bool getNumSignificantBits(
int& numsigbits);
110 virtual void outputHeader( FILE* );
122 virtual void sampleTile(
const SbVec3i32& tileDim,
int border,
123 const void*
const octantTile[8],
124 const int octantExists[8],
136 virtual void sampleTile(
const SbVec3i32& tileDim,
int type,
int border,
137 const void*
const octantTile[8],
138 const int octantExists[8],
148 virtual void sampleAverage(
const SbVec3i32& tileDim,
int type,
int border,
149 const void*
const octantTile[8],
const int octantExists[8],
158 virtual void sampleDecimation(
const SbVec3i32& tileDim,
int dataType,
int border,
159 const void*
const octantTile[8],
160 const int octantExists[8],
163 virtual void adjustParameters();
164 virtual void handleCustomTags(FILE* filePtr);
167 virtual void endConversion();
170 static void sampleAverageS(
171 int pondCoef,
const SbVec3i32& tileDim,
int type,
172 const void*
const childTile,
174 int octant,
const int octantExists[8]);
176 static void sampleDecimationS(
178 const void*
const childTile,
180 int octant,
const int octantExists[8]);
183 template <
typename T>
184 static void sampleAverage(
int pondCoef,
const SbVec3i32& tileDim,
const void*
const childTile,
185 void *parentTile,
int octant,
const int octantExists[8]);
187 static void sampleAverageRGBA(
int pondCoef,
const SbVec3i32& tileDim,
const void*
const childTile,
188 void *parentTile,
int octant,
const int octantExists[8]);
189 template <
typename T>
190 static void sampleDecimation(
const SbVec3i32& tileDim,
const void*
const childTile,
191 void *parentTile,
int octant,
const int octantExists[8]);
193 static void getShiftAndHalfTileDim(
SbVec2i32& shiftParentOctant,
198 static void getRatio (
SbVec3f &ratio,
203 const int octantExists[8]);
215#pragma warning( pop )
216#pragma warning(disable:4251)
Class for smart character strings.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Base cla...
virtual SoVolumeReader * getReader(const SbString &filename, const SbString &fileExt)
Returns a custom reader according to the given filename and extension.
SoBaseLDMConverter()
Constructor.
virtual ~SoBaseLDMConverter()
Destructor.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Abstract...
ConverterError
Converter errors.
DataType
Supported data type.
<a href="IconLegend.html"><img src="extLDM.gif" alt="Large Data Management" border="0"></a> Abstract...