anatomist 6.0.4
3D neuroimaging data viewer
ControlWindow Class Reference

The ControlWindow class is the Anatomist control window. More...

#include <anatomist/control/wControl.h>

Inheritance diagram for ControlWindow:
Collaboration diagram for ControlWindow:

Public Slots

void UpdateMenus ()
 
void loadObject ()
 
void saveSettings ()
 
void saveWindowsConfig ()
 
void replayScenario ()
 
void openWindow (int type)
 opens a window of type ID type
 
void openWindow (QAction *ac)
 
void dropOnWindowIcon (int type, QDropEvent *ev)
 drop event on windows buttons
 
void dragEnterOnWindowIcon (int type, QDragEnterEvent *ev)
 
void dragMoveOnWindowIcon (int type, QDragMoveEvent *ev)
 
void openAxial ()
 
void openSagittal ()
 
void openCoronal ()
 
void openOblique ()
 
void open3D ()
 
void openBrowser ()
 
void openRefWin ()
 
void iconifyWindows ()
 
void restoreWindows ()
 
void closeWindows ()
 
void linkWindows ()
 
void addObjectsInWindows ()
 
void removeObjects ()
 
void deleteObjects ()
 
void reload ()
 
void groupObjects ()
 
void chooseWinReferential ()
 same as chooseReferential() but for windows only
 
void chooseReferential ()
 
void openConstraintEditor ()
 
void fusionObjects ()
 
void openPreferencesWin ()
 
void viewRefColors ()
 
void about ()
 
void help ()
 
void graphParams ()
 
void quit ()
 
void languageEnglish ()
 
void languageFrench ()
 
void enableLogo (bool)
 
void objectTreeClick ()
 
void objectTreeDblClick ()
 
void windowTreeClick ()
 
void windowTreeDblClick (anatomist::AWindow *)
 
void reloadPalettes ()
 
void modulesList ()
 
void aimsInfo ()
 
void openThreeViews ()
 
void openBlockView ()
 
void openEmptyBlockView ()
 
void clearAll ()
 clears all objects / windows / refs / transfos to reset the application
 

Public Member Functions

 ControlWindow ()
 
virtual ~ControlWindow ()
 
void registerWindow (anatomist::AWindow *win)
 
void unregisterWindow (anatomist::AWindow *win)
 
void NotifyWindowChange (anatomist::AWindow *win)
 
void registerObject (anatomist::AObject *obj)
 
void unregisterObject (anatomist::AObject *obj)
 
void registerSubObject (anatomist::MObject *parent, anatomist::AObject *obj)
 
void NotifyObjectChange (anatomist::AObject *obj)
 
std::set< anatomist::AObject * > selectedObjects ()
 
std::set< anatomist::AWindow * > selectedWindows ()
 
std::set< int > SelectedWinGroups () const
 
void SelectObject (anatomist::AObject *obj)
 
void UnselectAllObjects ()
 
void UnselectAllWindows ()
 
void SelectWindow (anatomist::AWindow *win)
 
void ResizeWindow (anatomist::AWindow *win)
 
void BuildObjectMenu ()
 
void UpdateToggleMenus ()
 
void UpdateObjectMenu ()
 
void UpdateWindowMenu ()
 
anatomist::AControlMenuHandlermenuHandler ()
 
bool ViewingRefColors () const
 Are reference colors markers visible ?
 
void ToggleRefColorsView ()
 
void enableRefWinMenu (bool)
 
void enableLoadRefMenu (bool)
 
void enablePreferencesMenu (bool)
 
void enableFusionMenu (bool)
 
void enableGroupMenu (bool)
 
bool logoEnabled () const
 
void loadObject (const std::string &filter, const std::string &caption)
 
anatomist::ReferentialdefaultObjectsReferential () const
 
anatomist::ReferentialdefaultWindowsReferential () const
 
void setDefaultObjectsReferential (anatomist::Referential *)
 
void setDefaultWindowsReferential (anatomist::Referential *)
 
void enableClose (bool)
 allows or forbids closing the control window
 
bool closeEnabled () const
 
void setWindowTypeVisible (int type, bool visible=true)
 
bool hasObject (anatomist::AObject *obj) const
 

Static Public Member Functions

static ControlWindowtheControlWindow ()
 

Protected Slots

void objectTreeRightClick (anatomist::AObject *, const QPoint &)
 

Protected Member Functions

virtual bool event (QEvent *e)
 
void closeEvent (QCloseEvent *event)
 
virtual void createMenu ()
 
virtual void createIcons ()
 
virtual void drawContents ()
 
virtual void createTitle ()
 
void setLanguage (const std::string &poFilename)
 

Protected Attributes

anatomist::AControlMenuHandler_menu
 

Static Protected Attributes

static std::string _baseTitle
 
static ControlWindow_theControlWindow
 

Detailed Description

The ControlWindow class is the Anatomist control window.

It reflects the contents of the application, allowing to visualize and handle various data and windows. \ The ControlWindow class is based on the MPP MenuWindow class \ \

