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

Public Member Functions

 uiPickSetPolygonMenuItemHandler (uiVisPartServer &, const uiString &mnutext, const CallBack &, const char *parenttext=0, int placement=-1)
 
void addWhenPickSet (bool)
 
void addWhenPolygon (bool)
 
int getDisplayID () const
 
- Public Member Functions inherited from MenuItemHandler
 MenuItemHandler (MenuHandler &, const uiString &nm, const CallBack &, const char *parenttxt=0, int placement=-1)
 
 ~MenuItemHandler ()
 
void setIcon (const char *fnm)
 
- 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...
 

Protected Member Functions

bool shouldAddMenu () const
 
- Protected Member Functions inherited from MenuItemHandler
virtual void createMenuCB (CallBacker *)
 
virtual void handleMenuCB (CallBacker *)
 
virtual bool shouldBeEnabled () const
 
virtual bool shouldBeChecked () const
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

uiVisPartServervisserv_
 
bool addwhenpolygon_
 
bool addwhenpickset_
 
- Protected Attributes inherited from MenuItemHandler
MenuItem menuitem_
 
MenuHandlermenuhandler_
 
CallBack cb_
 
BufferString parenttext_
 

Additional Inherited Members

- Public Attributes inherited from MenuItemHandler
bool doadd_
 
bool isenabled_
 
bool ischecked_
 

Detailed Description

brief MenuItemHandler for PickSet/Polygons By default the menu will be added to both. This can be controlled with the functions addWhenPickSet and addWhenPolygon

Constructor & Destructor Documentation

uiPickSetPolygonMenuItemHandler::uiPickSetPolygonMenuItemHandler ( uiVisPartServer ,
const uiString mnutext,
const CallBack ,
const char *  parenttext = 0,
int  placement = -1 
)

Member Function Documentation

void uiPickSetPolygonMenuItemHandler::addWhenPickSet ( bool  )
void uiPickSetPolygonMenuItemHandler::addWhenPolygon ( bool  )
int uiPickSetPolygonMenuItemHandler::getDisplayID ( ) const

Does only give a valid answer if called from cb.

bool uiPickSetPolygonMenuItemHandler::shouldAddMenu ( ) const
protectedvirtual

Reimplemented from MenuItemHandler.

Member Data Documentation

bool uiPickSetPolygonMenuItemHandler::addwhenpickset_
protected
bool uiPickSetPolygonMenuItemHandler::addwhenpolygon_
protected
uiVisPartServer& uiPickSetPolygonMenuItemHandler::visserv_
protected

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