#include <vtkMRMLSliceNode.h>
| anonymous enum |
| anonymous enum |
| vtkMRMLSliceNode::vtkMRMLSliceNode | ( | ) | [protected] |
References ActiveSlice, AutomaticSliceSpacingMode, Dimensions, FieldOfView, JumpMode, LayoutGridColumns, LayoutGridRows, New(), OffsetJumpSlice, OrientationIntentString, OrientationString, PrescribedSliceSpacing, SetOrientationToAxial(), SliceSpacingMode, SliceToRAS, SliceVisible, UseLabelOutline, WidgetVisible, XYToRAS, and XYToSlice.
| vtkMRMLSliceNode::~vtkMRMLSliceNode | ( | ) | [protected] |
References OrientationIntentString, OrientationString, SetLayoutName(), SliceToRAS, XYToRAS, and XYToSlice.
| vtkMRMLSliceNode::vtkMRMLSliceNode | ( | const vtkMRMLSliceNode & | ) | [protected] |
| void vtkMRMLSliceNode::Copy | ( | vtkMRMLNode * | node | ) | [virtual] |
Copy the node's attributes to this object
References ActiveSlice, Dimensions, vtkMRMLNode::EndModify(), FieldOfView, JumpMode, LayoutGridColumns, LayoutGridRows, PrescribedSliceSpacing, SliceSpacingMode, SliceToRAS, vtkMRMLNode::StartModify(), UpdateMatrices(), UseLabelOutline, and WidgetVisible.
| vtkMRMLNode * vtkMRMLSliceNode::CreateNodeInstance | ( | ) | [virtual] |
Create instance of the default node. Like New only virtual NOTE: Subclasses should implement this method
Implements vtkMRMLNode.
References autoSlicerTracto2regions::ret.
| char* vtkMRMLSliceNode::GetLayoutName | ( | ) | [inline] |
Referenced by vtkSlicerSliceControllerWidget::ToggleReformatWidget(), vtkSlicerViewerWidget::UpdateClipSlicesFromMRML(), vtkSlicerSlicesGUI::UpdateGUI(), UpdateScene(), vtkSlicerSliceLogic::UpdateSliceNode(), vtkSlicerViewControlGUI::UpdateSlicesFromMRML(), vtkSlicerSlicesControlGUI::UpdateSlicesFromMRML(), and WriteXML().
| virtual const char* vtkMRMLSliceNode::GetNodeTagName | ( | ) | [inline, virtual] |
Get node XML tag name (like Volume, Model)
Implements vtkMRMLNode.
| void vtkMRMLSliceNode::JumpAllSlices | ( | double | r, | |
| double | a, | |||
| double | s | |||
| ) |
| void vtkMRMLSliceNode::JumpSlice | ( | double | r, | |
| double | a, | |||
| double | s | |||
| ) |
Set the RAS offset of the Slice to the passed values. JumpSlice and JumpAllSlices use the JumpMode to determine how to jump.
References CenteredJumpSlice, JumpMode, JumpSliceByCentering(), JumpSliceByOffsetting(), and OffsetJumpSlice.
Referenced by JumpAllSlices(), vtkNeuroNavLogic::UpdateCrosshair(), vtkOpenIGTLinkIFLogic::UpdateSliceNode(), and vtkNeuroNavLogic::UpdateSliceNode().
| void vtkMRMLSliceNode::JumpSliceByCentering | ( | double | r, | |
| double | a, | |||
| double | s | |||
| ) |
References ActiveSlice, and UpdateMatrices().
Referenced by JumpSlice().
| void vtkMRMLSliceNode::JumpSliceByOffsetting | ( | int | k, | |
| double | r, | |||
| double | a, | |||
| double | s | |||
| ) |
References ActiveSlice, JumpSliceByOffsetting(), LayoutGridColumns, and LayoutGridRows.
| void vtkMRMLSliceNode::JumpSliceByOffsetting | ( | double | r, | |
| double | a, | |||
| double | s | |||
| ) |
References ActiveSlice, autoSlicerTracto2regions::d, and UpdateMatrices().
Referenced by JumpSlice(), and JumpSliceByOffsetting().
| int vtkMRMLSliceNode::Matrix4x4AreEqual | ( | vtkMatrix4x4 * | m1, | |
| vtkMatrix4x4 * | m2 | |||
| ) |
helper for comparing to matrices TODO: is there a standard VTK method?
References j.
Referenced by UpdateMatrices().
| vtkMRMLSliceNode * vtkMRMLSliceNode::New | ( | ) | [static] |
Reimplemented from vtkMRMLNode.
References autoSlicerTracto2regions::ret.
Referenced by qMRMLUtilsTest1(), RotateToVolumePlane(), UpdateMatrices(), and vtkMRMLSliceNode().
| void vtkMRMLSliceNode::operator= | ( | const vtkMRMLSliceNode & | ) | [protected] |
Reimplemented from vtkMRMLNode.
| void vtkMRMLSliceNode::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) |
Reimplemented from vtkMRMLNode.
References ActiveSlice, AutomaticSliceSpacingMode, CenteredJumpSlice, Dimensions, FieldOfView, JumpMode, LayoutGridColumns, LayoutGridRows, PrescribedSliceSpacing, SliceSpacingMode, SliceToRAS, SliceVisible, UseLabelOutline, WidgetVisible, and XYToRAS.
Referenced by vtkSlicerSliceLogic::PrintSelf(), and vtkSlicerSliceLayerLogic::PrintSelf().
| void vtkMRMLSliceNode::ReadXMLAttributes | ( | const char ** | atts | ) | [virtual] |
Set node attributes
Reimplemented from vtkMRMLNode.
References ActiveSlice, Dimensions, vtkMRMLNode::EndModify(), FieldOfView, j, JumpMode, LayoutGridColumns, LayoutGridRows, PrescribedSliceSpacing, SetLayoutName(), SliceToRAS, SliceVisible, vtkMRMLNode::StartModify(), UpdateMatrices(), UseLabelOutline, ModifyHeader::val, and WidgetVisible.
| void vtkMRMLSliceNode::RotateToVolumePlane | ( | vtkMRMLVolumeNode * | volumeNode | ) |
adjusts the slice node to align with the native space of the image data so that no oblique resampling occurs when rendering (helps to see original acquisition data and for obluique volumes with few slices).
References vtkMRMLVolumeNode::GetIJKToRASMatrix(), vtkMRMLTransformNode::GetMatrixTransformToWorld(), vtkMRMLTransformableNode::GetParentTransformNode(), vtkMRMLTransformNode::IsTransformToWorldLinear(), len, vtkMRMLNode::Modified(), New(), SetOrientationToReformat(), and SliceToRAS.
References Dimensions, and UpdateMatrices().
| void vtkMRMLSliceNode::SetFieldOfView | ( | double | x, | |
| double | y, | |||
| double | z | |||
| ) |
References FieldOfView, and UpdateMatrices().
Referenced by vtkSlicerSlicesControlGUI::FitFOVToBackground(), and vtkSlicerSliceLogic::FitSliceToVolume().
| void vtkMRMLSliceNode::SetJumpModeToCentered | ( | ) |
References CenteredJumpSlice.
| void vtkMRMLSliceNode::SetJumpModeToOffset | ( | ) |
References OffsetJumpSlice.
Set the number of rows and columns to use in a LightBox display of the node
References ActiveSlice, Dimensions, double(), FieldOfView, LayoutGridColumns, LayoutGridRows, and UpdateMatrices().
Referenced by vtkSlicerSliceControllerWidget::SliceViewerLayoutConfig().
| void vtkMRMLSliceNode::SetLayoutGridColumns | ( | int | cols | ) | [virtual] |
References ActiveSlice, Dimensions, double(), FieldOfView, LayoutGridColumns, LayoutGridRows, and UpdateMatrices().
| void vtkMRMLSliceNode::SetLayoutGridRows | ( | int | rows | ) | [virtual] |
References ActiveSlice, Dimensions, double(), FieldOfView, LayoutGridColumns, LayoutGridRows, and UpdateMatrices().
| void vtkMRMLSliceNode::SetLayoutName | ( | const char * | layoutName | ) | [inline] |
Name of the layout
Referenced by ReadXMLAttributes(), vtkSlicerSliceLogic::UpdateSliceNode(), and ~vtkMRMLSliceNode().
| void vtkMRMLSliceNode::SetOrientationToAxial | ( | ) |
'standard' radiological convention views of patient space these calls adjust the SliceToRAS matrix to position the slice cutting plane
References SliceToRAS, and UpdateMatrices().
Referenced by vtkOpenIGTLinkIFGUI::ChangeSlicePlaneDriver(), vtkSlicerSliceControllerWidget::UpdateOrientation(), vtkOpenIGTLinkIFLogic::UpdateSliceNode(), vtkNeuroNavLogic::UpdateSliceNode(), vtkSlicerSliceLogic::UpdateSliceNodeFromLayout(), and vtkMRMLSliceNode().
| void vtkMRMLSliceNode::SetOrientationToCoronal | ( | ) |
| void vtkMRMLSliceNode::SetOrientationToReformat | ( | ) |
General 'reformat' view that allows for multiplanar reformat
Referenced by RotateToVolumePlane(), vtkProstateNavLogic::SetSliceViewFromVolume(), and vtkSlicerSliceControllerWidget::UpdateOrientation().
| void vtkMRMLSliceNode::SetOrientationToSagittal | ( | ) |
| void vtkMRMLSliceNode::SetSliceSpacingModeToAutomatic | ( | ) |
References AutomaticSliceSpacingMode.
| void vtkMRMLSliceNode::SetSliceSpacingModeToPrescribed | ( | ) |
References PrescribedSliceSpacingMode.
| void vtkMRMLSliceNode::SetSliceToRASByNTP | ( | double | Nx, | |
| double | Ny, | |||
| double | Nz, | |||
| double | Tx, | |||
| double | Ty, | |||
| double | Tz, | |||
| double | Px, | |||
| double | Py, | |||
| double | Pz, | |||
| int | Orientation | |||
| ) |
Set the SliceToRAS matrix according to the position and orientation of the locator: N(x, y, z) - the direction vector of the locator T(x, y, z) - the transverse direction vector of the locator P(x, y, z) - the tip location of the locator All the above values are in RAS space.
References Console::c, mathExample::n, SliceToRAS, NodeSelector::t, and UpdateMatrices().
Referenced by vtkOpenIGTLinkIFLogic::UpdateSliceNode(), and vtkNeuroNavLogic::UpdateSliceNode().
| void vtkMRMLSliceNode::UpdateMatrices | ( | ) |
Recalculate XYToSlice and XYToRAS in terms or fov, dim, SliceToRAS
References Dimensions, FieldOfView, vtkMRMLNode::InvokePendingModifiedEvent(), Matrix4x4AreEqual(), vtkMRMLNode::Modified(), New(), vtkMRMLNode::SetDisableModifiedEvent(), SliceToRAS, XYToRAS, and XYToSlice.
Referenced by Copy(), vtkSlicerSlicesControlGUI::FitFOVToBackground(), vtkSlicerSliceControllerWidget::FitSliceToBackground(), vtkSlicerSliceLogic::FitSliceToVolume(), JumpSliceByCentering(), JumpSliceByOffsetting(), ReadXMLAttributes(), SetDimensions(), SetFieldOfView(), SetLayoutGrid(), SetLayoutGridColumns(), SetLayoutGridRows(), SetOrientationToAxial(), SetOrientationToCoronal(), SetOrientationToSagittal(), vtkSlicerSliceLogic::SetSliceOffset(), SetSliceToRASByNTP(), vtkProstateNavLogic::SetSliceViewFromVolume(), vtkSlicerSliceLogic::SnapSliceOffsetToIJK(), vtkOpenIGTLinkIFLogic::UpdateSliceNode(), and vtkNeuroNavLogic::UpdateSliceNode().
| void vtkMRMLSliceNode::UpdateScene | ( | vtkMRMLScene * | scene | ) | [virtual] |
Updates other nodes in the scene depending on this node or updates this node if it depends on other nodes when the scene is read in This method is called automatically by XML parser after all nodes are created
Reimplemented from vtkMRMLNode.
References GetLayoutName(), vtkMRMLScene::GetNthNodeByClass(), vtkMRMLScene::GetNumberOfNodesByClass(), mathExample::n, and vtkMRMLScene::RemoveNodeNoNotify().
| vtkMRMLSliceNode::vtkBooleanMacro | ( | UseLabelOutline | , | |
| int | ||||
| ) |
| vtkMRMLSliceNode::vtkGetMacro | ( | ActiveSlice | , | |
| int | ||||
| ) |
| vtkMRMLSliceNode::vtkGetMacro | ( | SliceSpacingMode | , | |
| int | ||||
| ) |
Get/Set the slice spacing mode. Slice spacing can be automatically calculated using GetLowestVolumeSliceSpacing() or prescribed
| vtkMRMLSliceNode::vtkGetMacro | ( | LayoutGridColumns | , | |
| int | ||||
| ) |
Set/Get the number of columns to use ina LightBox display
| vtkMRMLSliceNode::vtkGetMacro | ( | LayoutGridRows | , | |
| int | ||||
| ) |
Set/Get the number of rows to use ina LightBox display
| vtkMRMLSliceNode::vtkGetMacro | ( | UseLabelOutline | , | |
| int | ||||
| ) |
Use the label outline filter on this slice?
| vtkMRMLSliceNode::vtkGetMacro | ( | WidgetVisible | , | |
| int | ||||
| ) |
The visibility of the slice plane widget in the 3DViewer.
| vtkMRMLSliceNode::vtkGetMacro | ( | SliceVisible | , | |
| int | ||||
| ) |
The visibility of the slice in the 3DViewer.
| vtkMRMLSliceNode::vtkGetObjectMacro | ( | XYToRAS | , | |
| vtkMatrix4x4 | ||||
| ) |
Matrix mapping from XY pixel coordinates on an image window into RAS world coordinates
| vtkMRMLSliceNode::vtkGetObjectMacro | ( | XYToSlice | , | |
| vtkMatrix4x4 | ||||
| ) |
Matrix mapping from XY pixel coordinates on an image window into slice coordinates in mm
| vtkMRMLSliceNode::vtkGetObjectMacro | ( | SliceToRAS | , | |
| vtkMatrix4x4 | ||||
| ) |
Mapping from RAS space onto the slice plane TODO: maybe this should be a quaternion and a translate to avoid shears/scales
| vtkMRMLSliceNode::vtkGetStringMacro | ( | OrientationIntentString | ) |
Description The orientation that this slice was, for example, before being rotated to lie in the acquisition plane by RotateToVolumePlane
| vtkMRMLSliceNode::vtkGetStringMacro | ( | OrientationString | ) |
Description A description of the current orientation
| vtkMRMLSliceNode::vtkGetVector3Macro | ( | PrescribedSliceSpacing | , | |
| double | ||||
| ) |
| vtkMRMLSliceNode::vtkGetVector3Macro | ( | Dimensions | , | |
| unsigned | int | |||
| ) |
Number of samples in each direction -- note that the spacing is implicitly FieldOfView / Dimensions
| vtkMRMLSliceNode::vtkGetVector3Macro | ( | FieldOfView | , | |
| double | ||||
| ) |
Size of the slice plane in millimeters
| vtkMRMLSliceNode::vtkSetMacro | ( | ActiveSlice | , | |
| int | ||||
| ) |
Set/get the active slice in the lightbox. The active slice is shown in the 3D scene
| vtkMRMLSliceNode::vtkSetMacro | ( | SliceSpacingMode | , | |
| int | ||||
| ) |
Control how JumpSlice operates. CenteredJumpMode puts the specified RAS position in the center of the slice. OffsetJumpMode does not change the slice position, merely adjusts the slice offset to get the RAS position on the slice.
| vtkMRMLSliceNode::vtkSetMacro | ( | UseLabelOutline | , | |
| int | ||||
| ) |
| vtkMRMLSliceNode::vtkSetMacro | ( | WidgetVisible | , | |
| int | ||||
| ) |
| vtkMRMLSliceNode::vtkSetMacro | ( | SliceVisible | , | |
| int | ||||
| ) |
| vtkMRMLSliceNode::vtkSetObjectMacro | ( | SliceToRAS | , | |
| vtkMatrix4x4 | ||||
| ) |
| vtkMRMLSliceNode::vtkSetStringMacro | ( | OrientationIntentString | ) |
| vtkMRMLSliceNode::vtkSetStringMacro | ( | OrientationString | ) |
| vtkMRMLSliceNode::vtkSetVector3Macro | ( | PrescribedSliceSpacing | , | |
| double | ||||
| ) |
Set/get the slice spacing to use when the SliceSpacingMode is "Prescribed"
| vtkMRMLSliceNode::vtkTypeMacro | ( | vtkMRMLSliceNode | , | |
| vtkMRMLNode | ||||
| ) |
| void vtkMRMLSliceNode::WriteXML | ( | ostream & | of, | |
| int | indent | |||
| ) | [virtual] |
Write this node's information to a MRML file in XML format.
Reimplemented from vtkMRMLNode.
References ActiveSlice, Dimensions, FieldOfView, GetLayoutName(), j, JumpMode, LayoutGridColumns, LayoutGridRows, OrientationIntentString, OrientationString, PrescribedSliceSpacing, SliceSpacingMode, SliceToRAS, SliceVisible, UseLabelOutline, and WidgetVisible.
int vtkMRMLSliceNode::ActiveSlice [protected] |
unsigned int vtkMRMLSliceNode::Dimensions[3] [protected] |
double vtkMRMLSliceNode::FieldOfView[3] [protected] |
int vtkMRMLSliceNode::JumpMode [protected] |
Referenced by Copy(), JumpSlice(), PrintSelf(), ReadXMLAttributes(), vtkMRMLSliceNode(), and WriteXML().
int vtkMRMLSliceNode::LayoutGridColumns [protected] |
int vtkMRMLSliceNode::LayoutGridRows [protected] |
char* vtkMRMLSliceNode::OrientationIntentString [protected] |
Referenced by vtkMRMLSliceNode(), WriteXML(), and ~vtkMRMLSliceNode().
char* vtkMRMLSliceNode::OrientationString [protected] |
Referenced by vtkMRMLSliceNode(), WriteXML(), and ~vtkMRMLSliceNode().
double vtkMRMLSliceNode::PrescribedSliceSpacing[3] [protected] |
Referenced by Copy(), PrintSelf(), ReadXMLAttributes(), vtkMRMLSliceNode(), and WriteXML().
int vtkMRMLSliceNode::SliceSpacingMode [protected] |
Referenced by Copy(), PrintSelf(), vtkMRMLSliceNode(), and WriteXML().
vtkMatrix4x4* vtkMRMLSliceNode::SliceToRAS [protected] |
int vtkMRMLSliceNode::SliceVisible [protected] |
Referenced by PrintSelf(), ReadXMLAttributes(), vtkMRMLSliceNode(), and WriteXML().
int vtkMRMLSliceNode::UseLabelOutline [protected] |
Referenced by Copy(), PrintSelf(), ReadXMLAttributes(), vtkMRMLSliceNode(), and WriteXML().
int vtkMRMLSliceNode::WidgetVisible [protected] |
Referenced by Copy(), PrintSelf(), ReadXMLAttributes(), vtkMRMLSliceNode(), and WriteXML().
vtkMatrix4x4* vtkMRMLSliceNode::XYToRAS [protected] |
Referenced by PrintSelf(), UpdateMatrices(), vtkMRMLSliceNode(), and ~vtkMRMLSliceNode().
vtkMatrix4x4* vtkMRMLSliceNode::XYToSlice [protected] |
Referenced by UpdateMatrices(), vtkMRMLSliceNode(), and ~vtkMRMLSliceNode().
1.6.1