OpendTect  6.6
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 (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
 

Protected Member Functions

bool shouldAddMenu () const
 
- Protected Member Functions inherited from MenuItemHandler
virtual void createMenuCB (CallBacker *)
 
virtual void handleMenuCB (CallBacker *)
 
virtual bool shouldBeChecked () const
 
virtual bool shouldBeEnabled () const
 

Protected Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Public Attributes inherited from MenuItemHandler
bool doadd_
 
bool ischecked_
 
bool isenabled_
 

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::uiPickSetPolygonMenuItemHandler ( uiVisPartServer ,
const uiString mnutext,
const CallBack ,
const char *  parenttext = 0,
int  placement = -1 
)

Member Function Documentation

◆ addWhenPickSet()

void uiPickSetPolygonMenuItemHandler::addWhenPickSet ( bool  )

◆ addWhenPolygon()

void uiPickSetPolygonMenuItemHandler::addWhenPolygon ( bool  )

◆ getDisplayID()

int uiPickSetPolygonMenuItemHandler::getDisplayID ( ) const

Does only give a valid answer if called from cb.

◆ shouldAddMenu()

bool uiPickSetPolygonMenuItemHandler::shouldAddMenu ( ) const
protectedvirtual

Reimplemented from MenuItemHandler.

Member Data Documentation

◆ addwhenpickset_

bool uiPickSetPolygonMenuItemHandler::addwhenpickset_
protected

◆ addwhenpolygon_

bool uiPickSetPolygonMenuItemHandler::addwhenpolygon_
protected

◆ visserv_

uiVisPartServer& uiPickSetPolygonMenuItemHandler::visserv_
protected

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