Definition at line 60 of file wControl.h.

Constructor & Destructor Documentation

◆ ControlWindow()

ControlWindow::ControlWindow ( )

Referenced by theControlWindow().

◆ ~ControlWindow()

virtual ControlWindow::~ControlWindow ( )
virtual

Member Function Documentation

◆ about

void ControlWindow::about ( )
slot

◆ addObjectsInWindows

void ControlWindow::addObjectsInWindows ( )
slot

◆ aimsInfo

void ControlWindow::aimsInfo ( )
slot

◆ BuildObjectMenu()

void ControlWindow::BuildObjectMenu ( )

Referenced by UpdateMenus().

◆ chooseReferential

void ControlWindow::chooseReferential ( )
slot

◆ chooseWinReferential

void ControlWindow::chooseWinReferential ( )
slot

same as chooseReferential() but for windows only

◆ clearAll

void ControlWindow::clearAll ( )
slot

clears all objects / windows / refs / transfos to reset the application

◆ closeEnabled()

bool ControlWindow::closeEnabled ( ) const

◆ closeEvent()

void ControlWindow::closeEvent ( QCloseEvent * event)
protected

References event().

◆ closeWindows

void ControlWindow::closeWindows ( )
slot

◆ createIcons()

virtual void ControlWindow::createIcons ( )
protectedvirtual

◆ createMenu()

virtual void ControlWindow::createMenu ( )
protectedvirtual

◆ createTitle()

virtual void ControlWindow::createTitle ( )
protectedvirtual

◆ defaultObjectsReferential()

anatomist::Referential * ControlWindow::defaultObjectsReferential ( ) const

◆ defaultWindowsReferential()

anatomist::Referential * ControlWindow::defaultWindowsReferential ( ) const

◆ deleteObjects

void ControlWindow::deleteObjects ( )
slot

◆ dragEnterOnWindowIcon

void ControlWindow::dragEnterOnWindowIcon ( int type,
QDragEnterEvent * ev )
slot

◆ dragMoveOnWindowIcon

void ControlWindow::dragMoveOnWindowIcon ( int type,
QDragMoveEvent * ev )
slot

◆ drawContents()

virtual void ControlWindow::drawContents ( )
protectedvirtual

◆ dropOnWindowIcon

void ControlWindow::dropOnWindowIcon ( int type,
QDropEvent * ev )
slot

drop event on windows buttons

◆ enableClose()

void ControlWindow::enableClose ( bool )

allows or forbids closing the control window

◆ enableFusionMenu()

void ControlWindow::enableFusionMenu ( bool )

◆ enableGroupMenu()

void ControlWindow::enableGroupMenu ( bool )

◆ enableLoadRefMenu()

void ControlWindow::enableLoadRefMenu ( bool )

◆ enableLogo

void ControlWindow::enableLogo ( bool )
slot

◆ enablePreferencesMenu()

void ControlWindow::enablePreferencesMenu ( bool )

◆ enableRefWinMenu()

void ControlWindow::enableRefWinMenu ( bool )

◆ event()

virtual bool ControlWindow::event ( QEvent * e)
protectedvirtual

Referenced by closeEvent().

◆ fusionObjects

void ControlWindow::fusionObjects ( )
slot

◆ graphParams

void ControlWindow::graphParams ( )
slot

◆ groupObjects

void ControlWindow::groupObjects ( )
slot

◆ hasObject()

bool ControlWindow::hasObject ( anatomist::AObject * obj) const

◆ help

void ControlWindow::help ( )
slot

◆ iconifyWindows

void ControlWindow::iconifyWindows ( )
slot

◆ languageEnglish

void ControlWindow::languageEnglish ( )
slot

◆ languageFrench

void ControlWindow::languageFrench ( )
slot

◆ linkWindows

void ControlWindow::linkWindows ( )
slot

◆ loadObject [1/2]

void ControlWindow::loadObject ( )
slot

◆ loadObject() [2/2]

void ControlWindow::loadObject ( const std::string & filter,
const std::string & caption )

◆ logoEnabled()

bool ControlWindow::logoEnabled ( ) const

◆ menuHandler()

anatomist::AControlMenuHandler * ControlWindow::menuHandler ( )
inline

Definition at line 89 of file wControl.h.

References _menu.

◆ modulesList

void ControlWindow::modulesList ( )
slot

◆ NotifyObjectChange()

void ControlWindow::NotifyObjectChange ( anatomist::AObject * obj)

◆ NotifyWindowChange()

void ControlWindow::NotifyWindowChange ( anatomist::AWindow * win)

◆ objectTreeClick

void ControlWindow::objectTreeClick ( )
slot

◆ objectTreeDblClick

void ControlWindow::objectTreeDblClick ( )
slot

◆ objectTreeRightClick

void ControlWindow::objectTreeRightClick ( anatomist::AObject * ,
const QPoint &  )
protectedslot

◆ open3D

void ControlWindow::open3D ( )
slot

◆ openAxial

void ControlWindow::openAxial ( )
slot

◆ openBlockView

