OpendTect-6_4  6.4
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 Member Functions

 BaseMapObject (const char *nm)
 
 ~BaseMapObject ()
 
int ID () const
 
virtual void updateGeometry ()
 
virtual void setType (const char *tp)
 
virtual const char * getType () const
 
virtual void setDepth (int val)
 
virtual int getDepth () const
 
virtual int nrShapes () const
 
virtual const char * getShapeName (int shapeidx) const
 
virtual void getPoints (int shapeidx, TypeSet< Coord > &) const
 
virtual bool getBoundingBox (BoundingBox &) const
 
virtual Alignment getAlignment (int shapeidx) const
 
virtual float getTextRotation () const
 
virtual Color getColor () const
 
virtual void setMarkerStyle (int idx, const MarkerStyle2D &)
 
virtual const MarkerStyle2DgetMarkerStyle (int shapeidx) const
 
virtual BufferString getImageFileName (int idx) const
 
virtual void getXYScale (int idx, float &scx, float &scy) const
 
virtual void setXYScale (int idx, float scx, float scy)
 
virtual void setLineStyle (int idx, const OD::LineStyle &)
 
virtual const OD::LineStylegetLineStyle (int shapeidx) const
 
virtual void setFillColor (int idx, const Color &)
 
virtual const Color getFillColor (int idx) const
 
virtual bool fill (int shapeidx) const
 
virtual bool close (int shapeidx) const
 
virtual bool multicolor (int shapeidx) const
 
virtual void setImage (int idx, OD::RGBImage *)
 
virtual const OD::RGBImagegetImage (int shapeidx) const
 
virtual const OD::RGBImagecreateImage (Coord &origin, Coord &p11) const
 
virtual const OD::RGBImagecreatePreview (int approxdiagonal) const
 
virtual bool allowHoverEvent (int) const
 
virtual bool canRemoveWithPolygon () const
 
virtual void removeWithPolygon (const ODPolygon< double > &)
 
virtual void getMousePosInfo (Coord3 &, TrcKey &, float &val, BufferString &info) const
 
virtual bool fillPar (IOPar &) const
 
virtual bool usePar (const IOPar &, TaskRunner *taskr=0)
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- 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...
 

Public Attributes

Threads::Lock lock_
 
CNotifier< BaseMapObject, const MouseEvent & > leftClicked
 
CNotifier< BaseMapObject, const MouseEvent & > rightClicked
 
Notifier< BaseMapObjectchanged
 
Notifier< BaseMapObjectstylechanged
 
Notifier< BaseMapObjectzvalueChanged
 
CNotifier< BaseMapObject, const uiString & > nameChanged
 

Protected Attributes

int depth_
 
int id_
 
BufferString typenm_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Additional Inherited Members

- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Detailed Description

Object that can be painted in a basemap.

Member Typedef Documentation

Constructor & Destructor Documentation

BaseMapObject::BaseMapObject ( const char *  nm)
BaseMapObject::~BaseMapObject ( )

Member Function Documentation

virtual bool BaseMapObject::allowHoverEvent ( int  ) const
inlinevirtual
virtual bool BaseMapObject::canRemoveWithPolygon ( ) const
inlinevirtual
virtual bool BaseMapObject::close ( int  shapeidx) const
inlinevirtual
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.

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

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

virtual bool BaseMapObject::fill ( int  shapeidx) const
inlinevirtual
virtual bool BaseMapObject::fillPar ( IOPar ) const
virtual
virtual Alignment BaseMapObject::getAlignment ( int  shapeidx) const
virtual
virtual bool BaseMapObject::getBoundingBox ( BoundingBox ) const
virtual
virtual Color BaseMapObject::getColor ( ) const
virtual
virtual int BaseMapObject::getDepth ( ) const
inlinevirtual

Determines what should be painted ontop of what

virtual const Color BaseMapObject::getFillColor ( int  idx) const
inlinevirtual
virtual const OD::RGBImage* BaseMapObject::getImage ( int  shapeidx) const
inlinevirtual
virtual BufferString BaseMapObject::getImageFileName ( int  idx) const
inlinevirtual
virtual const OD::LineStyle* BaseMapObject::getLineStyle ( int  shapeidx) const
inlinevirtual
virtual const MarkerStyle2D* BaseMapObject::getMarkerStyle ( int  shapeidx) const
inlinevirtual

Reimplemented in BaseMapMarkers.

virtual void BaseMapObject::getMousePosInfo ( Coord3 ,
TrcKey ,
float &  val,
BufferString info 
) const
inlinevirtual
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.

virtual const char* BaseMapObject::getShapeName ( int  shapeidx) const
virtual
virtual float BaseMapObject::getTextRotation ( ) const
inlinevirtual
virtual const char* BaseMapObject::getType ( ) const
inlinevirtual

Reimplemented in BaseMapMarkers.

virtual void BaseMapObject::getXYScale ( int  idx,
float &  scx,
float &  scy 
) const
inlinevirtual
int BaseMapObject::ID ( ) const
inline
virtual bool BaseMapObject::multicolor ( int  shapeidx) const
inlinevirtual
virtual int BaseMapObject::nrShapes ( ) const
virtual

Reimplemented in BaseMapMarkers.

virtual void BaseMapObject::removeWithPolygon ( const ODPolygon< double > &  )
inlinevirtual
virtual void BaseMapObject::setDepth ( int  val)
virtual
virtual void BaseMapObject::setFillColor ( int  idx,
const Color  
)
inlinevirtual
virtual void BaseMapObject::setImage ( int  idx,
OD::RGBImage  
)
inlinevirtual
virtual void BaseMapObject::setLineStyle ( int  idx,
const OD::LineStyle  
)
inlinevirtual
virtual void BaseMapObject::setMarkerStyle ( int  idx,
const MarkerStyle2D  
)
inlinevirtual

Reimplemented in BaseMapMarkers.

virtual void BaseMapObject::setType ( const char *  tp)
inlinevirtual
virtual void BaseMapObject::setXYScale ( int  idx,
float  scx,
float  scy 
)
inlinevirtual
virtual void BaseMapObject::updateGeometry ( )
inlinevirtual

Reimplemented in BaseMapMarkers.

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

Member Data Documentation

Notifier<BaseMapObject> BaseMapObject::changed
int BaseMapObject::depth_
protected
int BaseMapObject::id_
protected
CNotifier<BaseMapObject,const MouseEvent&> BaseMapObject::leftClicked
Threads::Lock BaseMapObject::lock_
CNotifier<BaseMapObject,const uiString&> BaseMapObject::nameChanged
CNotifier<BaseMapObject,const MouseEvent&> BaseMapObject::rightClicked
Notifier<BaseMapObject> BaseMapObject::stylechanged
BufferString BaseMapObject::typenm_
protected
Notifier<BaseMapObject> BaseMapObject::zvalueChanged

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