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

Public Member Functions

 TopBotImage ()
 
virtual const char * getClassName () const
 
void setDisplayTransformation (const visBase::Transformation *)
 
const visBase::TransformationgetDisplayTransformation () const
 
void setPos (const Coord3 &tl, const Coord3 &br)
 
const Coord3topLeft () const
 
const Coord3bottomRight () const
 
void setImageFilename (const char *)
 
const char * getImageFilename () const
 
void setRGBImageFromFile (const char *)
 
void setTransparency (float)
 
float getTransparency () const
 
bool getImageInfo (int &w, int &h, int &pixsz) const
 
const unsigned char * getTextureData () const
 
bool getTextureDataInfo (TypeSet< Coord3 > &coords, TypeSet< Coord > &texcoords, TypeSet< int > &ps) const
 
void fillPar (IOPar &) const
 
bool usePar (const IOPar &)
 
- Public Member Functions inherited from visBase::VisualObjectImpl
void setRightHandSystem (bool yn)
 
bool isRightHandSystem () const
 
void setLockable ()
 
void readLock ()
 
void readUnLock ()
 
bool tryReadLock ()
 
void writeLock ()
 
void writeUnLock ()
 
bool tryWriteLock ()
 
void setMaterial (Material *)
 
const MaterialgetMaterial () const
 
MaterialgetMaterial ()
 
- Public Member Functions inherited from visBase::VisualObject
virtual bool getBoundingBox (Coord3 &min, Coord3 &max) const
 
virtual void setSceneEventCatcher (EventCatcher *)
 
void setSelectable (bool yn)
 
bool selectable () const
 
NotifierAccessselection ()
 
NotifierAccessdeSelection ()
 
virtual NotifierAccessrightClicked ()
 
const EventInforightClickedEventInfo () const
 
const TypeSet< int > * rightClickedPath () 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
 
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
 
void select () const
 
void deSelect () const
 
void updateSel () const
 
virtual bool isSelected () 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 TopBotImagecreate ()
 
static void initClass ()
 
static const char * getStaticClassName ()
 
static const char * sFactoryKeyword ()
 
- Static Public Member Functions inherited from visBase::VisualObjectImpl
static const char * sKeyMaterialID ()
 
static const char * sKeyMaterial ()
 
static const char * sKeyIsOn ()
 
- 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

 ~TopBotImage ()
 
void updateCoords ()
 
void setRGBImage (const OD::RGBImage &)
 
- Protected Member Functions inherited from visBase::VisualObjectImpl
int addChild (osg::Node *)
 
void insertChild (int pos, osg::Node *)
 
void removeChild (osg::Node *)
 
int childIndex (const osg::Node *) const
 
 VisualObjectImpl (bool selectable)
 
virtual ~VisualObjectImpl ()
 
virtual void materialChangeCB (CallBacker *)
 
virtual void setGroupNode (osg::Group *)
 Must be called during construction. More...
 
- Protected Member Functions inherited from visBase::VisualObject
void triggerSel ()
 
void triggerDeSel ()
 
void triggerRightClick (const EventInfo *)
 
 VisualObject (bool selectable=false)
 
 ~VisualObject ()
 
- Protected Member Functions inherited from visBase::DataObject
virtual osg::StateSet * getStateSet ()
 
void doAddNodeState (NodeState *ns)
 
 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...
 

Static Protected Member Functions

static const char * sKeyTopLeftCoord ()
 
static const char * sKeyBottomRightCoord ()
 
static const char * sKeyFileNameStr ()
 
static const char * sKeyTransparencyStr ()
 

Protected Attributes

const visBase::Transformationtrans_
 
Coord3 pos0_
 
Coord3 pos1_
 
BufferString filenm_
 
int layerid_
 
osgGeo::LayeredTexture * laytex_
 
osgGeo::TexturePlaneNode * texplane_
 
