SignElement Class Reference

#include <SignElement.h>

Inheritance diagram for SignElement:

Inheritance graph
[legend]
Collaboration diagram for SignElement:

Collaboration graph
[legend]
List of all members.

Detailed Description

SuperClass for workflow elements.

Author:
Eigil Samset


Public Member Functions

 vtkTypeRevisionMacro (SignElement, vtkObject)
void SetContext (SignContext *)
 Sets the SIGN context.
bool CheckInputs ()
 Checks the inputs of this element to determine if it can be activated.
virtual bool ActivateElement ()=0
 Activates the element.
virtual bool DeActivateElement ()
 Deactivates the element.
void AddInput (SignElement *element, bool status=false)
 Adds an input that has to be complete before this element can be activated.
void AddToDeactivateList (SignElement *element)
 Adds an element that will be deactivated when this element is activated.
bool IsActive ()
 Returns if this element is active.
bool IsCheckPoint ()
 Returns if this element is a check point.
void IsCheckPoint (bool val)
 Sets this element to be a check point or not.
std::string GetTitle ()
 Gets the GUI name of the element.
void SetTitle (std::string title_)
 Sets the GUI name of the element.
SignCompositeWidgetGetWidget ()
 Gets the widget that belongs to the element.

Protected Member Functions

 SignElement ()
 ~SignElement ()
void Complete ()
void DeComplete ()
 SignElement (const SignElement &)
void operator= (const SignElement &)

Static Protected Member Functions

static void OnElementReady (vtkObject *caller, unsigned long event, void *data, void *calldata)
static void OnElementNotReady (vtkObject *caller, unsigned long event, void *data, void *calldata)

Protected Attributes

SignContextcontext
bool active
SignCompositeWidgetwidget
bool ischeckpoint

Friends

class SignElementPreviousButton


Constructor & Destructor Documentation

SignElement::SignElement  )  [protected]
 

SignElement::~SignElement  )  [protected]
 

SignElement::SignElement const SignElement  )  [protected]
 


Member Function Documentation

virtual bool SignElement::ActivateElement  )  [pure virtual]
 

Activates the element.

Implemented in SignElementAcquireFiducials, SignElementCalibrateTool, SignElementCheckpoint, SignElementControlLines, SignElementDICOMServer, SignElementIdentifyFiducials, SignElementNavigate, SignElementNextButton, SignElementPreviousButton, SignElementPushButton, SignElementRegistration, and SignElementWriteState.

void SignElement::AddInput SignElement element,
bool  status = false
 

Adds an input that has to be complete before this element can be activated.

void SignElement::AddToDeactivateList SignElement element  ) 
 

Adds an element that will be deactivated when this element is activated.

bool SignElement::CheckInputs  ) 
 

Checks the inputs of this element to determine if it can be activated.

void SignElement::Complete  )  [protected]
 

virtual bool SignElement::DeActivateElement  )  [inline, virtual]
 

Deactivates the element.

Reimplemented in SignElementAcquireFiducials, SignElementCalibrateTool, SignElementCheckpoint, SignElementControlLines, SignElementDICOMServer, SignElementIdentifyFiducials, SignElementNavigate, SignElementNextButton, SignElementPreviousButton, SignElementPushButton, SignElementRegistration, and SignElementWriteState.

void SignElement::DeComplete  )  [protected]
 

std::string SignElement::GetTitle  ) 
 

Gets the GUI name of the element.

SignCompositeWidget * SignElement::GetWidget  ) 
 

Gets the widget that belongs to the element.

bool SignElement::IsActive  ) 
 

Returns if this element is active.

void SignElement::IsCheckPoint bool  val  ) 
 

Sets this element to be a check point or not.

bool SignElement::IsCheckPoint  ) 
 

Returns if this element is a check point.

void SignElement::OnElementNotReady vtkObject *  caller,
unsigned long  event,
void *  data,
void *  calldata
[static, protected]
 

void SignElement::OnElementReady vtkObject *  caller,
unsigned long  event,
void *  data,
void *  calldata
[static, protected]
 

void SignElement::operator= const SignElement  )  [protected]
 

void SignElement::SetContext SignContext  ) 
 

Sets the SIGN context.

void SignElement::SetTitle std::string  title_  ) 
 

Sets the GUI name of the element.

SignElement::vtkTypeRevisionMacro SignElement  ,
vtkObject 
 


Friends And Related Function Documentation

friend class SignElementPreviousButton [friend]
 


Member Data Documentation

bool SignElement::active [protected]
 

SignContext* SignElement::context [protected]
 

bool SignElement::ischeckpoint [protected]
 

SignCompositeWidget* SignElement::widget [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon Feb 26 12:13:03 2007 for TheSIGN by  doxygen 1.4.6