#include <vtkSlicerColorDisplayWidget.h>
| anonymous enum |
anonymous enum [protected] |
| vtkSlicerColorDisplayWidget::vtkSlicerColorDisplayWidget | ( | ) | [protected] |
| vtkSlicerColorDisplayWidget::~vtkSlicerColorDisplayWidget | ( | ) | [protected, virtual] |
References ColorNode, ColorNodeTypeLabel, ColorSelectorWidget, MaxRangeEntry, MinRangeEntry, MultiColumnList, NodeHelpWidget, NumberOfColorsLabel, RemoveMRMLObservers(), RemoveWidgetObservers(), ScalarBarAnnotation, ScalarBarWidget, SelectedColorLabel, SetColorNodeID(), vtkSlicerWidget::SetMRMLScene(), SetViewerWidget(), ShowOnlyNamedColorsCheckButton, and vtkSetMRMLNodeMacro.
| vtkSlicerColorDisplayWidget::vtkSlicerColorDisplayWidget | ( | const vtkSlicerColorDisplayWidget & | ) | [private] |
| void vtkSlicerColorDisplayWidget::AddMRMLObservers | ( | ) | [virtual] |
add observers on color node
Referenced by SetColorNode().
| void vtkSlicerColorDisplayWidget::CreateWidget | ( | void | ) | [protected, virtual] |
Create the widget.
Reimplemented from vtkSlicerWidget.
References NodeSelector::app, ColorIDModifiedEvent, ColorNodeTypeLabel, ColorSelectorWidget, vtkSlicerWidget::GUICallbackCommand, MaxRangeEntry, MinRangeEntry, MultiColumnList, MultiSelectMode, mathExample::n, slicerget::name, NameColumn, New(), NodeHelpWidget, vtkSlicerNodeSelectorWidget::NodeSelectedEvent, NumberOfColorsLabel, NumberOfColumns, ScalarBarAnnotation, ScalarBarWidget, SelectedColorLabel, vtkSlicerPopUpHelpWidget::SetHelpText(), vtkSlicerPopUpHelpWidget::SetHelpTitle(), and ShowOnlyNamedColorsCheckButton.
| int vtkSlicerColorDisplayWidget::GetSelectedColorIndex | ( | ) |
Return the index of the currently selected colour in the multi column list box, for use by other classes when they wish to call GetColor on the vtkMRMLColorNode. Returns -1 if no list box or no selection, or if more than one row is selected.
References EntryColumn, MultiColumnList, and MultiSelectMode.
Referenced by UpdateSelectedColor().
| static vtkSlicerColorDisplayWidget* vtkSlicerColorDisplayWidget::New | ( | ) | [static] |
Reimplemented from vtkSlicerWidget.
Referenced by CreateWidget(), and SetColorNodeID().
| void vtkSlicerColorDisplayWidget::operator= | ( | const vtkSlicerColorDisplayWidget & | ) | [private] |
Not implemented.
Reimplemented from vtkSlicerWidget.
| void vtkSlicerColorDisplayWidget::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) |
Reimplemented from vtkSlicerWidget.
| virtual void vtkSlicerColorDisplayWidget::ProcessMRMLEvents | ( | vtkObject * | caller, | |
| unsigned long | event, | |||
| void * | callData | |||
| ) | [virtual] |
alternative method to propagate events generated in GUI to logic / mrml
| virtual void vtkSlicerColorDisplayWidget::ProcessWidgetEvents | ( | vtkObject * | caller, | |
| unsigned long | event, | |||
| void * | callData | |||
| ) | [virtual] |
alternative method to propagate events generated in GUI to logic / mrml
| void vtkSlicerColorDisplayWidget::RemoveMRMLObservers | ( | ) | [virtual] |
remove observers on color node
Referenced by SetColorNode(), and ~vtkSlicerColorDisplayWidget().
| void vtkSlicerColorDisplayWidget::RemoveWidgetObservers | ( | ) | [virtual] |
removes observers on widgets in the class
References ColorIDModifiedEvent, ColorSelectorWidget, vtkSlicerWidget::GUICallbackCommand, MaxRangeEntry, MinRangeEntry, MultiColumnList, vtkSlicerNodeSelectorWidget::NodeSelectedEvent, and ShowOnlyNamedColorsCheckButton.
Referenced by ~vtkSlicerColorDisplayWidget().
| void vtkSlicerColorDisplayWidget::SetColorNode | ( | vtkMRMLColorNode * | node | ) |
Set the selected node, the color id, and update the widgets
References AddMRMLObservers(), ColorSelectorWidget, vtkSlicerNodeSelectorWidget::GetSelected(), RemoveMRMLObservers(), SetColorNodeID(), and vtkSlicerNodeSelectorWidget::SetSelected().
| void vtkSlicerColorDisplayWidget::SetColorNodeID | ( | char * | id | ) |
References ColorIDModifiedEvent, ColorNode, ColorNodeID, vtkMRMLScene::GetNodeByID(), vtkSlicerWidget::MRMLScene, New(), vtkMRMLColorNode::TypeModifiedEvent, UpdateWidget(), and vtkSetAndObserveMRMLNodeEventsMacro.
Referenced by vtkSlicerColorGUI::BuildGUI(), vtkSlicerColorGUI::Enter(), SetColorNode(), and ~vtkSlicerColorDisplayWidget().
| void vtkSlicerColorDisplayWidget::SetSelectedColorIndex | ( | int | index | ) |
References MultiColumnList, and UpdateSelectedColor().
| void vtkSlicerColorDisplayWidget::SetViewerWidget | ( | vtkSlicerViewerWidget * | viewerWidget | ) | [virtual] |
References ViewerWidget.
Referenced by vtkSlicerColorGUI::SetActiveViewer(), and ~vtkSlicerColorDisplayWidget().
update a table entry
References ColourColumn, EntryColumn, vtkMRMLColorNode::GetColorName(), vtkMRMLScene::GetNodeByID(), vtkSlicerWidget::MRMLScene, MultiColumnList, slicerget::name, NameColumn, NumberOfColumns, and vtkMRMLColorNode::SetColorName().
| void vtkSlicerColorDisplayWidget::UpdateEnableState | ( | void | ) | [virtual] |
Update the "enable" state of the object and its internal parts
References ColorNodeTypeLabel, ColorSelectorWidget, MaxRangeEntry, MinRangeEntry, MultiColumnList, NumberOfColorsLabel, ScalarBarAnnotation, SelectedColorLabel, and ShowOnlyNamedColorsCheckButton.
| void vtkSlicerColorDisplayWidget::UpdateMRML | ( | ) | [protected] |
| void vtkSlicerColorDisplayWidget::UpdateSelectedColor | ( | ) | [protected] |
Called when the selected row changes, just update the label, called from UpdateWidget
References GetSelectedColorIndex(), and SelectedColorLabel.
Referenced by SetSelectedColorIndex(), and UpdateWidget().
| void vtkSlicerColorDisplayWidget::UpdateWidget | ( | ) | [protected] |
Update the widget, used when the color node id changes
References ColorNodeID, ColorNodeTypeLabel, ColourColumn, EntryColumn, vtkMRMLColorNode::GetColorName(), vtkMRMLColorNode::GetLookupTable(), vtkMRMLScene::GetNodeByID(), vtkMRMLColorNode::GetTypeAsString(), MaxRangeEntry, MinRangeEntry, vtkSlicerWidget::MRMLScene, MultiColumnList, slicerget::name, NameColumn, NumberOfColorsLabel, ScalarBarWidget, ShowOnlyNamedColorsCheckButton, and UpdateSelectedColor().
Referenced by SetColorNodeID().
| vtkSlicerColorDisplayWidget::vtkBooleanMacro | ( | MultiSelectMode | , | |
| int | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | ScalarBarWidget | , | |
| vtkScalarBarWidget | ||||
| ) |
Get the scalar bar widget
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | ViewerWidget | , | |
| vtkSlicerViewerWidget | ||||
| ) |
API for setting ColorNode, and observing it Once know that the GUI has to be cleared and updated to show elements from a new list, use this call virtual void SetGUIFromNode(vtkMRMLColorNode * activeColorNode); Get/set the viewer widget so can add a the scalar bar widget to it
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | ColorNode | , | |
| vtkMRMLColorNode | ||||
| ) |
Get the color node, needed for the Editor
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | ScalarBarAnnotation | , | |
| vtkKWScalarBarAnnotation | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | ColorSelectorWidget | , | |
| vtkSlicerNodeSelectorWidget | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | NodeHelpWidget | , | |
| vtkSlicerPopUpHelpWidget | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | MultiColumnList | , | |
| vtkKWMultiColumnListWithScrollbars | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | NumberOfColorsLabel | , | |
| vtkKWLabel | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkGetObjectMacro | ( | ColorNodeTypeLabel | , | |
| vtkKWLabel | ||||
| ) |
Get methods on class members ( no Set methods required. )
| vtkSlicerColorDisplayWidget::vtkGetStringMacro | ( | ColorNodeID | ) |
Getting and setting the mrml color node id
| vtkSlicerColorDisplayWidget::vtkSetMacro | ( | MultiSelectMode | , | |
| int | ||||
| ) |
| vtkSlicerColorDisplayWidget::vtkTypeRevisionMacro | ( | vtkSlicerColorDisplayWidget | , | |
| vtkSlicerWidget | ||||
| ) |
vtkMRMLColorNode* vtkSlicerColorDisplayWidget::ColorNode [protected] |
The the color node that is currently displayed in the widget
Referenced by SetColorNodeID(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
char* vtkSlicerColorDisplayWidget::ColorNodeID [protected] |
id of the color node displayed in the widget
Referenced by SetColorNodeID(), UpdateWidget(), and vtkSlicerColorDisplayWidget().
vtkKWLabel* vtkSlicerColorDisplayWidget::ColorNodeTypeLabel [protected] |
type of the colour node
Referenced by CreateWidget(), UpdateEnableState(), UpdateWidget(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
select a colour node to display
Referenced by CreateWidget(), RemoveWidgetObservers(), SetColorNode(), UpdateEnableState(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
vtkKWEntryWithLabel* vtkSlicerColorDisplayWidget::MaxRangeEntry [protected] |
vtkKWEntryWithLabel* vtkSlicerColorDisplayWidget::MinRangeEntry [protected] |
show and set the range on the colour lut
Referenced by CreateWidget(), RemoveWidgetObservers(), UpdateEnableState(), UpdateMRML(), UpdateWidget(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
vtkKWMultiColumnListWithScrollbars* vtkSlicerColorDisplayWidget::MultiColumnList [protected] |
display the colours in the table
Referenced by CreateWidget(), GetSelectedColorIndex(), RemoveWidgetObservers(), SetSelectedColorIndex(), UpdateElement(), UpdateEnableState(), UpdateWidget(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
int vtkSlicerColorDisplayWidget::MultiSelectMode [protected] |
Decides if MultipleColumns can be selected or not
Referenced by CreateWidget(), and GetSelectedColorIndex().
pop up help describing the nodes
Referenced by CreateWidget(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
vtkKWLabel* vtkSlicerColorDisplayWidget::NumberOfColorsLabel [protected] |
displays the number of colours in the table
Referenced by CreateWidget(), UpdateEnableState(), UpdateWidget(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
int vtkSlicerColorDisplayWidget::NumberOfColumns [protected] |
Referenced by CreateWidget(), UpdateElement(), and vtkSlicerColorDisplayWidget().
vtkKWScalarBarAnnotation* vtkSlicerColorDisplayWidget::ScalarBarAnnotation [protected] |
Control the parameters for a scalar bar widget
Referenced by CreateWidget(), UpdateEnableState(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
vtkScalarBarWidget* vtkSlicerColorDisplayWidget::ScalarBarWidget [protected] |
a widget that manipulates a scalar bar actor (integrated).
Referenced by CreateWidget(), UpdateWidget(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
vtkKWLabel* vtkSlicerColorDisplayWidget::SelectedColorLabel [protected] |
displays the currently selected colour index
Referenced by CreateWidget(), UpdateEnableState(), UpdateSelectedColor(), vtkSlicerColorDisplayWidget(), and ~vtkSlicerColorDisplayWidget().
vtkKWCheckButton* vtkSlicerColorDisplayWidget::ShowOnlyNamedColorsCheckButton [protected] |
a pointer back to the viewer widget, useful for displaying the scalar bar actor
Referenced by SetViewerWidget(), UpdateMRML(), and vtkSlicerColorDisplayWidget().
1.6.1