OpendTect-6_4  6.4
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | List of all members
visBase::VolumeRenderScalarField Class Reference
Inheritance diagram for visBase::VolumeRenderScalarField:
[legend]

Classes

struct  AttribData
 

Public Member Functions

 VolumeRenderScalarField ()
 
virtual const char * getClassName () const
 
void setChannels2RGBA (visBase::TextureChannel2RGBA *)
 
TextureChannel2RGBAgetChannels2RGBA ()
 
const TextureChannel2RGBAgetChannels2RGBA () const
 
void setScalarField (int attr, const Array3D< float > *, bool mine, TaskRunner *)
 
void setColTabMapperSetup (int attr, const ColTab::MapperSetup &, TaskRunner *tr)
 
const ColTab::MappergetColTabMapper (int attr)
 
const TypeSet< float > & getHistogram (int attr) const
 
const char * writeVolumeFile (int attr, od_ostream &) const
 
void allowShading (bool yn)
 
bool usesShading () const
 
bool turnOn (bool)
 
bool isOn () const
 
void setTexVolumeTransform (const Coord3 &trans, const Coord3 &rotvec, double rotangle, const Coord3 &scale)
 
void setROIVolumeTransform (const Coord3 &trans, const Coord3 &rotvec, double rotangle, const Coord3 &scale)
 
bool textureInterpolationEnabled () const
 
void enableTextureInterpolation (bool)
 
void setMaterial (Material *)
 
void makeColorTables (int attr)
 
void enableAttrib (int attr, bool yn)
 
void swapAttribs (int attr0, int attr1)
 
void setAttribTransparency (int attr, unsigned char)
 
void setRightHandSystem (bool)
 
bool isRightHandSystem () const
 
void setScalarField (int attr, const Array3D< float > *, bool mine, const TrcKeyZSampling &, TaskRunner *)
 
TrcKeyZSampling getMultiAttribTrcKeyZSampling () const
 
- Public Member Functions inherited from visBase::DataObject
virtual bool isOK () const
 
int id () const
 
void setID (int nid)
 
uiString name () const
 
virtual void setName (const uiString &)
 
osg::Node * osgNode (bool skipswitch=false)
 
const osg::Node * osgNode (bool skipswitch=false) const
 
void enableTraversal (unsigned int mask, bool yn=true)
 
bool isTraversalEnabled (unsigned int mask) const
 
SoNode * getInventorNode ()
 
const SoNode * getInventorNode () const
 
bool isPickable (bool actively=true) const
 
void setPickable (bool actively, bool passively=true)
 
virtual bool rightClickable () const
 
virtual bool selectable () const
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () const
 
virtual NotifierAccessselection ()
 
virtual NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
virtual const TypeSet< int > * rightClickedPath () const
 
virtual void setDisplayTransformation (const visBase::Transformation *)
 
virtual const visBase::TransformationgetDisplayTransformation () const
 
virtual void setPixelDensity (float dpi)
 
virtual float getPixelDensity () const
 
virtual const char * errMsg () const
 
bool serialize (const char *filename, bool binary=false)
 
void setParent (DataObjectGroup *g)
 
template<class T >
T * addNodeState (T *ns)
 
NodeStateremoveNodeState (NodeState *)
 
NodeStategetNodeState (int idx)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static VolumeRenderScalarFieldcreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
static bool isShadingSupported ()
 
- Static Public Member Functions inherited from visBase::DataObject
static int getID (const osg::Node *)
 
static float getDefaultPixelDensity ()
 
static void setVisualizationThread (const void *)
 Call only once from initialization. More...
 
static bool isVisualizationThread ()
 
static void requestSingleRedraw ()
 
static void setCommonViewer (osgViewer::CompositeViewer *)
 
static osgViewer::CompositeViewer * getCommonViewer ()
 

Protected Member Functions

 ~VolumeRenderScalarField ()
 
void makeIndices (int attr, bool doset, TaskRunner *)
 
void clipData (int attr, TaskRunner *)
 
void updateFragShaderType ()
 
void updateVolumeSlicing ()
 
void updateTransparencyRescaling ()
 
void setDefaultRGBAValue (int channel)
 
void updateResizeCache (int attr, TaskRunner *)
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
virtual void triggerSel ()
 
virtual void triggerDeSel ()
 
virtual void triggerRightClick (const EventInfo *=0)
 
 DataObject ()
 
template<class T >
T * setOsgNode (T *t)
 Must be called during construction. More...
 
void updateNodemask ()
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

ObjectSet< AttribDataattribs_
 
TextureChannel2RGBAchannels2rgba_
 
bool isrgba_
 
Materialmaterial_
 
bool useshading_
 
bool isrighthandsystem_
 
osgVolume::VolumeTile * osgvoltile_
 
osg::Switch * osgvolroot_
 
osgVolume::Volume * osgvolume_
 
osgVolume::ImageLayer * osgimagelayer_
 
osg::Image * osgvoldata_
 
osg::TransferFunction1D * osgtransfunc_
 
osgVolume::TransparencyProperty * osgtransprop_
 
osgGeo::RayTracedTechnique * raytt_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

