21 #ifndef __vtkSlicerVolumesLogic_h 22 #define __vtkSlicerVolumesLogic_h 38 #include "vtkSlicerVolumesModuleLogicExport.h" 56 vtkSmartPointer<vtkMRMLVolumeNode>
Node;
59 vtkSmartPointer<vtkMRMLScene>
Scene;
70 void PrintSelf(ostream& os, vtkIndent indent)
override;
92 DiscardOrientation = 16
102 int IsFreeSurferVolume(
const char* filename);
111 void RegisterArchetypeVolumeNodeSetFactory(ArchetypeVolumeNodeSetFactory factory);
122 void PreRegisterArchetypeVolumeNodeSetFactory(ArchetypeVolumeNodeSetFactory factory);
134 return (this->AddArchetypeVolume( filename, volname, loadingOptions,
nullptr));
136 vtkMRMLVolumeNode* AddArchetypeVolume (
const char* filename,
const char* volname,
int loadingOptions, vtkStringArray *fileList);
139 return this->AddArchetypeVolume( filename, volname, 0,
nullptr);
144 vtkMRMLScalarVolumeNode* AddArchetypeScalarVolume(
const char* filename,
const char* volname,
int loadingOptions, vtkStringArray *fileList);
250 bool cloneImageData=
true);
255 bool cloneImageData =
true);
259 void TranslateFreeSurferRegistrationMatrixIntoSlicerRASToRASMatrix(
vtkMRMLVolumeNode *V1Node,
261 vtkMatrix4x4 *FSRegistrationMatrix,
262 vtkMatrix4x4 *ResultsMatrix);
284 vtkGetMacro(CompareVolumeGeometryEpsilon,
double);
288 void SetCompareVolumeGeometryEpsilon(
double epsilon);
293 vtkGetMacro(CompareVolumeGeometryPrecision,
int);
304 std::vector<std::string> GetVolumeDisplayPresetIDs();
308 VolumeDisplayPreset GetVolumeDisplayPreset(
const std::string& presetId);
317 void InitializeDefaultVolumeDisplayPresets();
321 void * callData)
override;
325 const char * filename,
326 vtkStringArray *fileList,
330 int labelmap,
const char* filename);
338 const char* filename,
const char* volname,
int loadingOptions,
339 vtkStringArray *fileList);
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkSlicerModuleLogic * New()
The Usual vtk class functions.
vtkSmartPointer< vtkMRMLStorageNode > StorageNode
vtkSlicerVolumesLogic Self
MRML node for representing a volume display attributes.
double CompareVolumeGeometryEpsilon
MRML node for representing a label map volume.
std::vector< VolumeDisplayPreset > VolumeDisplayPresets
vtkSmartPointer< vtkMRMLVolumeDisplayNode > DisplayNode
vtkSmartPointer< vtkMRMLScene > Scene
virtual void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData)
LoadingOptions
Loading options, bitfield.
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.
MRML node for representing a volume (image stack).
vtkMRMLVolumeNode * AddArchetypeVolume(const char *filename, const char *volname)
int CompareVolumeGeometryPrecision
ArchetypeVolumeNodeSet(const ArchetypeVolumeNodeSet &set)
Abstract class that contains graphical display properties for displayable nodes.
MRML node for representing a volume (image stack).
NodeSetFactoryRegistry VolumeRegistry
vtkMRMLVolumeNode * AddArchetypeVolume(const char *filename, const char *volname, int loadingOptions)
ArchetypeVolumeNodeSet(vtkMRMLScene *scene)
MRML node for representing a volume display attributes.
std::list< ArchetypeVolumeNodeSetFactory > NodeSetFactoryRegistry
vtkSmartPointer< vtkMRMLVolumeNode > Node