OpendTect  6.6
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
BaseMapObject Class Reference
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 Color getColor () const
 
virtual int getDepth () const
 
virtual const Color getFillColor (int idx) 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 getTextPos (int shapeidx) const
 
virtual float getTextRotation () const
 
virtual const char * getType () const
 
virtual void getXYScale (int idx, float &scx, float &scy) const
 
int 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 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
 
- 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 &)
 
virtual const name_typename () const
 
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_
 
int 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 Color BaseMapObject::getColor ( ) const
virtual

◆ getDepth()

virtual int BaseMapObject::getDepth ( ) const
inlinevirtual

Determines what should be painted ontop of what

◆ getFillColor()

virtual const Color BaseMapObject::getFillColor ( int  idx) const
inlinevirtual

◆ 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

Reimplemented in BaseMapMarkers.

◆ 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.

Reimplemented in BaseMapMarkers.

◆ getShapeName()

virtual const char* BaseMapObject::getShapeName ( int  shapeidx) 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

Reimplemented in BaseMapMarkers.

◆ getXYScale()

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

◆ ID()

int BaseMapObject::ID ( ) const
inline

◆ multicolor()

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

◆ nrShapes()

virtual int BaseMapObject::nrShapes ( ) const
virtual

Reimplemented in BaseMapMarkers.

◆ 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 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

Reimplemented in BaseMapMarkers.

◆ 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

Reimplemented in BaseMapMarkers.

◆ 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_

int 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-2022