Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMRMLAnnotationControlPointsNode Class Reference

#include <Modules/Loadable/Annotations/MRML/vtkMRMLAnnotationControlPointsNode.h>

Inheritance diagram for vtkMRMLAnnotationControlPointsNode:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLAnnotationControlPointsNode:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { ControlPointModifiedEvent = 19010 }
enum  { CP_SELECTED = vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES, CP_VISIBLE, NUM_CP_ATTRIBUTE_TYPES }
enum  NumberingSchemes {
  SchemeMin = 0, UseID = SchemeMin, UseIndex, UsePrevious,
  SchemeMax = UsePrevious
}
 flags to determine how the next fiducial added to the list is labelled More...
typedef vtkMRMLAnnotationNode Superclass

Public Member Functions

int AddControlPoint (double newControl[3], int selectedFlag, int visibleFlag)
virtual void Copy (vtkMRMLNode *node)
 Copy the node's attributes to this object.
void CreateAnnotationPointDisplayNode ()
virtual vtkMRMLStorageNodeCreateDefaultStorageNode ()
virtual vtkMRMLNodeCreateNodeInstance ()
 MRMLNode methods.
void DeleteControlPoint (int id)
vtkMRMLAnnotationPointDisplayNodeGetAnnotationPointDisplayNode ()
const char * GetAttributeTypesEnumAsString (int val)
virtual const char * GetClassName ()
double * GetControlPointCoordinates (vtkIdType id)
void GetControlPointWorldCoordinates (vtkIdType id, double *point)
virtual const char * GetNodeTagName ()
 Get node XML tag name (like Volume, Model)
virtual int GetNumberingScheme ()
const char * GetNumberingSchemeAsString (int g)
const char * GetNumberingSchemeAsString ()
 Return a string representing the numbering scheme, set it from a string.
int GetNumberOfControlPoints ()
virtual void Initialize (vtkMRMLScene *mrmlScene)
virtual int InvokePendingModifiedEvent ()
virtual int IsA (const char *type)
virtual void Modified ()
virtual void PrintAnnotationInfo (ostream &os, vtkIndent indent, int titleFlag=1)
virtual void ProcessMRMLEvents (vtkObject *, unsigned long, void *)
 alternative method to propagate events generated in Display nodes
virtual void ReadXMLAttributes (const char **atts)
virtual void ResetAnnotations ()
int SetControlPoint (int id, double newControl[3], int selectedFlag, int visibleFlag)
int SetControlPoint (int id, double newControl[3])
int SetControlPointWorldCoordinates (int id, double newControl[3], int selectedFlag, int visibleFlag)
int SetControlPointWorldCoordinates (int id, double newControl[3])
virtual void SetNumberingScheme (int numberingScheme)
 Flag determining how to number the next added fiducial.
