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
vtkMRMLAnnotationNode Class Reference

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

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

List of all members.

Public Types

enum  { TEXT_SELECTED = 0, TEXT_VISIBLE, NUM_TEXT_ATTRIBUTE_TYPES, LockModifiedEvent }
typedef vtkMRMLModelNode Superclass

Public Member Functions

int AddText (const char *newText, int selectedFlag, int visibleFlag)
void ClearBackup ()
virtual void Copy (vtkMRMLNode *node)
 Copy the node's attributes to this object.
void CreateAnnotationTextDisplayNode ()
void CreateBackup ()
 Creates a backup of the current MRML state of this node and keeps a reference.
virtual vtkMRMLStorageNodeCreateDefaultStorageNode ()
virtual vtkMRMLNodeCreateNodeInstance ()
 MRMLNode methods.
int DeleteAttribute (vtkIdType idAttEntry, vtkIdType idAttType)
int DeleteText (int id)
int GetAnnotationAttribute (vtkIdType id, int att)
vtkDataArray * GetAnnotationAttributes (int att)
vtkMRMLAnnotationTextDisplayNodeGetAnnotationTextDisplayNode ()
virtual const char * GetAttributeTypesEnumAsString (int val)
vtkMRMLAnnotationNodeGetBackup ()
 Returns the associated backup of this node.
virtual const char * GetClassName ()
virtual const char * GetIcon ()
virtual int GetLocked ()
virtual const char * GetNodeTagName ()
 Get node XML tag name (like Volume, Model)
int GetNumberOfTexts ()
virtual char * GetReferenceNodeID ()
vtkStdString GetText (int id)
double GetTextScale ()
 Get the text scale of the associated text.
virtual void Initialize (vtkMRMLScene *mrmlScene)
virtual int IsA (const char *type)
virtual void PrintAnnotationInfo (ostream &os, vtkIndent indent, int titleFlag=1)
void PrintSelf (ostream &os, vtkIndent indent)
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 ()
void RestoreBackup ()
 Restore an attached backup of this node.
void RestoreView ()
 Restores a previously saved view.
void SaveView ()
 Saves the current view.
void SetAnnotationAttribute (vtkIdType id, int att, double value)
void SetLocked (int init)
virtual void SetReferenceNodeID (const char *)
void SetText (int id, const char *newText, int selectedFlag, int visibleFlag)
void SetTextScale (double textScale)
 Set the text scale of the associated text.
