OpendTect  6.3
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 Monitorable
typedef int ChangeType
 
typedef int64_t IDType
 
typedef int64_t DirtyCountType
 
typedef CNotifier< Monitorable, ChangeDataChangeDataNotifier
 

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 OD::Alignment getAlignment (int shapeidx) const
 
virtual float getTextRotation () const
 
virtual Color getColor () const
 
virtual void setMarkerStyle (int idx, const OD::MarkerStyle2D &)
 
virtual const OD::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 shapeidx, 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 NamedMonitorable
 NamedMonitorable (const char *nm=0)
 
 NamedMonitorable (const NamedObject &)
 
virtual ~NamedMonitorable ()
 
 NamedMonitorable (const NamedMonitorable &)
 
NamedMonitorableoperator= (const NamedMonitorable &)
 
bool operator== (const NamedMonitorable &) const
 
bool operator!= (const NamedMonitorable &oth) const
 
virtual NamedMonitorableclone () const
 
ChangeType compareWith (const Monitorable &) const
 
virtual NamedMonitorablegetClone () const
 
virtual BufferString getName () const
 
virtual void setName (const char *)
 
- Public Member Functions inherited from Monitorable
 Monitorable (const Monitorable &)
 
virtual ~Monitorable ()
 
Monitorableoperator= (const Monitorable &)
 
bool operator== (const Monitorable &) const
 
virtual ChangeDataNotifierobjectChanged () const
 
virtual Notifier< Monitorable > & objectToBeDeleted () const
 
virtual void touch () const
 
virtual DirtyCountType dirtyCount () const
 
void sendChangeNotification (const ChangeData &) const
 
void sendEntireObjectChangeNotification () const
 
void transferNotifsTo (const Monitorable &, const CallBacker *onlyfor=0) 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 detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
virtual bool isCapsule () const
 
void stopReceivingNotifications () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
bool getNameFromPar (const IOPar &)
 
void putNameInPar (IOPar &) const
 

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 Monitorable
Threads::Lock accesslock_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Static Public Member Functions inherited from NamedMonitorable
static Notifier< NamedMonitorable > & instanceCreated ()
 
static ChangeType cNameChange ()
 
- Static Public Member Functions inherited from Monitorable
static Notifier< Monitorable > & instanceCreated ()
 defines static instanceCreated() More...
 
static ChangeType cEntireObjectChange ()
 
static ChangeType cNoChange ()
 
static IDType cUnspecChgID ()
 
static IDType cEntireObjectChgID ()
 
static ChangeType changeNotificationTypeOf (CallBacker *)
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Protected Types inherited from Monitorable
typedef Threads::Atomic< DirtyCountTypeDirtyCounter
 
- Protected Member Functions inherited from NamedMonitorable
void copyAll (const NamedMonitorable &)
 
- Protected Member Functions inherited from Monitorable
 Monitorable ()
 
void copyAll (const Monitorable &)
 
void sendChgNotif (AccessLocker &, const ChangeData &) const
 calls objectChanged with released lock More...
 
void sendChgNotif (AccessLocker &, ChangeType, IDType) const
 calls objectChanged with released lock More...
 
void sendDelNotif () const
 
void stopChangeNotifications () const
 
void resumeChangeNotifications () const
 
template<class T >
getMemberSimple (const T &) const
 the get function used by mImplSimpleMonitoredGet More...
 
template<class TMember , class TSetTo >
void setMemberSimple (TMember &, TSetTo, ChangeType, IDType)
 the set function used by mImplSimpleMonitoredSet More...
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers () const
 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 OD::Alignment BaseMapObject::getAlignment ( int  shapeidx) const
virtual
virtual bool BaseMapObject::getBoundingBox ( BoundingBox ) const
virtual

Returns the Coord range.

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 OD::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  shapeidx,
const OD::LineStyle  
)
inlinevirtual
virtual void BaseMapObject::setMarkerStyle ( int  idx,
const OD::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. 2017