void SetNumberingSchemeFromString (const char *schemeString)
void UpdateScene (vtkMRMLScene *scene)
virtual void WriteCLI (std::ostringstream &ss, std::string prefix)
virtual void WriteXML (ostream &of, int indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkMRMLAnnotationControlPointsNode
New ()
static
vtkMRMLAnnotationControlPointsNode
SafeDownCast (vtkObject *o)

Protected Member Functions

void CreatePolyData ()
void operator= (const vtkMRMLAnnotationControlPointsNode &)
void ResetControlPoints ()
void ResetControlPointsAttributesAll ()
 vtkMRMLAnnotationControlPointsNode ()
 vtkMRMLAnnotationControlPointsNode (const vtkMRMLAnnotationControlPointsNode &)
 ~vtkMRMLAnnotationControlPointsNode ()

Protected Attributes

int NumberingScheme
 How the next annotation will be numbered in it's Text field.

Detailed Description

Definition at line 17 of file vtkMRMLAnnotationControlPointsNode.h.


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
ControlPointModifiedEvent 

Definition at line 62 of file vtkMRMLAnnotationControlPointsNode.h.

anonymous enum
Enumerator:
CP_SELECTED 
CP_VISIBLE 
NUM_CP_ATTRIBUTE_TYPES 

Definition at line 118 of file vtkMRMLAnnotationControlPointsNode.h.

flags to determine how the next fiducial added to the list is labelled

Enumerator:
SchemeMin 
UseID 
UseIndex 
UsePrevious 
SchemeMax 

Definition at line 137 of file vtkMRMLAnnotationControlPointsNode.h.


Constructor & Destructor Documentation

vtkMRMLAnnotationControlPointsNode::vtkMRMLAnnotationControlPointsNode ( ) [protected]
vtkMRMLAnnotationControlPointsNode::~vtkMRMLAnnotationControlPointsNode ( ) [inline, protected]

Definition at line 160 of file vtkMRMLAnnotationControlPointsNode.h.

vtkMRMLAnnotationControlPointsNode::vtkMRMLAnnotationControlPointsNode ( const vtkMRMLAnnotationControlPointsNode ) [protected]

Member Function Documentation

int vtkMRMLAnnotationControlPointsNode::AddControlPoint ( double  newControl[3],
int  selectedFlag,
int  visibleFlag 
)
virtual void vtkMRMLAnnotationControlPointsNode::Copy ( vtkMRMLNode node) [inline, virtual]
void vtkMRMLAnnotationControlPointsNode::CreateAnnotationPointDisplayNode ( )
virtual vtkMRMLStorageNode* vtkMRMLAnnotationControlPointsNode::CreateDefaultStorageNode ( ) [virtual]

Create a storage node for this node type or NULL if it doesn't have one. Null by default. This must be overwritten by subclasses that use storage nodes.

Reimplemented from vtkMRMLAnnotationNode.

Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.

virtual vtkMRMLNode* vtkMRMLAnnotationControlPointsNode::CreateNodeInstance ( ) [virtual]
void vtkMRMLAnnotationControlPointsNode::CreatePolyData ( ) [protected]

Reimplemented from vtkMRMLAnnotationNode.

Reimplemented in vtkMRMLAnnotationLinesNode.

void vtkMRMLAnnotationControlPointsNode::DeleteControlPoint ( int  id)
vtkMRMLAnnotationPointDisplayNode* vtkMRMLAnnotationControlPointsNode::GetAnnotationPointDisplayNode ( )
const char* vtkMRMLAnnotationControlPointsNode::GetAttributeTypesEnumAsString ( int  val) [virtual]

Reimplemented from vtkMRMLAnnotationNode.

Reimplemented in vtkMRMLAnnotationLinesNode.

virtual const char* vtkMRMLAnnotationControlPointsNode::GetClassName ( ) [virtual]
double* vtkMRMLAnnotationControlPointsNode::GetControlPointCoordinates ( vtkIdType  id)

Return the RAS coordinates of point ID. Try to limit calling this function because it is performance critical. Also, when queried again it resets all former pointers. Copying is therefore necessary.

void vtkMRMLAnnotationControlPointsNode::GetControlPointWorldCoordinates ( vtkIdType  id,
double *  point 
)
virtual const char* vtkMRMLAnnotationControlPointsNode::GetNodeTagName ( ) [inline, virtual]
virtual int vtkMRMLAnnotationControlPointsNode::GetNumberingScheme ( ) [virtual]
const char* vtkMRMLAnnotationControlPointsNode::GetNumberingSchemeAsString ( )

Return a string representing the numbering scheme, set it from a string.

const char* vtkMRMLAnnotationControlPointsNode::GetNumberingSchemeAsString ( int  g)
int vtkMRMLAnnotationControlPointsNode::GetNumberOfControlPoints ( )
virtual void vtkMRMLAnnotationControlPointsNode::Initialize ( vtkMRMLScene mrmlScene) [virtual]
virtual int vtkMRMLAnnotationControlPointsNode::InvokePendingModifiedEvent ( ) [inline, virtual]

Invokes any modified events that are 'pending', meaning they were generated while the DisableModifiedEvent flag was nonzero. Returns the old flag state.

Reimplemented from vtkMRMLNode.

Definition at line 81 of file vtkMRMLAnnotationControlPointsNode.h.

virtual int vtkMRMLAnnotationControlPointsNode::IsA ( const char *  type) [virtual]
static int vtkMRMLAnnotationControlPointsNode::IsTypeOf ( const char *  type) [static]
virtual void vtkMRMLAnnotationControlPointsNode::Modified ( ) [inline, virtual]

overrides the vtkObject method so that all changes to the node which would normally generate a ModifiedEvent can be grouped into an 'atomic' operation. Typical usage would be to disable modified events, call a series of Set* operations, and then re-enable modified events and call InvokePendingModifiedEvent to invoke the event (if any of the Set* calls actually changed the values of the instance variables).

Reimplemented from vtkMRMLNode.

Definition at line 67 of file vtkMRMLAnnotationControlPointsNode.h.

static vtkMRMLAnnotationControlPointsNode* vtkMRMLAnnotationControlPointsNode::New ( ) [static]
void vtkMRMLAnnotationControlPointsNode::operator= ( const vtkMRMLAnnotationControlPointsNode ) [protected]
virtual void vtkMRMLAnnotationControlPointsNode::PrintAnnotationInfo ( ostream &  os,
vtkIndent  indent,
int  titleFlag = 1 
) [virtual]
virtual void vtkMRMLAnnotationControlPointsNode::ProcessMRMLEvents ( vtkObject *  ,
unsigned  long,
void *   
) [virtual]
virtual void vtkMRMLAnnotationControlPointsNode::ReadXMLAttributes ( const char **  atts) [virtual]
virtual void vtkMRMLAnnotationControlPointsNode::ResetAnnotations ( ) [virtual]

Reimplemented from vtkMRMLAnnotationNode.

Reimplemented in vtkMRMLAnnotationLinesNode.

void vtkMRMLAnnotationControlPointsNode::ResetControlPoints ( ) [protected]
void vtkMRMLAnnotationControlPointsNode::ResetControlPointsAttributesAll ( ) [protected]
static vtkMRMLAnnotationControlPointsNode* vtkMRMLAnnotationControlPointsNode::SafeDownCast ( vtkObject *  o) [static]
int vtkMRMLAnnotationControlPointsNode::SetControlPoint ( int  id,
double  newControl[3] 
)
int vtkMRMLAnnotationControlPointsNode::SetControlPoint ( int  id,
double  newControl[3],
int  selectedFlag,
int  visibleFlag 
)

Reimplemented in vtkMRMLAnnotationLinesNode.

int vtkMRMLAnnotationControlPointsNode::SetControlPointWorldCoordinates ( int  id,
double  newControl[3] 
)
int vtkMRMLAnnotationControlPointsNode::SetControlPointWorldCoordinates ( int  id,
double  newControl[3],
int  selectedFlag,
int  visibleFlag 
)

Reimplemented in vtkMRMLAnnotationLinesNode.

virtual void vtkMRMLAnnotationControlPointsNode::SetNumberingScheme ( int  numberingScheme) [virtual]

Flag determining how to number the next added fiducial.

void vtkMRMLAnnotationControlPointsNode::SetNumberingSchemeFromString ( const char *  schemeString)
void vtkMRMLAnnotationControlPointsNode::UpdateScene ( vtkMRMLScene scene) [virtual]
virtual void vtkMRMLAnnotationControlPointsNode::WriteCLI ( std::ostringstream &  ss,
std::string  prefix 
) [virtual]

Write this node's information to a string for passing to a CLI, write out the prefix before each datum

virtual void vtkMRMLAnnotationControlPointsNode::WriteXML ( ostream &  of,
int  indent 
) [virtual]

Member Data Documentation

How the next annotation will be numbered in it's Text field.

Definition at line 177 of file vtkMRMLAnnotationControlPointsNode.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines