OpendTect  7.0
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
BasemapObject Class Reference

Object that can be painted in a basemap. More...

Inheritance diagram for BasemapObject:
[legend]

Public Types

typedef Geom::PosRectangle< double > BoundingBox
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Public Member Functions

 BasemapObject (const char *nm)
 
 ~BasemapObject ()
 
virtual bool allowHoverEvent (int) const
 
virtual bool canRemoveWithPolygon () const
 
virtual bool close (int shapeidx) const
 
virtual const OD::RGBImagecreateImage (Coord &origin, Coord &p11) const
 
virtual const OD::RGBImagecreatePreview (int approxdiagonal) const
 
virtual bool fill (int shapeidx) const
 
virtual bool fillPar (IOPar &) const
 
virtual Alignment getAlignment (int shapeidx) const
 
virtual bool getBoundingBox (BoundingBox &) const
 
virtual OD::Color getColor () const
 
virtual int getDepth () const
 
virtual const OD::Color getFillColor (int idx) const
 
virtual FontData getFont (int) const
 
virtual const OD::RGBImagegetImage (int shapeidx) const
 
virtual BufferString getImageFileName (int idx) const
 
virtual const OD::LineStylegetLineStyle (int shapeidx) const
 
virtual const MarkerStyle2DgetMarkerStyle (int shapeidx) const
 
virtual void getMousePosInfo (Coord3 &, TrcKey &, float &val, BufferString &info) const
 
virtual void getPoints (int shapeidx, TypeSet< Coord > &) const
 
virtual const char * getShapeName (int shapeidx) const
 
virtual Coord getTextOffset (int) const
 
virtual Coord getTextPos (int shapeidx) const
 
virtual float getTextRotation () const
 
virtual const char * getType () const
 
virtual void getXYScale (int idx, float &scx, float &scy) const
 
BasemapObjectID ID () const
 
virtual bool multicolor (int shapeidx) const
 
virtual int nrShapes () const
 
virtual void removeWithPolygon (const ODPolygon< double > &)
 
virtual void setDepth (int val)
 
virtual void setFillColor (int idx, const OD::Color &)
 
virtual void setImage (int idx, OD::RGBImage *)
 
virtual void setLineStyle (int idx, const OD::LineStyle &)
 
virtual void setMarkerStyle (int idx, const MarkerStyle2D &)
 
virtual void setType (const char *tp)
 
virtual void setXYScale (int idx, float scx, float scy)
 
virtual void updateGeometry ()
 
virtual bool usePar (const IOPar &, TaskRunner *taskr=0)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 

Public Attributes

Notifier< BasemapObjectchanged
 
CNotifier< BasemapObject, const MouseEvent & > leftClicked
 
Threads::Lock lock_
 
CNotifier< BasemapObject, BufferStringnameChanged
 
CNotifier< BasemapObject, const MouseEvent & > rightClicked
 
Notifier< BasemapObjectstylechanged
 
Notifier< BasemapObjectzvalueChanged
 

Protected Attributes

int depth_
 
BasemapObjectID id_
 
BufferString typenm_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Detailed Description

Object that can be painted in a basemap.

<>

Member Typedef Documentation

◆ BoundingBox

Constructor & Destructor Documentation

◆ BasemapObject()

BasemapObject::BasemapObject ( const char *  nm)

◆ ~BasemapObject()

BasemapObject::~BasemapObject ( )

Member Function Documentation

◆ allowHoverEvent()

virtual bool BasemapObject::allowHoverEvent ( int  ) const
inlinevirtual

◆ canRemoveWithPolygon()

virtual bool BasemapObject::canRemoveWithPolygon ( ) const
inlinevirtual

◆ close()

virtual bool BasemapObject::close ( int  shapeidx) const
inlinevirtual

◆ createImage()

virtual const OD::RGBImage* BasemapObject::createImage ( Coord origin,
Coord p11 
) const
virtual

Returns image in xy plane. p11 is the coordinate of the corner opposite of the origin.

◆ createPreview()

virtual const OD::RGBImage* BasemapObject::createPreview ( int  approxdiagonal) const
virtual

Returns a preview image that has approximately the size of the specified diagonal.

◆ fill()

virtual bool BasemapObject::fill ( int  shapeidx) const
inlinevirtual

◆ fillPar()

virtual bool BasemapObject::fillPar ( IOPar ) const
virtual

◆ getAlignment()

virtual Alignment BasemapObject::getAlignment ( int  shapeidx) const
virtual

◆ getBoundingBox()

