anatomist  5.0.5
3D neuroimaging data viewer
ControlSwitch Class Reference

#include <anatomist/controler/controlswitch.h>

Inheritance diagram for ControlSwitch:
Collaboration diagram for ControlSwitch:

Public Types

typedef std::map< std::string, anatomist::ControlPtr >::const_iterator const_iterator
 
typedef std::map< std::string, anatomist::ControlPtr >::iterator iterator
 

Public Member Functions

virtual ~ControlSwitch ()
 
bool attach (anatomist::ControlSwitchObserver *window)
 
bool detach (anatomist::ControlSwitchObserver *window)
 
void notifyActivableControlChange ()
 
void notifyAvailableControlChange ()
 
void notifyActiveControlChange ()
 
void notifyActionChange ()
 
const std::map< int, std::string > & activableControls () const
 
const std::map< int, std::string > & availableControls () const
 
const std::set< std::string > & activableControlGroups () const
 
const std::set< std::string > & availableControlGroups () const
 
const std::set< std::string > & actions () const
 
std::string controlDescription (const std::string &ctrlname) const
 
const_iterator begin () const
 
const_iterator end () const
 
void setActiveControl (const std::string &)
 
const std::string & activeControl () const
 
anatomist::ControlPtr activeControlInstance () const
 
void keyPressEvent (QKeyEvent *)
 
void keyReleaseEvent (QKeyEvent *)
 
void mousePressEvent (QMouseEvent *)
 
void mouseReleaseEvent (QMouseEvent *)
 
void mouseDoubleClickEvent (QMouseEvent *)
 
void mouseMoveEvent (QMouseEvent *)
 
void wheelEvent (QWheelEvent *)
 
void focusInEvent (QFocusEvent *)
 
void focusOutEvent (QFocusEvent *)
 
void enterEvent (QEvent *)
 
void leaveEvent (QEvent *)
 
void paintEvent (QPaintEvent *)
 
void moveEvent (QMoveEvent *)
 
void resizeEvent (QResizeEvent *)
 
void dragEnterEvent (QDragEnterEvent *)
 
void dragMoveEvent (QDragMoveEvent *)
 
void dragLeaveEvent (QDragLeaveEvent *)
 
void dropEvent (QDropEvent *)
 
void showEvent (QShowEvent *)
 
void hideEvent (QHideEvent *)
 
void selectionChangedEvent ()
 
void setAvailableControls (const std::list< std::string > &objects)
 
void setActivableControls (bool init=false)
 
void printControls ()
 
void updateToolBox ()
 
void updateControlDescription ()
 
bool isToolBoxVisible () const
 
void switchToolBoxVisible ()
 
ToolBoxtoolBox ()
 
anatomist::ActiongetAction (const std::string &actionName)
 
void activateKeyPressAction (const std::string &methodname) const
 
void activateKeyReleaseAction (const std::string &methodname) const
 
void activateMousePressAction (const std::string &methodname, int x, int y) const
 
void activateMouseReleaseAction (const std::string &methodname, int x, int y) const
 
void activateMouseDoubleClickAction (const std::string &methodname, int x, int y) const
 
void activateMouseMoveAction (const std::string &methodname, int x, int y) const
 

Protected Member Functions

 ControlSwitch (anatomist::View *view)
 

Friends

class anatomist::View
 

Detailed Description

Definition at line 115 of file controlswitch.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 142 of file controlswitch.h.

◆ iterator

typedef std::map<std::string, anatomist::ControlPtr>::iterator ControlSwitch::iterator

Definition at line 144 of file controlswitch.h.

Constructor & Destructor Documentation

◆ ~ControlSwitch()

virtual ControlSwitch::~ControlSwitch ( )
virtual

◆ ControlSwitch()

ControlSwitch::ControlSwitch ( anatomist::View view)
protected

Member Function Documentation

◆ actions()

const std::set<std::string>& ControlSwitch::actions ( ) const

◆ activableControlGroups()

const std::set<std::string>& ControlSwitch::activableControlGroups ( ) const

◆ activableControls()

const std::map<int, std::string>& ControlSwitch::activableControls ( ) const

◆ activateKeyPressAction()

void ControlSwitch::activateKeyPressAction ( const std::string &  methodname) const

◆ activateKeyReleaseAction()

void ControlSwitch::activateKeyReleaseAction ( const std::string &  methodname) const

◆ activateMouseDoubleClickAction()

void ControlSwitch::activateMouseDoubleClickAction ( const std::string &  methodname,
int  x,
int  y 
) const

◆ activateMouseMoveAction()

void ControlSwitch::activateMouseMoveAction ( const std::string &  methodname,
int  x,
int  y 
) const

◆ activateMousePressAction()