- Protected Attributes inherited from visBase::VisualObjectImpl
Materialmaterial_
 
bool righthandsystem_
 
- Protected Attributes inherited from visBase::DataObject
DataObjectGroupparent_
 

Private Member Functions

TopBotImageoperator= (const TopBotImage &)
 
 TopBotImage (const TopBotImage &)
 

Static Private Member Functions

static visBase::DataObjectcreateInternal ()
 

Detailed Description

Constructor & Destructor Documentation

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

Member Function Documentation

const Coord3& visBase::TopBotImage::bottomRight ( ) const
inline
static TopBotImage* visBase::TopBotImage::create ( )
inlinestatic
static visBase::DataObject* visBase::TopBotImage::createInternal ( )
inlinestaticprivate
void visBase::TopBotImage::fillPar ( IOPar ) const
virtual

Reimplemented from visBase::VisualObjectImpl.

virtual const char* visBase::TopBotImage::getClassName ( ) const
virtual

Reimplemented from visBase::DataObject.

const visBase::Transformation* visBase::TopBotImage::getDisplayTransformation ( ) const
virtual

All positions going from the outside world to the vis should be transformed with this transform. This enables us to have different coord-systems outside OI, e.g. we can use UTM coords outside the vis without loosing precision in the vis.

Reimplemented from visBase::DataObject.

const char* visBase::TopBotImage::getImageFilename ( ) const
bool visBase::TopBotImage::getImageInfo ( int &  w,
int &  h,
int &  pixsz 
) const
static const char* visBase::TopBotImage::getStaticClassName ( )
static
const unsigned char* visBase::TopBotImage::getTextureData ( ) const
bool visBase::TopBotImage::getTextureDataInfo ( TypeSet< Coord3 > &  coords,
TypeSet< Coord > &  texcoords,
TypeSet< int > &  ps 
) const
float visBase::TopBotImage::getTransparency ( ) const
static void visBase::TopBotImage::initClass ( )
static
TopBotImage& visBase::TopBotImage::operator= ( const TopBotImage )
private
void visBase::TopBotImage::setDisplayTransformation ( const visBase::Transformation )
virtual

All positions going from the outside world to the vis should be transformed with this transform. This enables us to have different coord-systems outside OI, e.g. we can use UTM coords outside the vis without loosing precision in the vis.

Reimplemented from visBase::DataObject.

void visBase::TopBotImage::setImageFilename ( const char *  )
void visBase::TopBotImage::setPos ( const Coord3 tl,
const Coord3 br 
)
void visBase::TopBotImage::setRGBImage ( const OD::RGBImage )
protected
void visBase::TopBotImage::setRGBImageFromFile ( const char *  )
void visBase::TopBotImage::setTransparency ( float  )
static const char* visBase::TopBotImage::sFactoryKeyword ( )
static
static const char* visBase::TopBotImage::sKeyBottomRightCoord ( )
staticprotected
static const char* visBase::TopBotImage::sKeyFileNameStr ( )
staticprotected
static const char* visBase::TopBotImage::sKeyTopLeftCoord ( )
staticprotected
static const char* visBase::TopBotImage::sKeyTransparencyStr ( )
staticprotected
const Coord3& visBase::TopBotImage::topLeft ( ) const
inline
void visBase::TopBotImage::updateCoords ( )
protected
bool visBase::TopBotImage::usePar ( const IOPar )
virtual

Reimplemented from visBase::VisualObjectImpl.

Member Data Documentation

BufferString visBase::TopBotImage::filenm_
protected
int visBase::TopBotImage::layerid_
protected
osgGeo::LayeredTexture* visBase::TopBotImage::laytex_
protected
Coord3 visBase::TopBotImage::pos0_
protected
Coord3 visBase::TopBotImage::pos1_
protected
osgGeo::TexturePlaneNode* visBase::TopBotImage::texplane_
protected
const visBase::Transformation* visBase::TopBotImage::trans_
protected

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