virtual bool BasemapObject::getBoundingBox ( BoundingBox ) const
virtual

◆ getColor()

virtual OD::Color BasemapObject::getColor ( ) const
virtual

◆ getDepth()

virtual int BasemapObject::getDepth ( ) const
inlinevirtual

Determines what should be painted ontop of what

◆ getFillColor()

virtual const OD::Color BasemapObject::getFillColor ( int  idx) const
inlinevirtual

◆ getFont()

virtual FontData BasemapObject::getFont ( int  ) const
virtual

◆ getImage()

virtual const OD::RGBImage* BasemapObject::getImage ( int  shapeidx) const
inlinevirtual

◆ getImageFileName()

virtual BufferString BasemapObject::getImageFileName ( int  idx) const
inlinevirtual

◆ getLineStyle()

virtual const OD::LineStyle* BasemapObject::getLineStyle ( int  shapeidx) const
inlinevirtual

◆ getMarkerStyle()

virtual const MarkerStyle2D* BasemapObject::getMarkerStyle ( int  shapeidx) const
inlinevirtual

◆ getMousePosInfo()

virtual void BasemapObject::getMousePosInfo ( Coord3 ,
TrcKey ,
float &  val,
BufferString info 
) const
inlinevirtual

◆ getPoints()

virtual void BasemapObject::getPoints ( int  shapeidx,
TypeSet< Coord > &   
) const
virtual

Returns a number of coordinates that may form a be connected or filled.

◆ getShapeName()

virtual const char* BasemapObject::getShapeName ( int  shapeidx) const
virtual

◆ getTextOffset()

virtual Coord BasemapObject::getTextOffset ( int  ) const
virtual

◆ getTextPos()

virtual Coord BasemapObject::getTextPos ( int  shapeidx) const
virtual

◆ getTextRotation()

virtual float BasemapObject::getTextRotation ( ) const
inlinevirtual

◆ getType()

virtual const char* BasemapObject::getType ( ) const
inlinevirtual

◆ getXYScale()

virtual void BasemapObject::getXYScale ( int  idx,
float &  scx,
float &  scy 
) const
inlinevirtual

◆ ID()

BasemapObjectID BasemapObject::ID ( ) const
inline

◆ multicolor()

virtual bool BasemapObject::multicolor ( int  shapeidx) const
inlinevirtual

◆ nrShapes()

virtual int BasemapObject::nrShapes ( ) const
virtual

◆ removeWithPolygon()

virtual void BasemapObject::removeWithPolygon ( const ODPolygon< double > &  )
inlinevirtual

◆ setDepth()

virtual void BasemapObject::setDepth ( int  val)
virtual

◆ setFillColor()

virtual void BasemapObject::setFillColor ( int  idx,
const OD::Color  
)
inlinevirtual

◆ setImage()

virtual void BasemapObject::setImage ( int  idx,
OD::RGBImage  
)
inlinevirtual

◆ setLineStyle()

virtual void BasemapObject::setLineStyle ( int  idx,
const OD::LineStyle  
)
inlinevirtual

◆ setMarkerStyle()

virtual void BasemapObject::setMarkerStyle ( int  idx,
const MarkerStyle2D  
)
inlinevirtual

◆ setType()

virtual void BasemapObject::setType ( const char *  tp)
inlinevirtual

◆ setXYScale()

virtual void BasemapObject::setXYScale ( int  idx,
float  scx,
float  scy 
)
inlinevirtual

◆ updateGeometry()

virtual void BasemapObject::updateGeometry ( )
inlinevirtual

◆ usePar()

virtual bool BasemapObject::usePar ( const IOPar ,
TaskRunner taskr = 0 
)
virtual

Member Data Documentation

◆ changed

Notifier<BasemapObject> BasemapObject::changed

◆ depth_

int BasemapObject::depth_
protected

◆ id_

BasemapObjectID BasemapObject::id_
protected

◆ leftClicked

CNotifier<BasemapObject,const MouseEvent&> BasemapObject::leftClicked

◆ lock_

Threads::Lock BasemapObject::lock_

◆ nameChanged

CNotifier<BasemapObject,BufferString> BasemapObject::nameChanged

◆ rightClicked

CNotifier<BasemapObject,const MouseEvent&> BasemapObject::rightClicked

◆ stylechanged

Notifier<BasemapObject> BasemapObject::stylechanged

◆ typenm_

BufferString BasemapObject::typenm_
protected

◆ zvalueChanged

Notifier<BasemapObject> BasemapObject::zvalueChanged

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