vtkSlicerColorGUI Class Reference

#include <vtkSlicerColorGUI.h>

Inheritance diagram for vtkSlicerColorGUI:
vtkSlicerModuleGUI vtkSlicerComponentGUI vtkKWObject

List of all members.

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 vtkSlicerColorGUINew ()

Protected Member Functions

 vtkSlicerColorGUI ()
virtual ~vtkSlicerColorGUI ()

Protected Attributes

vtkKWLabel * BIRNLabel
 Module logic and mrml pointers.
vtkKWLabel * NACLabel
vtkKWLabel * NAMICLabel
vtkKWLabel * NCIGTLabel

Private Member Functions

void operator= (const vtkSlicerColorGUI &)
 Not implemented.
 vtkSlicerColorGUI (const vtkSlicerColorGUI &)

Constructor & Destructor Documentation

vtkSlicerColorGUI::vtkSlicerColorGUI (  )  [protected]
vtkSlicerColorGUI::~vtkSlicerColorGUI (  )  [protected, virtual]
vtkSlicerColorGUI::vtkSlicerColorGUI ( const vtkSlicerColorGUI  )  [private]

Member Function Documentation

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]
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]
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]
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  ,

the widget that displays info about the colour node

vtkSlicerColorGUI::vtkGetObjectMacro ( Logic  ,

Get methods on class members ( no Set methods required. )

vtkSlicerColorGUI::vtkTypeRevisionMacro ( vtkSlicerColorGUI  ,

Member Data Documentation

vtkKWLabel* vtkSlicerColorGUI::BIRNLabel [protected]

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().

Module logic and mrml pointers.

Referenced by vtkSlicerColorGUI().

vtkKWLabel* vtkSlicerColorGUI::NACLabel [protected]

Acknowledgement icons

Referenced by BuildGUI(), vtkSlicerColorGUI(), and ~vtkSlicerColorGUI().

vtkKWLabel* vtkSlicerColorGUI::NAMICLabel [protected]
vtkKWLabel* vtkSlicerColorGUI::NCIGTLabel [protected]

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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1