#include <uimenuhandler.h>
|
| | uiMenuHandler (uiParent *, int id) |
| |
| | ~uiMenuHandler () |
| |
| bool | executeMenu () override |
| |
| bool | executeMenu (int menutype, const TypeSet< int > *path=0) |
| |
| const Geom::Point2D< double > & | get2DPickedPos () const |
| |
| int | getMenuType () const |
| |
| uiParent * | getParent () const |
| |
| const TypeSet< int > * | getPath () const |
| |
| const Coord3 & | getPickedPos () const |
| |
| void | set2DPickedPos (const Geom::Point2D< double > &pos) |
| |
| void | setPickedPos (const Coord3 &pickedpos) |
| |
Public Member Functions inherited from MenuHandler |
| bool | isHandled () const |
| |
| int | menuID () const |
| |
| int | queueID () const |
| |
| void | setIsHandled (bool) |
| |
| void | setMenuID (int newid) |
| |
| | 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.
|
| |
| 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.
|
| |
| CallBacker & | operator= (const CallBacker &)=delete |
| |
| void | stopReceivingNotifications () const |
| |
| virtual CallBacker * | trueCaller () |
| |
| void | addObserver (WeakPtrBase *obs) |
| | Not for normal use. May become private.
|
| |
| int | nrRefs () const |
| | Only for expert use.
|
| |
| void | ref () const |
| |
| bool | refIfReffed () const |
| | Don't use in production, for debugging.
|
| |
| void | removeObserver (WeakPtrBase *obs) |
| | Not for normal use. May become private.
|
| |
| bool | tryRef () const |
| | Not for normal use. May become private.
|
| |
| void | unRef () const |
| |
| void | unRefNoDelete () const |
| |
◆ uiMenuHandler()
| uiMenuHandler::uiMenuHandler |
( |
uiParent * | , |
|
|
int | id ) |
◆ ~uiMenuHandler()
| uiMenuHandler::~uiMenuHandler |
( |
| ) |
|
◆ createMenu()
◆ executeMenu() [1/2]
| bool uiMenuHandler::executeMenu |
( |
| ) |
|
|
overridevirtual |
◆ executeMenu() [2/2]
| bool uiMenuHandler::executeMenu |
( |
int | menutype, |
|
|
const TypeSet< int > * | path = 0 ) |
- Parameters
-
| menutype | is an integer that specifies what type of menu should be generated. Two numbers are reserved, and the user of the class may use his own codes for other circumstances. The two defined values are:
- menutype==fromTree menu generated from (a right-click on) the treeitem.
- menutype==fromScene menu generated from the scene.
|
| path | If menutype==fromScene the path of selection (i.e. a list of the ids of the paht, from scene to picked object). |
◆ executeMenuInternal()
| bool uiMenuHandler::executeMenuInternal |
( |
| ) |
|
|
protected |
◆ fromScene()
| static int uiMenuHandler::fromScene |
( |
| ) |
|
|
static |
◆ fromTree()
| static int uiMenuHandler::fromTree |
( |
| ) |
|
|
static |
◆ get2DPickedPos()
| const Geom::Point2D< double > & uiMenuHandler::get2DPickedPos |
( |
| ) |
const |
|
inline |
◆ getMenuType()
| int uiMenuHandler::getMenuType |
( |
| ) |
const |
|
inline |
◆ getParent()
| uiParent * uiMenuHandler::getParent |
( |
| ) |
const |
|
inline |
◆ getPath()
| const TypeSet< int > * uiMenuHandler::getPath |
( |
| ) |
const |
|
inline |
- Returns
- The path of selection (i.e. a list of the ids of the paht, from scene to picked object).
◆ getPickedPos()
| const Coord3 & uiMenuHandler::getPickedPos |
( |
| ) |
const |
|
inline |
◆ set2DPickedPos()
| void uiMenuHandler::set2DPickedPos |
( |
const Geom::Point2D< double > & | pos | ) |
|
|
inline |
◆ setPickedPos()
| void uiMenuHandler::setPickedPos |
( |
const Coord3 & | pickedpos | ) |
|
|
inline |
◆ menutype_
| int uiMenuHandler::menutype_ |
|
protected |
◆ path_
| const TypeSet<int>* uiMenuHandler::path_ |
|
protected |
◆ positionxy_
◆ positionxyz_
| Coord3 uiMenuHandler::positionxyz_ |
|
protected |
◆ uiparent_