#include <vtkMRMLAnnotationControlPointsNode.h>
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... | |
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 vtkMRMLStorageNode * | CreateDefaultStorageNode () |
| virtual vtkMRMLNode * | CreateNodeInstance () |
| MRMLNode methods. | |
| void | DeleteControlPoint (int id) |
| vtkMRMLAnnotationPointDisplayNode * | GetAnnotationPointDisplayNode () |
| const char * | GetAttributeTypesEnumAsString (int val) |
| double * | GetControlPointCoordinates (vtkIdType id) |
| virtual const char * | GetNodeTagName () |
| const char * | GetNumberingSchemeAsString (int g) |
| const char * | GetNumberingSchemeAsString () |
| Return a string representing the numbering scheme, set it from a string. | |
| int | GetNumberOfControlPoints () |
| virtual void | PrintAnnotationInfo (ostream &os, vtkIndent indent, int titleFlag=1) |
| virtual void | ProcessMRMLEvents (vtkObject *, unsigned long, void *) |
| virtual void | ReadXMLAttributes (const char **atts) |
| virtual void | ResetAnnotations () |
| int | SetControlPoint (int id, double newControl[3], int selectedFlag, int visibleFlag) |
| void | SetNumberingSchemeFromString (const char *schemeString) |
| void | UpdateScene (vtkMRMLScene *scene) |
| vtkGetMacro (NumberingScheme, int) | |
| vtkSetMacro (NumberingScheme, int) | |
| Flag determining how to number the next added fiducial. | |
| vtkTypeMacro (vtkMRMLAnnotationControlPointsNode, vtkMRMLAnnotationNode) | |
| virtual void | WriteXML (ostream &of, int indent) |
Static Public Member Functions | |
| static vtkMRMLAnnotationControlPointsNode * | New () |
Protected Member Functions | |
| void | CreatePolyData () |
| void | operator= (const vtkMRMLAnnotationControlPointsNode &) |
| void | ResetControlPoints () |
| void | ResetControlPointsAttributesAll () |
| vtkMRMLAnnotationControlPointsNode (const vtkMRMLAnnotationControlPointsNode &) | |
| vtkMRMLAnnotationControlPointsNode () | |
| ~vtkMRMLAnnotationControlPointsNode () | |
Protected Attributes | |
| int | NumberingScheme |
| How the next annotation will be numbered in it's Text field. | |
| vtkMRMLAnnotationControlPointsNode::vtkMRMLAnnotationControlPointsNode | ( | ) | [protected] |
References NumberingScheme, and UseID.
| vtkMRMLAnnotationControlPointsNode::~vtkMRMLAnnotationControlPointsNode | ( | ) | [inline, protected] |
| vtkMRMLAnnotationControlPointsNode::vtkMRMLAnnotationControlPointsNode | ( | const vtkMRMLAnnotationControlPointsNode & | ) | [protected] |
| int vtkMRMLAnnotationControlPointsNode::AddControlPoint | ( | double | newControl[3], | |
| int | selectedFlag, | |||
| int | visibleFlag | |||
| ) |
Reimplemented in vtkMRMLAnnotationAngleNode, and vtkMRMLAnnotationRulerNode.
References mathExample::n, vtkMRMLDisplayableNode::PolyData, ResetControlPoints(), and SetControlPoint().
Referenced by vtkMRMLAnnotationControlPointsStorageNode::ReadAnnotationControlPointsData(), ReadXMLAttributes(), and SetControlPointsAndText().
| virtual void vtkMRMLAnnotationControlPointsNode::Copy | ( | vtkMRMLNode * | node | ) | [inline, virtual] |
Copy the node's attributes to this object.
Description:
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
| void vtkMRMLAnnotationControlPointsNode::CreateAnnotationPointDisplayNode | ( | ) |
References vtkMRMLDisplayableNode::AddAndObserveDisplayNodeID(), vtkMRMLScene::AddNode(), GetAnnotationPointDisplayNode(), vtkMRMLNode::GetScene(), and New().
Referenced by vtkSlicerAnnotationRulerManager::AddPointDiaplayNodeID(), vtkSlicerAnnotationAngleManager::AddPointDiaplayNodeID(), vtkSlicermiAnnotationModuleLogic::GetAnnotationControlPointsPropertiesColor(), vtkSlicermiAnnotationModuleLogic::GetAnnotationControlPointsPropertiesDouble(), vtkMRMLAnnotationRulerNode::Initialize(), vtkMRMLAnnotationAngleNode::Initialize(), SaveControlPoints(), qSlicermiAnnotationModuleAnnotationPropertyDialog::SaveControlPoints(), qSlicermiAnnotationModuleAnnotationPropertyDialog::SaveStateForUndo(), vtkSlicermiAnnotationModuleLogic::SetAnnotationControlPointsProperties(), UndoControlPoints(), and qSlicermiAnnotationModuleAnnotationPropertyDialog::UndoControlPoints().
| vtkMRMLStorageNode * vtkMRMLAnnotationControlPointsNode::CreateDefaultStorageNode | ( | ) | [virtual] |
Create default storage node or NULL if does not have one
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References vtkMRMLAnnotationControlPointsStorageNode::New().
| vtkMRMLNode * vtkMRMLAnnotationControlPointsNode::CreateNodeInstance | ( | void | ) | [virtual] |
MRMLNode methods.
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationFiducialNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References autoSlicerTracto2regions::ret.
| void vtkMRMLAnnotationControlPointsNode::CreatePolyData | ( | ) | [protected] |
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationLinesNode.
References New().
Referenced by ResetControlPoints().
| void vtkMRMLAnnotationControlPointsNode::DeleteControlPoint | ( | int | id | ) |
| vtkMRMLAnnotationPointDisplayNode * vtkMRMLAnnotationControlPointsNode::GetAnnotationPointDisplayNode | ( | ) |
References vtkMRMLDisplayableNode::GetNthDisplayNode(), vtkMRMLDisplayableNode::GetNumberOfDisplayNodes(), and mathExample::n.
Referenced by vtkSlicerAnnotationRulerManager::AddPointDiaplayNodeID(), vtkSlicerAnnotationAngleManager::AddPointDiaplayNodeID(), CreateAnnotationPointDisplayNode(), vtkSlicermiAnnotationModuleLogic::GetAnnotationControlPointsPropertiesColor(), vtkSlicermiAnnotationModuleLogic::GetAnnotationControlPointsPropertiesDouble(), vtkMRMLAnnotationRulerNode::GetPointColour(), vtkMRMLAnnotationAngleNode::GetPointColour(), vtkMRMLAnnotationControlPointsStorageNode::ReadAnnotation(), vtkMRMLAnnotationFiducialsStorageNode::ReadAnnotationFiducialsData(), SaveControlPoints(), qSlicermiAnnotationModuleAnnotationPropertyDialog::SaveControlPoints(), qSlicermiAnnotationModuleAnnotationPropertyDialog::SaveStateForUndo(), vtkSlicermiAnnotationModuleLogic::SetAnnotationControlPointsProperties(), vtkMRMLAnnotationLinesNode::SetControlPoint(), vtkMRMLAnnotationRulerNode::SetPointColour(), vtkMRMLAnnotationAngleNode::SetPointColour(), UndoControlPoints(), qSlicermiAnnotationModuleAnnotationPropertyDialog::UndoControlPoints(), vtkSlicerAnnotationRulerManager::Update3DWidget(), vtkSlicerAnnotationAngleManager::Update3DWidget(), vtkSlicermiAnnotationModuleLogicTest1(), and vtkMRMLAnnotationControlPointsStorageNode::WriteAnnotationControlPointsProperties().
| const char * vtkMRMLAnnotationControlPointsNode::GetAttributeTypesEnumAsString | ( | int | val | ) | [virtual] |
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationLinesNode.
References CP_SELECTED, CP_VISIBLE, and vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES.
Referenced by DeleteControlPoint(), PrintAnnotationInfo(), ReadXMLAttributes(), and WriteXML().
| double * vtkMRMLAnnotationControlPointsNode::GetControlPointCoordinates | ( | vtkIdType | id | ) |
References vtkMRMLDisplayableNode::PolyData.
Referenced by vtkSlicermiAnnotationModuleLogic::GetAnnotationControlPointsCoordinate(), vtkMRMLAnnotationFiducialNode::GetFiducialCoordinates(), vtkMRMLAnnotationRulerNode::GetPosition1(), vtkMRMLAnnotationAngleNode::GetPosition1(), vtkMRMLAnnotationRulerNode::GetPosition2(), vtkMRMLAnnotationAngleNode::GetPosition2(), vtkMRMLAnnotationAngleNode::GetPositionCenter(), and vtkMRMLAnnotationControlPointsStorageNode::WriteAnnotationControlPointsData().
| virtual const char* vtkMRMLAnnotationControlPointsNode::GetNodeTagName | ( | ) | [inline, virtual] |
Get node XML tag name (like Volume, Model)
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationFiducialNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References UseID, UseIndex, and UsePrevious.
| const char * vtkMRMLAnnotationControlPointsNode::GetNumberingSchemeAsString | ( | ) |
Return a string representing the numbering scheme, set it from a string.
References NumberingScheme.
Referenced by PrintAnnotationInfo().
| int vtkMRMLAnnotationControlPointsNode::GetNumberOfControlPoints | ( | ) |
References vtkMRMLDisplayableNode::PolyData, and ResetControlPoints().
Referenced by vtkMRMLAnnotationRulerNode::AddControlPoint(), vtkMRMLAnnotationAngleNode::AddControlPoint(), vtkSlicermiAnnotationModuleLogic::GetAnnotationControlPointsCoordinate(), vtkSlicermiAnnotationModuleLogic::GetNumberOfControlPoints(), vtkSlicermiAnnotationModuleLogic::SetAnnotationControlPointsCoordinate(), vtkMRMLAnnotationRulerNode::SetControlPoint(), vtkMRMLAnnotationAngleNode::SetControlPoint(), and vtkMRMLAnnotationControlPointsStorageNode::WriteAnnotationControlPointsData().
| vtkMRMLAnnotationControlPointsNode * vtkMRMLAnnotationControlPointsNode::New | ( | ) | [static] |
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationFiducialNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References autoSlicerTracto2regions::ret.
Referenced by CreateAnnotationPointDisplayNode(), and CreatePolyData().
| void vtkMRMLAnnotationControlPointsNode::operator= | ( | const vtkMRMLAnnotationControlPointsNode & | ) | [protected] |
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationFiducialNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
| void vtkMRMLAnnotationControlPointsNode::PrintAnnotationInfo | ( | ostream & | os, | |
| vtkIndent | indent, | |||
| int | titleFlag = 1 | |||
| ) | [virtual] |
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References vtkMRMLAnnotationNode::GetAnnotationAttribute(), GetAttributeTypesEnumAsString(), GetNumberingSchemeAsString(), j, mathExample::n, NUM_CP_ATTRIBUTE_TYPES, vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES, NumberingScheme, and vtkMRMLDisplayableNode::PolyData.
Referenced by vtkMRMLAnnotationControlPointsNodeTest1(), and vtkMRMLAnnotationFiducialNodeTest1().
| void vtkMRMLAnnotationControlPointsNode::ProcessMRMLEvents | ( | vtkObject * | caller, | |
| unsigned long | event, | |||
| void * | callData | |||
| ) | [virtual] |
alternative method to propagate events generated in Display nodes
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
| void vtkMRMLAnnotationControlPointsNode::ReadXMLAttributes | ( | const char ** | atts | ) | [virtual] |
Read node attributes from XML file
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References AddControlPoint(), autoSlicerTracto2regions::d, vtkMRMLNode::EndModify(), GetAttributeTypesEnumAsString(), j, NUM_CP_ATTRIBUTE_TYPES, vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES, NumberingScheme, vtkMRMLAnnotationNode::SetAnnotationAttribute(), and vtkMRMLNode::StartModify().
| void vtkMRMLAnnotationControlPointsNode::ResetAnnotations | ( | ) | [virtual] |
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationLinesNode.
References ResetControlPoints().
Referenced by vtkMRMLAnnotationControlPointsStorageNode::ReadData().
| void vtkMRMLAnnotationControlPointsNode::ResetControlPoints | ( | ) | [protected] |
References CreatePolyData(), vtkMRMLDisplayableNode::PolyData, and ResetControlPointsAttributesAll().
Referenced by AddControlPoint(), DeleteControlPoint(), GetNumberOfControlPoints(), ResetAnnotations(), and SetControlPoint().
| void vtkMRMLAnnotationControlPointsNode::ResetControlPointsAttributesAll | ( | ) | [protected] |
References j, NUM_CP_ATTRIBUTE_TYPES, vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES, and vtkMRMLAnnotationNode::ResetAttributes().
Referenced by ResetControlPoints().
| int vtkMRMLAnnotationControlPointsNode::SetControlPoint | ( | int | id, | |
| double | newControl[3], | |||
| int | selectedFlag, | |||
| int | visibleFlag | |||
| ) |
Reimplemented in vtkMRMLAnnotationLinesNode.
References ControlPointModifiedEvent, CP_SELECTED, CP_VISIBLE, j, NUM_CP_ATTRIBUTE_TYPES, vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES, vtkMRMLDisplayableNode::PolyData, ResetControlPoints(), vtkMRMLAnnotationNode::SetAnnotationAttribute(), and vtkMRMLAnnotationNode::SetAttributeSize().
Referenced by AddControlPoint(), vtkSlicermiAnnotationModuleLogic::SetAnnotationControlPointsCoordinate(), and vtkMRMLAnnotationFiducialNode::SetFiducialCoordinates().
| void vtkMRMLAnnotationControlPointsNode::SetNumberingSchemeFromString | ( | const char * | schemeString | ) |
References UseID, UseIndex, and UsePrevious.
| void vtkMRMLAnnotationControlPointsNode::UpdateScene | ( | vtkMRMLScene * | scene | ) | [virtual] |
Clears out the list of display nodes, and updates them from teh lsit of display node ids
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
| vtkMRMLAnnotationControlPointsNode::vtkGetMacro | ( | NumberingScheme | , | |
| int | ||||
| ) |
| vtkMRMLAnnotationControlPointsNode::vtkSetMacro | ( | NumberingScheme | , | |
| int | ||||
| ) |
Flag determining how to number the next added fiducial.
| vtkMRMLAnnotationControlPointsNode::vtkTypeMacro | ( | vtkMRMLAnnotationControlPointsNode | , | |
| vtkMRMLAnnotationNode | ||||
| ) |
| void vtkMRMLAnnotationControlPointsNode::WriteXML | ( | ostream & | of, | |
| int | indent | |||
| ) | [virtual] |
Write this node's information to a MRML file in XML format.
Reimplemented from vtkMRMLAnnotationNode.
Reimplemented in vtkMRMLAnnotationAngleNode, vtkMRMLAnnotationLinesNode, and vtkMRMLAnnotationRulerNode.
References vtkMRMLAnnotationNode::GetAnnotationAttribute(), GetAttributeTypesEnumAsString(), j, mathExample::n, NUM_CP_ATTRIBUTE_TYPES, vtkMRMLAnnotationNode::NUM_TEXT_ATTRIBUTE_TYPES, NumberingScheme, and vtkMRMLDisplayableNode::PolyData.
How the next annotation will be numbered in it's Text field.
Referenced by GetNumberingSchemeAsString(), PrintAnnotationInfo(), ReadXMLAttributes(), vtkMRMLAnnotationFiducialNode::SetTextFromID(), vtkMRMLAnnotationControlPointsNode(), and WriteXML().
1.6.1