void ControlSwitch::activateMousePressAction ( const std::string &  methodname,
int  x,
int  y 
) const

◆ activateMouseReleaseAction()

void ControlSwitch::activateMouseReleaseAction ( const std::string &  methodname,
int  x,
int  y 
) const

◆ activeControl()

const std::string& ControlSwitch::activeControl ( ) const

◆ activeControlInstance()

anatomist::ControlPtr ControlSwitch::activeControlInstance ( ) const

◆ attach()

bool ControlSwitch::attach ( anatomist::ControlSwitchObserver window)

◆ availableControlGroups()

const std::set<std::string>& ControlSwitch::availableControlGroups ( ) const

◆ availableControls()

const std::map<int, std::string>& ControlSwitch::availableControls ( ) const

◆ begin()

const_iterator ControlSwitch::begin ( ) const

◆ controlDescription()

std::string ControlSwitch::controlDescription ( const std::string &  ctrlname) const

◆ detach()

bool ControlSwitch::detach ( anatomist::ControlSwitchObserver window)

◆ dragEnterEvent()

void ControlSwitch::dragEnterEvent ( QDragEnterEvent *  )

◆ dragLeaveEvent()

void ControlSwitch::dragLeaveEvent ( QDragLeaveEvent *  )

◆ dragMoveEvent()

void ControlSwitch::dragMoveEvent ( QDragMoveEvent *  )

◆ dropEvent()

void ControlSwitch::dropEvent ( QDropEvent *  )

◆ end()

const_iterator ControlSwitch::end ( ) const

◆ enterEvent()

void ControlSwitch::enterEvent ( QEvent *  )

◆ focusInEvent()

void ControlSwitch::focusInEvent ( QFocusEvent *  )

◆ focusOutEvent()

void ControlSwitch::focusOutEvent ( QFocusEvent *  )

◆ getAction()

anatomist::Action* ControlSwitch::getAction ( const std::string &  actionName)

◆ hideEvent()

void ControlSwitch::hideEvent ( QHideEvent *  )

◆ isToolBoxVisible()

bool ControlSwitch::isToolBoxVisible ( ) const

◆ keyPressEvent()

void ControlSwitch::keyPressEvent ( QKeyEvent *  )

◆ keyReleaseEvent()

void ControlSwitch::keyReleaseEvent ( QKeyEvent *  )

◆ leaveEvent()

void ControlSwitch::leaveEvent ( QEvent *  )

◆ mouseDoubleClickEvent()

void ControlSwitch::mouseDoubleClickEvent ( QMouseEvent *  )

◆ mouseMoveEvent()

void ControlSwitch::mouseMoveEvent ( QMouseEvent *  )

◆ mousePressEvent()

void ControlSwitch::mousePressEvent ( QMouseEvent *  )

◆ mouseReleaseEvent()

void ControlSwitch::mouseReleaseEvent ( QMouseEvent *  )

◆ moveEvent()

void ControlSwitch::moveEvent ( QMoveEvent *  )

◆ notifyActionChange()

void ControlSwitch::notifyActionChange ( )

◆ notifyActivableControlChange()

void ControlSwitch::notifyActivableControlChange ( )

◆ notifyActiveControlChange()

void ControlSwitch::notifyActiveControlChange ( )

◆ notifyAvailableControlChange()

void ControlSwitch::notifyAvailableControlChange ( )

◆ paintEvent()

void ControlSwitch::paintEvent ( QPaintEvent *  )

◆ printControls()

void ControlSwitch::printControls ( )

◆ resizeEvent()

void ControlSwitch::resizeEvent ( QResizeEvent *  )

◆ selectionChangedEvent()

void ControlSwitch::selectionChangedEvent ( )

◆ setActivableControls()

void ControlSwitch::setActivableControls ( bool  init = false)

◆ setActiveControl()

void ControlSwitch::setActiveControl ( const std::string &  )

◆ setAvailableControls()

void ControlSwitch::setAvailableControls ( const std::list< std::string > &  objects)

◆ showEvent()

void ControlSwitch::showEvent ( QShowEvent *  )

◆ switchToolBoxVisible()

void ControlSwitch::switchToolBoxVisible ( )

◆ toolBox()

ToolBox* ControlSwitch::toolBox ( )

◆ updateControlDescription()

void ControlSwitch::updateControlDescription ( )

◆ updateToolBox()

void ControlSwitch::updateToolBox ( )

◆ wheelEvent()

void ControlSwitch::wheelEvent ( QWheelEvent *  )

Friends And Related Function Documentation

◆ anatomist::View

friend class anatomist::View
friend

Definition at line 123 of file controlswitch.h.


The documentation for this class was generated from the following file: