vtkSlicerParameterWidget Class Reference

#include <vtkSlicerParameterWidget.h>

Inheritance diagram for vtkSlicerParameterWidget:
vtkKWObject

List of all members.

Classes

struct  callBackDataStruct
struct  moduleParameterWidgetStruct
struct  ParameterWidgetChangedStruct

Public Types

enum  { ParameterWidgetChangedEvent = 10000 }
enum  { PARAMETER_WIDGET_ERR = -1, PARAMETER_WIDGET_FAIL = 0, PARAMETER_WIDGET_SUCC = 1 }

Public Member Functions

int CreateWidgets ()
int currentIndex ()
bool end ()
std::vector< ModuleParameter > * GetCurrentParameters ()
vtkMRMLNodeGetMRMLNode ()
vtkKWWidget * GetNextWidget ()
std::string GetValueByName (std::string name)
bool IsCreated ()
void reset ()
void SetErrorMap (std::map< std::string, std::string > *errorMap)
void SetModuleDescription (ModuleDescription *modDescription)
void SetMRMLNode (vtkMRMLNode *mrmlNode)
void SetParent (vtkKWWidget *parent)
void SetSlicerModuleLogic (vtkSlicerModuleLogic *logic)
void SetWidgetID (std::string ID)
int size ()
 vtkTypeMacro (vtkSlicerParameterWidget, vtkKWObject)

Static Public Member Functions

static vtkSlicerParameterWidgetNew ()

Protected Member Functions

void AddGUIObservers ()
void AddParameterAndEventToWidget (vtkKWCoreWidget *parentWidget, ModuleParameter widgetParameter)
void copyModuleParameters (const ModuleParameter &from, const ModuleParameter &to)
void DeleteInputWidget (vtkKWWidget *widg)
void DeleteInternalLists ()
const charGetAttributeName (std::string name)
std::string GetErrorByParamName (std::string name)
const charGetValueFromWidget (vtkKWWidget *widg)
 vtkCallbackCommand *GUIChangedCallbackCommand;
void Initialize ()
void SetValueForWidget (vtkKWCoreWidget *widg, const char *value)
void UpdateMRMLForWidget (vtkKWCoreWidget *parentWidget, ModuleParameter widgetParameter)
 vtkSlicerParameterWidget ()
virtual ~vtkSlicerParameterWidget ()

Static Protected Member Functions

static void GUIChangedCallback (vtkObject *__caller, unsigned long eid, void *__clientData, void *callData)

Private Attributes

bool m_Created
int m_CurrentIndex
std::string m_curWidgetLabel
 std::map<vtkKWCoreWidget*, ModuleParameter> *m_internalWidgetToParamMap;
bool m_End
std::vector
< moduleParameterWidgetStruct * >
::iterator 
m_InternalIterator
std::vector
< moduleParameterWidgetStruct * > * 
m_InternalWidgetParamList
ModuleDescriptionm_ModuleDescription
vtkSlicerModuleLogicm_ModuleLogic
vtkMRMLNodem_MRMLNode
std::map< std::string,
std::string > * 
m_paramToErrorMap
vtkKWWidget * m_ParentWidget
std::string m_widgID

Member Enumeration Documentation

anonymous enum
Enumerator:
ParameterWidgetChangedEvent 
anonymous enum
Enumerator:
PARAMETER_WIDGET_ERR 
PARAMETER_WIDGET_FAIL 
PARAMETER_WIDGET_SUCC 

Constructor & Destructor Documentation

vtkSlicerParameterWidget::vtkSlicerParameterWidget (  )  [protected]
vtkSlicerParameterWidget::~vtkSlicerParameterWidget (  )  [protected, virtual]

Member Function Documentation

void vtkSlicerParameterWidget::AddGUIObservers ( void   )  [protected]
void vtkSlicerParameterWidget::AddParameterAndEventToWidget ( vtkKWCoreWidget *  parentWidget,
ModuleParameter  widgetParameter 
) [protected]
void vtkSlicerParameterWidget::copyModuleParameters ( const ModuleParameter from,
const ModuleParameter to 
) [protected]
int vtkSlicerParameterWidget::CreateWidgets (  ) 
int vtkSlicerParameterWidget::currentIndex (  ) 

References m_CurrentIndex.

void vtkSlicerParameterWidget::DeleteInputWidget ( vtkKWWidget *  widg  )  [protected]

Referenced by DeleteInternalLists().

void vtkSlicerParameterWidget::DeleteInternalLists (  )  [protected]
bool vtkSlicerParameterWidget::end (  ) 

References m_End.

Referenced by GetCurrentParameters().

const char * vtkSlicerParameterWidget::GetAttributeName ( std::string  name  )  [protected]

References m_widgID.

Referenced by GetValueByName(), and UpdateMRMLForWidget().

std::vector< ModuleParameter > * vtkSlicerParameterWidget::GetCurrentParameters (  ) 

References end(), and m_InternalIterator.

std::string vtkSlicerParameterWidget::GetErrorByParamName ( std::string  name  )  [protected]

References m_paramToErrorMap.

Referenced by CreateWidgets().

vtkMRMLNode * vtkSlicerParameterWidget::GetMRMLNode (  ) 
vtkKWWidget * vtkSlicerParameterWidget::GetNextWidget (  ) 
std::string vtkSlicerParameterWidget::GetValueByName ( std::string  name  ) 
const char * vtkSlicerParameterWidget::GetValueFromWidget ( vtkKWWidget *  widg  )  [protected]

vtkCallbackCommand *GUIChangedCallbackCommand;

References vtkSlicerNodeSelectorWidget::GetSelected().

static void vtkSlicerParameterWidget::GUIChangedCallback ( vtkObject __caller,
unsigned long  eid,
void *  __clientData,
void *  callData 
) [static, protected]

Callback routine that is used for creating a new node. This method is needed to avoid recursive calls to GUICallback()

Referenced by AddParameterAndEventToWidget().

void vtkSlicerParameterWidget::Initialize ( void   )  [protected]
bool vtkSlicerParameterWidget::IsCreated (  ) 

References m_Created.

Referenced by GetNextWidget(), and size().

static vtkSlicerParameterWidget* vtkSlicerParameterWidget::New (  )  [static]
void vtkSlicerParameterWidget::reset (  ) 

References m_CurrentIndex, and m_End.

void vtkSlicerParameterWidget::SetErrorMap ( std::map< std::string, std::string > *  errorMap  ) 

References m_paramToErrorMap.

void vtkSlicerParameterWidget::SetModuleDescription ( ModuleDescription modDescription  ) 

References m_ModuleDescription.

void vtkSlicerParameterWidget::SetMRMLNode ( vtkMRMLNode mrmlNode  ) 

References m_MRMLNode.

void vtkSlicerParameterWidget::SetParent ( vtkKWWidget *  parent  ) 

References m_ParentWidget.

void vtkSlicerParameterWidget::SetSlicerModuleLogic ( vtkSlicerModuleLogic logic  ) 

References m_ModuleLogic.

void vtkSlicerParameterWidget::SetValueForWidget ( vtkKWCoreWidget *  widg,
const char value 
) [protected]
void vtkSlicerParameterWidget::SetWidgetID ( std::string  ID  ) 

References m_widgID.

int vtkSlicerParameterWidget::size (  ) 
void vtkSlicerParameterWidget::UpdateMRMLForWidget ( vtkKWCoreWidget *  parentWidget,
ModuleParameter  widgetParameter 
) [protected]

create new attribute for the widget in the mrml node or get the value from the node

References vtkMRMLNode::GetAttribute(), GetAttributeName(), ModuleParameter::GetDefault(), GetMRMLNode(), ModuleParameter::GetName(), vtkMRMLNode::SetAttribute(), and SetValueForWidget().

Referenced by CreateWidgets().

vtkSlicerParameterWidget::vtkTypeMacro ( vtkSlicerParameterWidget  ,
vtkKWObject   
)

Member Data Documentation

std::map<vtkKWCoreWidget*, ModuleParameter> *m_internalWidgetToParamMap;

std::map<std::string, std::string>* vtkSlicerParameterWidget::m_paramToErrorMap [private]
std::string vtkSlicerParameterWidget::m_widgID [private]

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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1