void UpdateScene (vtkMRMLScene *scene)
virtual void WriteXML (ostream &of, int indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkMRMLAnnotationNodeNew ()
static vtkMRMLAnnotationNodeSafeDownCast (vtkObject *o)

Protected Member Functions

void CreatePolyData ()
vtkCellArray * GetLines ()
vtkPoints * GetPoints ()
void operator= (const vtkMRMLAnnotationNode &)
void ResetAttributes (int id)
void ResetTextAttributesAll ()
void SetAttributeSize (vtkIdType id, vtkIdType n)
 vtkMRMLAnnotationNode ()
 vtkMRMLAnnotationNode (const vtkMRMLAnnotationNode &)
 ~vtkMRMLAnnotationNode ()

Protected Attributes

int Locked
vtkMRMLAnnotationNodem_Backup
vtkSmartPointer
< vtkMRMLCameraNode
m_CameraNode
vtkSmartPointer< vtkMRMLSliceNodem_GreenSliceNode
vtkSmartPointer< vtkMRMLSliceNodem_RedSliceNode
vtkSmartPointer< vtkMRMLSliceNodem_YellowSliceNode
char * ReferenceNodeID
vtkStringArray * TextList

Detailed Description

Definition at line 28 of file vtkMRMLAnnotationNode.h.


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
TEXT_SELECTED 
TEXT_VISIBLE 
NUM_TEXT_ATTRIBUTE_TYPES 
LockModifiedEvent 

Definition at line 83 of file vtkMRMLAnnotationNode.h.


Constructor & Destructor Documentation

vtkMRMLAnnotationNode::vtkMRMLAnnotationNode ( ) [protected]
vtkMRMLAnnotationNode::~vtkMRMLAnnotationNode ( ) [protected]
vtkMRMLAnnotationNode::vtkMRMLAnnotationNode ( const vtkMRMLAnnotationNode ) [protected]

Member Function Documentation

int vtkMRMLAnnotationNode::AddText ( const char *  newText,
int  selectedFlag,
int  visibleFlag 
)
void vtkMRMLAnnotationNode::ClearBackup ( )
virtual void vtkMRMLAnnotationNode::Copy ( vtkMRMLNode node) [virtual]
void vtkMRMLAnnotationNode::CreateAnnotationTextDisplayNode ( )
void vtkMRMLAnnotationNode::CreateBackup ( )

Creates a backup of the current MRML state of this node and keeps a reference.

virtual vtkMRMLStorageNode* vtkMRMLAnnotationNode::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 vtkMRMLModelNode.

Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationControlPointsNode, vtkMRMLAnnotationLinesNode, vtkMRMLAnnotationRulerNode, and vtkMRMLAnnotationSnapshotNode.

virtual vtkMRMLNode* vtkMRMLAnnotationNode::CreateNodeInstance ( ) [virtual]
void vtkMRMLAnnotationNode::CreatePolyData ( ) [protected]
int vtkMRMLAnnotationNode::DeleteAttribute ( vtkIdType  idAttEntry,
vtkIdType  idAttType 
)
int vtkMRMLAnnotationNode::DeleteText ( int  id)
int vtkMRMLAnnotationNode::GetAnnotationAttribute ( vtkIdType  id,
int  att 
)
vtkDataArray* vtkMRMLAnnotationNode::GetAnnotationAttributes ( int  att)
vtkMRMLAnnotationTextDisplayNode* vtkMRMLAnnotationNode::GetAnnotationTextDisplayNode ( )
virtual const char* vtkMRMLAnnotationNode::GetAttributeTypesEnumAsString ( int  val) [virtual]
vtkMRMLAnnotationNode* vtkMRMLAnnotationNode::GetBackup ( )

Returns the associated backup of this node.

virtual const char* vtkMRMLAnnotationNode::GetClassName ( ) [virtual]
virtual const char* vtkMRMLAnnotationNode::GetIcon ( ) [inline, virtual]
vtkCellArray* vtkMRMLAnnotationNode::GetLines ( ) [protected]
virtual int vtkMRMLAnnotationNode::GetLocked ( ) [virtual]

If set to 1 then parameters should not be changed. Fires vtkMRMLAnnotationNode::LockModifiedEvent if changed except if GetDisableModifiedEvent() is true.

virtual const char* vtkMRMLAnnotationNode::GetNodeTagName ( ) [inline, virtual]
int vtkMRMLAnnotationNode::GetNumberOfTexts ( )
vtkPoints* vtkMRMLAnnotationNode::GetPoints ( ) [protected]
virtual char* vtkMRMLAnnotationNode::GetReferenceNodeID ( ) [virtual]
vtkStdString vtkMRMLAnnotationNode::GetText ( int  id)
double vtkMRMLAnnotationNode::GetTextScale ( )

Get the text scale of the associated text.

virtual void vtkMRMLAnnotationNode::Initialize ( vtkMRMLScene mrmlScene) [virtual]
virtual int vtkMRMLAnnotationNode::IsA ( const char *  type) [virtual]
static int vtkMRMLAnnotationNode::IsTypeOf ( const char *  type) [static]
static vtkMRMLAnnotationNode* vtkMRMLAnnotationNode::New ( ) [static]
void vtkMRMLAnnotationNode::operator= ( const vtkMRMLAnnotationNode ) [protected]
virtual void vtkMRMLAnnotationNode::PrintAnnotationInfo ( ostream &  os,
vtkIndent  indent,
int  titleFlag = 1 
) [virtual]
void vtkMRMLAnnotationNode::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Reimplemented from vtkMRMLModelNode.

virtual void vtkMRMLAnnotationNode::ProcessMRMLEvents ( vtkObject *  ,
unsigned  long,
void *   
) [virtual]
virtual void vtkMRMLAnnotationNode::ReadXMLAttributes ( const char **  atts) [virtual]
virtual void vtkMRMLAnnotationNode::ResetAnnotations ( ) [virtual]
void vtkMRMLAnnotationNode::ResetAttributes ( int  id) [protected]
void vtkMRMLAnnotationNode::ResetTextAttributesAll ( ) [protected]
void vtkMRMLAnnotationNode::RestoreBackup ( )

Restore an attached backup of this node.

void vtkMRMLAnnotationNode::RestoreView ( )

Restores a previously saved view.

static vtkMRMLAnnotationNode* vtkMRMLAnnotationNode::SafeDownCast ( vtkObject *  o) [static]
void vtkMRMLAnnotationNode::SaveView ( )

Saves the current view.

void vtkMRMLAnnotationNode::SetAnnotationAttribute ( vtkIdType  id,
int  att,
double  value 
)
void vtkMRMLAnnotationNode::SetAttributeSize ( vtkIdType  id,
vtkIdType  n 
) [protected]
void vtkMRMLAnnotationNode::SetLocked ( int  init)
virtual void vtkMRMLAnnotationNode::SetReferenceNodeID ( const char *  ) [virtual]
void vtkMRMLAnnotationNode::SetText ( int  id,
const char *  newText,
int  selectedFlag,
int  visibleFlag 
)
void vtkMRMLAnnotationNode::SetTextScale ( double  textScale)

Set the text scale of the associated text.

void vtkMRMLAnnotationNode::UpdateScene ( vtkMRMLScene scene) [virtual]
virtual void vtkMRMLAnnotationNode::WriteXML ( ostream &  of,
int  indent 
) [virtual]

Member Data Documentation

Definition at line 165 of file vtkMRMLAnnotationNode.h.

Definition at line 167 of file vtkMRMLAnnotationNode.h.

Definition at line 172 of file vtkMRMLAnnotationNode.h.

Definition at line 171 of file vtkMRMLAnnotationNode.h.

Definition at line 169 of file vtkMRMLAnnotationNode.h.

Definition at line 170 of file vtkMRMLAnnotationNode.h.

Definition at line 163 of file vtkMRMLAnnotationNode.h.

vtkStringArray* vtkMRMLAnnotationNode::TextList [protected]

Definition at line 162 of file vtkMRMLAnnotationNode.h.


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