Documentation/Nightly/Developers/Slice Orientation Presets

From Slicer Wiki
Revision as of 16:26, 8 June 2016 by JChris.FillionR (talk | contribs) (Created page with " == Overview == Slicer provides an API to manage slice orientation presets. By default, three slice orientation presets representing the Coordinate_systems#Anatomical_coor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home < Documentation < Nightly < Developers < Slice Orientation Presets

Overview

Slicer provides an API to manage slice orientation presets.

By default, three slice orientation presets representing the anatomical coordinate system are available in Slicer: Axial, Coronal and Sagittal.


Under the hood

Where are default presets defined ?

Each time vtkMRMLApplicationLogic::SetMRMLScene is invoked, method AddDefaultSliceOrientationPresets(vtkMRMLScene *scene) is called.

Then, method AddDefaultSliceOrientationPresets(vtkMRMLScene *scene) ends up adding a default vtkMRMLSliceNode that will be used a template each time vtkMRMLScene::CreateNodeByClass(const char* className).