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

Public Member Functions

virtual MappedTextureDataSetcreateMappedDataSet () const
 
virtual void setChannels (TextureChannels *)
 
virtual void notifyChannelChange ()
 
virtual void notifyChannelInsert (int ch)
 
virtual void notifyChannelRemove (int ch)
 
virtual const osg::Image * createRGBA () const
 
virtual bool canSetSequence () const
 
virtual void setSequence (int, const ColTab::Sequence &)
 
virtual const ColTab::SequencegetSequence (int) const
 
virtual void swapChannels (int ch0, int ch1)
 
virtual void setEnabled (int ch, bool yn)
 
virtual bool isEnabled (int ch) const
 
virtual bool canUseShading () const
 
virtual void allowShading (bool)
 
virtual bool usesShading () const
 
virtual int maxNrChannels () const =0
 
virtual int minNrChannels () const
 
virtual void getChannelName (int, uiString &) const
 
int getTexturePixelSizeInBits () const
 
const unsigned char * getTextureData () const
 
int getTextureWidth () const
 
int getTextureHeight () const
 
- Public Member Functions inherited from visBase::DataObject
virtual const char * getClassName () const
 
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
 
virtual bool turnOn (bool yn)
 
virtual bool isOn () 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 setRightHandSystem (bool yn)
 
virtual bool isRightHandSystem () 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...
 

Protected Member Functions

 TextureChannel2RGBA ()
 
- 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

TextureChannelschannels_
 
osgGeo::LayeredTexture * laytex_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

 mODTextTranslationClass (TextureChannel2RGBA)
 

Additional Inherited Members

- 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 ()
 

Detailed Description

Interface for classes that can take one or more texture channels in an TextureChannels class and convert them to RGBA textures in OpenGL, optionally with shaders. There should always be a non-shading way to fall back on.

Constructor & Destructor Documentation

visBase::TextureChannel2RGBA::TextureChannel2RGBA ( )
protected

Member Function Documentation

virtual void visBase::TextureChannel2RGBA::allowShading ( bool  )
virtual
virtual bool visBase::TextureChannel2RGBA::canSetSequence ( ) const
inlinevirtual
virtual bool visBase::TextureChannel2RGBA::canUseShading ( ) const
virtual
virtual MappedTextureDataSet* visBase::TextureChannel2RGBA::createMappedDataSet ( ) const
virtual
virtual const osg::Image* visBase::TextureChannel2RGBA::createRGBA ( ) const
virtual

Fill the image with the output, using current settings.

Reimplemented in visBase::TextureChannel2VolData.

virtual void visBase::TextureChannel2RGBA::getChannelName ( int  ,
uiString  
) const
virtual
virtual const ColTab::Sequence* visBase::TextureChannel2RGBA::getSequence ( int  ) const
inlinevirtual
const unsigned char* visBase::TextureChannel2RGBA::getTextureData ( ) const
int visBase::TextureChannel2RGBA::getTextureHeight ( ) const
int visBase::TextureChannel2RGBA::getTexturePixelSizeInBits ( ) const
int visBase::TextureChannel2RGBA::getTextureWidth ( ) const
virtual bool visBase::TextureChannel2RGBA::isEnabled ( int  ch) const
inlinevirtual
virtual int visBase::TextureChannel2RGBA::maxNrChannels ( ) const
pure virtual
virtual int visBase::TextureChannel2RGBA::minNrChannels ( ) const
inlinevirtual
visBase::TextureChannel2RGBA::mODTextTranslationClass ( TextureChannel2RGBA  )
private
virtual void visBase::TextureChannel2RGBA::notifyChannelChange ( )
inlinevirtual
virtual void visBase::TextureChannel2RGBA::notifyChannelInsert ( int  ch)
inlinevirtual
virtual void visBase::TextureChannel2RGBA::notifyChannelRemove ( int  ch)
inlinevirtual
virtual void visBase::TextureChannel2RGBA::setChannels ( TextureChannels )
virtual
virtual void visBase::TextureChannel2RGBA::setEnabled ( int  ch,
bool  yn 
)
inlinevirtual
virtual void visBase::TextureChannel2RGBA::setSequence ( int  ,
const ColTab::Sequence  
)
inlinevirtual
virtual void visBase::TextureChannel2RGBA::swapChannels ( int  ch0,
int  ch1 
)
inlinevirtual
virtual bool visBase::TextureChannel2RGBA::usesShading ( ) const
virtual

Member Data Documentation

TextureChannels* visBase::TextureChannel2RGBA::channels_
protected
osgGeo::LayeredTexture* visBase::TextureChannel2RGBA::laytex_
protected

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