1 #ifndef visvolrenscalarfield_h 2 #define visvolrenscalarfield_h 15 #include "visbasemod.h" 25 template <
class T>
class Array3D;
30 class TransparencyProperty; }
31 namespace osg {
class Switch;
class Image;
class TransferFunction1D; }
32 namespace osgGeo {
class RayTracedTechnique; }
39 class TextureChannel2RGBA;
49 TextureChannel2RGBA* getChannels2RGBA();
50 const TextureChannel2RGBA* getChannels2RGBA() const;
52 void setScalarField(
int attr,const
Array3D<
float>*,
55 void setColTabMapperSetup(
int attr,
56 const
ColTab::MapperSetup&,
58 const
ColTab::Mapper& getColTabMapper(
int attr);
60 const
TypeSet<
float>& getHistogram(
int attr) const;
62 const
char* writeVolumeFile(
int attr,
od_ostream&) const;
65 static
bool isShadingSupported();
66 void allowShading(
bool yn);
67 bool usesShading() const;
72 void setTexVolumeTransform(const
Coord3& trans,
73 const
Coord3& rotvec,
double rotangle,
75 void setROIVolumeTransform(const
Coord3& trans,
76 const
Coord3& rotvec,
double rotangle,
82 bool textureInterpolationEnabled() const;
83 void enableTextureInterpolation(
bool);
89 void makeColorTables(
int attr);
90 void enableAttrib(
int attr,
bool yn);
91 void swapAttribs(
int attr0,
int attr1);
92 void setAttribTransparency(
int attr,
unsigned char);
94 void setRightHandSystem(
bool);
95 bool isRightHandSystem() const;
98 ~VolumeRenderScalarField();
100 void makeIndices(
int attr,
bool doset,TaskRunner*);
102 void clipData(
int attr,TaskRunner*);
104 void updateFragShaderType();
105 void updateVolumeSlicing();
106 void updateTransparencyRescaling();
108 void setDefaultRGBAValue(
int channel);
116 bool isInVolumeCache()
const;
127 void clearDataCache();
128 void clearIndexCache();
129 void clearResizeCache();
osgGeo::RayTracedTechnique * raytt_
Definition: visvolrenscalarfield.h:153
osgVolume::Volume * osgvolume_
Definition: visvolrenscalarfield.h:148
#define mExpClass(module)
Definition: commondefs.h:160
void turnOn(int flag)
Overrides the envirnonment variable.
osgVolume::VolumeTile * osgvoltile_
Definition: visvolrenscalarfield.h:146
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
bool ownsdatacache_
Definition: visvolrenscalarfield.h:124
bool useshading_
Definition: visvolrenscalarfield.h:142
int sz2_
Definition: visvolrenscalarfield.h:118
Material * material_
Definition: visvolrenscalarfield.h:141
#define od_int64
Definition: plftypes.h:36
DataObject is the base class off all objects that are used in Visualization and ought to be shared in...
Definition: visdata.h:65
bool isrgba_
Definition: visvolrenscalarfield.h:139
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
osg::Image * osgvoldata_
Definition: visvolrenscalarfield.h:150
TextureChannel2RGBA * channels2rgba_
Definition: visvolrenscalarfield.h:138
Maps data values to colortable positions: [0,1].
Definition: coltabmapper.h:84
Definition: vistexturechannel2rgba.h:36
bool ownsresizecache_
Definition: visvolrenscalarfield.h:133
const ValueSeries< float > * datacache_
Definition: visvolrenscalarfield.h:123
Set of pointers to objects.
Definition: commontypes.h:32
const ValueSeries< float > * resizecache_
Definition: visvolrenscalarfield.h:132
struct(General) A2DBitMapGenPars
Array2D Bitmap generation parameters.
Definition: array2dbitmap.h:28
Set of (small) copyable elements.
Definition: commontypes.h:30
ObjectSet< AttribData > attribs_
Definition: visvolrenscalarfield.h:136
bool ownsindexcache_
Definition: visvolrenscalarfield.h:122
bool isOn(int flag=0xffff)
Class that can execute a task.
Definition: task.h:169
osg::TransferFunction1D * osgtransfunc_
Definition: visvolrenscalarfield.h:151
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Interface to a series of values.
Definition: odmemory.h:17
ColTab::Mapper mapper_
Definition: visvolrenscalarfield.h:119
Definition: vismaterial.h:37
TrcKeyZSampling datatkzs_
Definition: visvolrenscalarfield.h:131
A cartesian coordinate in 3D space.
Definition: coord.h:72
static VolumeRenderScalarField * create()
Definition: visvolrenscalarfield.h:45
Definition: visannot.h:43
osgVolume::ImageLayer * osgimagelayer_
Definition: visvolrenscalarfield.h:149
bool isrighthandsystem_
Definition: visvolrenscalarfield.h:144
FixedString Volume()
Definition: keystrs.h:148
TypeSet< float > histogram_
Definition: visvolrenscalarfield.h:125
osgVolume::TransparencyProperty * osgtransprop_
Definition: visvolrenscalarfield.h:152
Open Scene Graph.
Definition: visannot.h:29
Definition: visvolrenscalarfield.h:29
Color Table
Definition: coltab.h:22
#define mCreateDataObj(clss)
Definition: visdata.h:209
int indexcachestep_
Definition: visvolrenscalarfield.h:121
Definition: visvolrenscalarfield.h:41
Definition: visvolrenscalarfield.h:110
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:153
unsigned char * indexcache_
Definition: visvolrenscalarfield.h:120
osg::Switch * osgvolroot_
Definition: visvolrenscalarfield.h:147