22#include <Inventor/fields/SoFields.h>
View2DLutPrecision
allows to set the precision of the LUT
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2DExtension()
Constructor.
virtual void _drawCellInformation(View2DSliceList *, View2DSlice *, int, bool, int, const MLTypeInfos &, MLDataType, MLTypeData *, int, GLfloat[4], float, float, View2DFont &, float)
SoSFInt32 numPrecisionDigits
SoSFFloat defaultAlpha
Transparency from [0,1] used if no LUT is used; default is 0.5 (half transparent).
SoView2DVoxelView(void)
Creates a detail viewer for voxels.
void _getGLColor(double dblVoxVal, GLfloat rgba[4])
SoSFFloat fontSize
Size of font for voxel value; default is 10, minimum is 6, maximum is 250.
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
void _updateLutData(SoSFMLImage &inImg, View2DLutPrecision precision)
SoSFString defaultFitString
float _drawStringVoxelValue(bool drawTexts, MLDataType dType, MLTypeData *vBuf1, int numDTComponents, GLfloat rgba[4], float xPos, float yPos, View2DFont &font, float fSize)
static void initClass(void)
SoSFBool outLineVoxels
If enabled then on voxel the border pixels are drawn; default is FALSE.
SoSFBool drawCornerDots
If enabled dots are drawn in all corners of each voxel; default is false.
ml::LUTData< MLfloat > _lutData
Data table for voxel value look up.
SoSFInt32 numRowComponents
float _drawVoxelValue(bool drawTexts, int numRowComps, MLDataType dType, MLTypeData *vBuf1, int numDTComponents, GLfloat rgba[4], float xPos, float yPos, View2DFont &font, float fSize)
void _drawCoordinateComponents(bool drawTexts, int numComps, XVImageSize &pos, GLfloat rgba[4], float xPos, float yPos, View2DFont &font, float fSize)
SoSFInt32 numCoordinateComponents
The number of coordinate components to be shown; default is 0.
SoSFBool drawCenterDots
If enabled a pixel is drawn in the center of each voxel; default is false.
Abstract GL font drawing using FTGL.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
SoSFMLImage - field interface to ML images and related classes.
unsigned char MLTypeData
This is the pointer type used to point to the data of MLType data instances.