void ControlWindow::openBlockView ( )
slot

◆ openBrowser

void ControlWindow::openBrowser ( )
slot

◆ openConstraintEditor

void ControlWindow::openConstraintEditor ( )
slot

◆ openCoronal

void ControlWindow::openCoronal ( )
slot

◆ openEmptyBlockView

void ControlWindow::openEmptyBlockView ( )
slot

◆ openOblique

void ControlWindow::openOblique ( )
slot

◆ openPreferencesWin

void ControlWindow::openPreferencesWin ( )
slot

◆ openRefWin

void ControlWindow::openRefWin ( )
slot

◆ openSagittal

void ControlWindow::openSagittal ( )
slot

◆ openThreeViews

void ControlWindow::openThreeViews ( )
slot

◆ openWindow [1/2]

void ControlWindow::openWindow ( int type)
slot

opens a window of type ID type

◆ openWindow [2/2]

void ControlWindow::openWindow ( QAction * ac)
slot

◆ quit

void ControlWindow::quit ( )
slot

◆ registerObject()

void ControlWindow::registerObject ( anatomist::AObject * obj)

◆ registerSubObject()

void ControlWindow::registerSubObject ( anatomist::MObject * parent,
anatomist::AObject * obj )

◆ registerWindow()

void ControlWindow::registerWindow ( anatomist::AWindow * win)

◆ reload

void ControlWindow::reload ( )
slot

◆ reloadPalettes

void ControlWindow::reloadPalettes ( )
slot

◆ removeObjects

void ControlWindow::removeObjects ( )
slot

◆ replayScenario

void ControlWindow::replayScenario ( )
slot

◆ ResizeWindow()

void ControlWindow::ResizeWindow ( anatomist::AWindow * win)

◆ restoreWindows

void ControlWindow::restoreWindows ( )
slot

◆ saveSettings

void ControlWindow::saveSettings ( )
slot

◆ saveWindowsConfig

void ControlWindow::saveWindowsConfig ( )
slot

◆ selectedObjects()

std::set< anatomist::AObject * > ControlWindow::selectedObjects ( )

◆ selectedWindows()

std::set< anatomist::AWindow * > ControlWindow::selectedWindows ( )

◆ SelectedWinGroups()

std::set< int > ControlWindow::SelectedWinGroups ( ) const

◆ SelectObject()

void ControlWindow::SelectObject ( anatomist::AObject * obj)

◆ SelectWindow()

void ControlWindow::SelectWindow ( anatomist::AWindow * win)

◆ setDefaultObjectsReferential()

void ControlWindow::setDefaultObjectsReferential ( anatomist::Referential * )

◆ setDefaultWindowsReferential()

void ControlWindow::setDefaultWindowsReferential ( anatomist::Referential * )

◆ setLanguage()

void ControlWindow::setLanguage ( const std::string & poFilename)
protected

◆ setWindowTypeVisible()

void ControlWindow::setWindowTypeVisible ( int type,
bool visible = true )

◆ theControlWindow()

static ControlWindow * ControlWindow::theControlWindow ( )
inlinestatic

Definition at line 110 of file wControl.h.

References _theControlWindow, and ControlWindow().

◆ ToggleRefColorsView()

void ControlWindow::ToggleRefColorsView ( )

◆ unregisterObject()

void ControlWindow::unregisterObject ( anatomist::AObject * obj)

◆ unregisterWindow()

void ControlWindow::unregisterWindow ( anatomist::AWindow * win)

◆ UnselectAllObjects()

void ControlWindow::UnselectAllObjects ( )

◆ UnselectAllWindows()

void ControlWindow::UnselectAllWindows ( )

◆ UpdateMenus

void ControlWindow::UpdateMenus ( )
inlineslot

Definition at line 113 of file wControl.h.

References BuildObjectMenu(), and UpdateToggleMenus().

◆ UpdateObjectMenu()

void ControlWindow::UpdateObjectMenu ( )

◆ UpdateToggleMenus()

void ControlWindow::UpdateToggleMenus ( )

Referenced by UpdateMenus().

◆ UpdateWindowMenu()

void ControlWindow::UpdateWindowMenu ( )

◆ ViewingRefColors()

bool ControlWindow::ViewingRefColors ( ) const

Are reference colors markers visible ?

◆ viewRefColors

void ControlWindow::viewRefColors ( )
slot

◆ windowTreeClick

void ControlWindow::windowTreeClick ( )
slot

◆ windowTreeDblClick

void ControlWindow::windowTreeDblClick ( anatomist::AWindow * )
slot

Member Data Documentation

◆ _baseTitle

std::string ControlWindow::_baseTitle
staticprotected

Definition at line 179 of file wControl.h.

◆ _menu

anatomist::AControlMenuHandler* ControlWindow::_menu
protected

Definition at line 177 of file wControl.h.

Referenced by menuHandler().

◆ _theControlWindow

ControlWindow* ControlWindow::_theControlWindow
staticprotected

Definition at line 180 of file wControl.h.

Referenced by theControlWindow().


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