#include <vtkSlicerColorGUI.h>
Public Member Functions | |
| virtual void | AddGUIObservers () |
| int | AddLUTsToColorDialog () |
| virtual void | BuildGUI (vtkKWFrame *f, double *bgColor) |
| virtual void | BuildGUI (vtkKWFrame *f) |
| virtual void | BuildGUI (void) |
| virtual void | CreateModuleEventBindings () |
| virtual void | Enter () |
| virtual void | Enter (vtkMRMLNode *node) |
| virtual void | Exit () |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual void | ProcessGUIEvents (vtkObject *caller, unsigned long event, void *callData) |
| virtual void | ProcessLogicEvents (vtkObject *caller, unsigned long event, void *callData) |
| virtual void | ProcessMRMLEvents (vtkObject *caller, unsigned long event, void *callData) |
| virtual void | ReleaseModuleEventBindings () |
| virtual void | RemoveGUIObservers () |
| void | SetActiveViewer (vtkSlicerViewerWidget *activeViewer) |
| void | SetAndObserveModuleLogic (vtkSlicerColorLogic *logic) |
| void | SetModuleLogic (vtkSlicerColorLogic *logic) |
| virtual void | TearDownGUI () |
| vtkGetObjectMacro (ColorDisplayWidget, vtkSlicerColorDisplayWidget) | |
| vtkGetObjectMacro (Logic, vtkSlicerColorLogic) | |
| vtkTypeRevisionMacro (vtkSlicerColorGUI, vtkSlicerModuleGUI) | |
Static Public Member Functions | |
| static vtkSlicerColorGUI * | New () |
Protected Member Functions | |
| vtkSlicerColorGUI () | |
| virtual | ~vtkSlicerColorGUI () |
Protected Attributes | |
| vtkKWLabel * | BIRNLabel |
| vtkSlicerColorDisplayWidget * | ColorDisplayWidget |
| vtkSlicerColorEditWidget * | ColorEditWidget |
| vtkSlicerColorLogic * | Logic |
| Module logic and mrml pointers. | |
| vtkKWLabel * | NACLabel |
| vtkKWLabel * | NAMICLabel |
| vtkKWLabel * | NCIGTLabel |
Private Member Functions | |
| void | operator= (const vtkSlicerColorGUI &) |
| Not implemented. | |
| vtkSlicerColorGUI (const vtkSlicerColorGUI &) | |
| vtkSlicerColorGUI::vtkSlicerColorGUI | ( | ) | [protected] |
References BIRNLabel, ColorDisplayWidget, ColorEditWidget, Logic, NACLabel, NAMICLabel, and NCIGTLabel.
| vtkSlicerColorGUI::~vtkSlicerColorGUI | ( | ) | [protected, virtual] |
References BIRNLabel, ColorDisplayWidget, ColorEditWidget, NACLabel, NAMICLabel, NCIGTLabel, and SetModuleLogic().
| vtkSlicerColorGUI::vtkSlicerColorGUI | ( | const vtkSlicerColorGUI & | ) | [private] |
| void vtkSlicerColorGUI::AddGUIObservers | ( | void | ) | [virtual] |
Add/Remove observers on widgets in the GUI
Reimplemented from vtkSlicerComponentGUI.
Referenced by Enter().
| int vtkSlicerColorGUI::AddLUTsToColorDialog | ( | ) |
Add Slicer mrml colour table nodes to the application's color picker dialog as swatches. Returns 1 on failure, 0 on success.
References Console::c, vtkMRMLColorNode::GetColorName(), vtkMRMLColorNode::GetLookupTable(), vtkMRMLColorTableNode::GetNumberOfColors(), and mathExample::n.
Referenced by vtkSlicerApplication::GetColorPickerDialog().
| virtual void vtkSlicerColorGUI::BuildGUI | ( | vtkKWFrame * | f, | |
| double * | bgColor | |||
| ) | [inline, virtual] |
| virtual void vtkSlicerColorGUI::BuildGUI | ( | vtkKWFrame * | f | ) | [inline, virtual] |
| void vtkSlicerColorGUI::BuildGUI | ( | void | ) | [virtual] |
This method builds the Color module GUI
Reimplemented from vtkSlicerComponentGUI.
References BIRNLabel, vtkSlicerModuleGUI::BuildHelpAndAboutFrame(), vtkSlicerModuleCollapsibleFrame::CollapseFrame(), ColorDisplayWidget, ColorEditWidget, vtkSlicerModuleCollapsibleFrame::ExpandFrame(), vtkSlicerModuleGUI::GetAcknowledgementIcons(), vtkMRMLScene::GetNodeByID(), vtkSlicerComponentGUI::MRMLScene, mathExample::n, NACLabel, slicerget::name, NAMICLabel, NCIGTLabel, New(), SetActiveViewer(), vtkSlicerColorDisplayWidget::SetColorNodeID(), vtkSlicerModuleCollapsibleFrame::SetLabelText(), vtkSlicerWidget::SetMRMLScene(), and vtkSlicerModuleGUI::UIPanel.
Referenced by Enter().
| void vtkSlicerColorGUI::CreateModuleEventBindings | ( | void | ) | [virtual] |
Methods for adding module-specific key bindings and removing them.
Reimplemented from vtkSlicerModuleGUI.
Referenced by Enter().
| virtual void vtkSlicerColorGUI::Enter | ( | void | ) | [inline, virtual] |
functions that define and undefine module-specific behaviors.
Reimplemented from vtkSlicerComponentGUI.
References Enter().
Referenced by Enter().
| void vtkSlicerColorGUI::Enter | ( | vtkMRMLNode * | node | ) | [virtual] |
Methods describe behavior at module enter and exit.
References AddGUIObservers(), BuildGUI(), vtkSlicerModuleGUI::Built, ColorDisplayWidget, ColorEditWidget, CreateModuleEventBindings(), and vtkSlicerColorDisplayWidget::SetColorNodeID().
| void vtkSlicerColorGUI::Exit | ( | void | ) | [virtual] |
Reimplemented from vtkSlicerComponentGUI.
References ReleaseModuleEventBindings().
Referenced by TearDownGUI().
| static vtkSlicerColorGUI* vtkSlicerColorGUI::New | ( | ) | [static] |
Usual vtk class functions
Reimplemented from vtkSlicerModuleGUI.
Referenced by BuildGUI(), and Slicer3_main().
| void vtkSlicerColorGUI::operator= | ( | const vtkSlicerColorGUI & | ) | [private] |
Not implemented.
Reimplemented from vtkSlicerModuleGUI.
| void vtkSlicerColorGUI::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) |
Reimplemented from vtkSlicerModuleGUI.
| virtual void vtkSlicerColorGUI::ProcessGUIEvents | ( | vtkObject * | , | |
| unsigned long | , | |||
| void * | ||||
| ) | [virtual] |
alternative method to propagate events generated in GUI to logic / mrml
Reimplemented from vtkSlicerModuleGUI.
| virtual void vtkSlicerColorGUI::ProcessLogicEvents | ( | vtkObject * | caller, | |
| unsigned long | event, | |||
| void * | callData | |||
| ) | [virtual] |
Class's mediator methods for processing events invoked by either the Logic, MRML or GUI.
Reimplemented from vtkSlicerModuleGUI.
| virtual void vtkSlicerColorGUI::ProcessMRMLEvents | ( | vtkObject * | , | |
| unsigned long | , | |||
| void * | ||||
| ) | [virtual] |
alternative method to propagate events generated in GUI to logic / mrml
Reimplemented from vtkSlicerModuleGUI.
| void vtkSlicerColorGUI::ReleaseModuleEventBindings | ( | void | ) | [virtual] |
Reimplemented from vtkSlicerModuleGUI.
Referenced by Exit().
| void vtkSlicerColorGUI::RemoveGUIObservers | ( | void | ) | [virtual] |
Reimplemented from vtkSlicerComponentGUI.
Referenced by TearDownGUI().
| void vtkSlicerColorGUI::SetActiveViewer | ( | vtkSlicerViewerWidget * | activeViewer | ) |
update the viewer widget on the sub widgets
References ColorDisplayWidget, and vtkSlicerColorDisplayWidget::SetViewerWidget().
Referenced by BuildGUI().
| void vtkSlicerColorGUI::SetAndObserveModuleLogic | ( | vtkSlicerColorLogic * | logic | ) | [inline] |
References vtkSlicerComponentGUI::SetAndObserveLogic(), and vtkObjectPointer.
| void vtkSlicerColorGUI::SetModuleLogic | ( | vtkSlicerColorLogic * | logic | ) | [inline] |
API for setting Logic and for both setting and observing them.
References vtkSlicerComponentGUI::SetLogic(), and vtkObjectPointer.
Referenced by Slicer3_main(), and ~vtkSlicerColorGUI().
| void vtkSlicerColorGUI::TearDownGUI | ( | void | ) | [virtual] |
This method releases references and key-bindings, and optionally removes observers.
Reimplemented from vtkSlicerComponentGUI.
References vtkSlicerModuleGUI::Built, Exit(), and RemoveGUIObservers().
Referenced by Slicer3_main().
| vtkSlicerColorGUI::vtkGetObjectMacro | ( | ColorDisplayWidget | , | |
| vtkSlicerColorDisplayWidget | ||||
| ) |
the widget that displays info about the colour node
| vtkSlicerColorGUI::vtkGetObjectMacro | ( | Logic | , | |
| vtkSlicerColorLogic | ||||
| ) |
Get methods on class members ( no Set methods required. )
| vtkSlicerColorGUI::vtkTypeRevisionMacro | ( | vtkSlicerColorGUI | , | |
| vtkSlicerModuleGUI | ||||
| ) |
vtkKWLabel* vtkSlicerColorGUI::BIRNLabel [protected] |
Referenced by BuildGUI(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().
the widget that displays the colour node
Referenced by BuildGUI(), Enter(), SetActiveViewer(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().
the widget that allows the user to edit a color node
Referenced by BuildGUI(), Enter(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().
vtkSlicerColorLogic* vtkSlicerColorGUI::Logic [protected] |
Module logic and mrml pointers.
Referenced by vtkSlicerColorGUI().
vtkKWLabel* vtkSlicerColorGUI::NACLabel [protected] |
Acknowledgement icons
Referenced by BuildGUI(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().
vtkKWLabel* vtkSlicerColorGUI::NAMICLabel [protected] |
Referenced by BuildGUI(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().
vtkKWLabel* vtkSlicerColorGUI::NCIGTLabel [protected] |
Referenced by BuildGUI(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().
1.6.1