VolumeRenderScalarFieldoperator= (const VolumeRenderScalarField &)
 
 VolumeRenderScalarField (const VolumeRenderScalarField &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Detailed Description

Constructor & Destructor Documentation

visBase::VolumeRenderScalarField::VolumeRenderScalarField ( const VolumeRenderScalarField )
private
visBase::VolumeRenderScalarField::VolumeRenderScalarField ( )
visBase::VolumeRenderScalarField::~VolumeRenderScalarField ( )
protected

Member Function Documentation

void visBase::VolumeRenderScalarField::allowShading ( bool  yn)
void visBase::VolumeRenderScalarField::clipData ( int  attr,
TaskRunner  
)
protected
static VolumeRenderScalarField* visBase::VolumeRenderScalarField::create ( )
inlinestatic
static visBase::DataObject* visBase::VolumeRenderScalarField::createInternal ( )
inlinestaticprivate
void visBase::VolumeRenderScalarField::enableAttrib ( int  attr,
bool  yn 
)
void visBase::VolumeRenderScalarField::enableTextureInterpolation ( bool  )
TextureChannel2RGBA* visBase::VolumeRenderScalarField::getChannels2RGBA ( )
const TextureChannel2RGBA* visBase::VolumeRenderScalarField::getChannels2RGBA ( ) const
virtual const char* visBase::VolumeRenderScalarField::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const ColTab::Mapper& visBase::VolumeRenderScalarField::getColTabMapper ( int  attr)
const TypeSet<float>& visBase::VolumeRenderScalarField::getHistogram ( int  attr) const
TrcKeyZSampling visBase::VolumeRenderScalarField::getMultiAttribTrcKeyZSampling ( ) const
static const char* visBase::VolumeRenderScalarField::getStaticClassName ( )
static
static void visBase::VolumeRenderScalarField::initClass ( )
static
bool visBase::VolumeRenderScalarField::isOn ( ) const
virtual

Reimplemented from visBase::DataObject.

bool visBase::VolumeRenderScalarField::isRightHandSystem ( ) const
virtual

Reimplemented from visBase::DataObject.

static bool visBase::VolumeRenderScalarField::isShadingSupported ( )
static
void visBase::VolumeRenderScalarField::makeColorTables ( int  attr)
void visBase::VolumeRenderScalarField::makeIndices ( int  attr,
bool  doset,
TaskRunner  
)
protected
VolumeRenderScalarField& visBase::VolumeRenderScalarField::operator= ( const VolumeRenderScalarField )
private
void visBase::VolumeRenderScalarField::setAttribTransparency ( int  attr,
unsigned  char 
)
void visBase::VolumeRenderScalarField::setChannels2RGBA ( visBase::TextureChannel2RGBA )
void visBase::VolumeRenderScalarField::setColTabMapperSetup ( int  attr,
const ColTab::MapperSetup ,
TaskRunner tr 
)
void visBase::VolumeRenderScalarField::setDefaultRGBAValue ( int  channel)
protected
void visBase::VolumeRenderScalarField::setMaterial ( Material )

Auxiliary functions to be called to force processing of TextureChannel2RGBA changes

void visBase::VolumeRenderScalarField::setRightHandSystem ( bool  yn)
virtual

Sets whether the coordinate system is right or left handed.

Reimplemented from visBase::DataObject.

void visBase::VolumeRenderScalarField::setROIVolumeTransform ( const Coord3 trans,
const Coord3 rotvec,
double  rotangle,
const Coord3 scale 
)

Use these instead of parent transformation node, because of normal rescaling issue at fixed function technique!

void visBase::VolumeRenderScalarField::setScalarField ( int  attr,
const Array3D< float > *  ,
bool  mine,
TaskRunner  
)
void visBase::VolumeRenderScalarField::setScalarField ( int  attr,
const Array3D< float > *  ,
bool  mine,
const TrcKeyZSampling ,
TaskRunner  
)
void visBase::VolumeRenderScalarField::setTexVolumeTransform ( const Coord3 trans,
const Coord3 rotvec,
double  rotangle,
const Coord3 scale 
)
static const char* visBase::VolumeRenderScalarField::sFactoryKeyword ( )
static
void visBase::VolumeRenderScalarField::swapAttribs ( int  attr0,
int  attr1 
)
bool visBase::VolumeRenderScalarField::textureInterpolationEnabled ( ) const
bool visBase::VolumeRenderScalarField::turnOn ( bool  )
virtual

Reimplemented from visBase::DataObject.

void visBase::VolumeRenderScalarField::updateFragShaderType ( )
protected
void visBase::VolumeRenderScalarField::updateResizeCache ( int  attr,
TaskRunner  
)
protected
void visBase::VolumeRenderScalarField::updateTransparencyRescaling ( )
protected
void visBase::VolumeRenderScalarField::updateVolumeSlicing ( )
protected
bool visBase::VolumeRenderScalarField::usesShading ( ) const
const char* visBase::VolumeRenderScalarField::writeVolumeFile ( int  attr,
od_ostream  
) const
Returns
0 on success, otherwise errmsg

Member Data Documentation

ObjectSet<AttribData> visBase::VolumeRenderScalarField::attribs_
protected
TextureChannel2RGBA* visBase::VolumeRenderScalarField::channels2rgba_
protected
bool visBase::VolumeRenderScalarField::isrgba_
protected
bool visBase::VolumeRenderScalarField::isrighthandsystem_
protected
Material* visBase::VolumeRenderScalarField::material_
protected
osgVolume::ImageLayer* visBase::VolumeRenderScalarField::osgimagelayer_
protected
osg::TransferFunction1D* visBase::VolumeRenderScalarField::osgtransfunc_
protected
osgVolume::TransparencyProperty* visBase::VolumeRenderScalarField::osgtransprop_
protected
osg::Image* visBase::VolumeRenderScalarField::osgvoldata_
protected
osg::Switch* visBase::VolumeRenderScalarField::osgvolroot_
protected
osgVolume::VolumeTile* visBase::VolumeRenderScalarField::osgvoltile_
protected
osgVolume::Volume* visBase::VolumeRenderScalarField::osgvolume_
protected
osgGeo::RayTracedTechnique* visBase::VolumeRenderScalarField::raytt_
protected
bool visBase::VolumeRenderScalarField::useshading_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019