Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkSlicerSceneWriter.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16==============================================================================*/
17
18#ifndef __vtkSlicerSceneWriter_h
19#define __vtkSlicerSceneWriter_h
20
21// Slicer includes
22#include "vtkMRMLFileWriter.h"
23
24#include "vtkSlicerDataModuleLogicExport.h"
25
26// VTK includes
27#include <vtkWeakPointer.h>
28
30
35class VTK_SLICER_DATA_LOGIC_EXPORT vtkSlicerSceneWriter : public vtkMRMLFileWriter
36{
37public:
40
45
47 bool CanWriteObject(vtkObject* object) override;
48
49 bool Write(vtkMRMLIOProperties* properties) override;
50
51protected:
54
58
59 vtkWeakPointer<vtkSlicerApplicationLogic> ApplicationLogic;
60
61private:
63 void operator=(const vtkSlicerSceneWriter&) = delete;
64};
65
66#endif
vtkSlicerApplicationLogic * GetApplicationLogic()
static vtkSlicerSceneWriter * New()
bool WriteToDirectory(vtkMRMLIOProperties *properties)
bool WriteToMRB(vtkMRMLIOProperties *properties)
~vtkSlicerSceneWriter() override
void SetApplicationLogic(vtkSlicerApplicationLogic *applicationLogic)
bool WriteToMRML(vtkMRMLIOProperties *properties)
bool CanWriteObject(vtkObject *object) override
Returns true if the object is a scene.
bool Write(vtkMRMLIOProperties *properties) override
vtkWeakPointer< vtkSlicerApplicationLogic > ApplicationLogic