Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkSlicerMarkupsWriter.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 __vtkSlicerMarkupsWriter_h
19#define __vtkSlicerMarkupsWriter_h
20
21// Slicer includes
22#include "vtkMRMLNodeWriter.h"
23
24#include "vtkSlicerMarkupsModuleLogicExport.h"
25
27
29class VTK_SLICER_MARKUPS_MODULE_LOGIC_EXPORT vtkSlicerMarkupsWriter : public vtkMRMLNodeWriter
30{
31public:
34
36 std::vector<std::string> GetNameFiltersForObject(vtkObject* object) override;
37
39 bool Write(vtkMRMLIOProperties* properties) override;
40
41protected:
44
46 void SetStorageNodeClass(vtkMRMLStorableNode* storableNode, const std::string& storageNodeClassName);
47
48private:
50 void operator=(const vtkSlicerMarkupsWriter&) = delete;
51};
52
53#endif
MRML node to represent a 3D surface model.
~vtkSlicerMarkupsWriter() override
std::vector< std::string > GetNameFiltersForObject(vtkObject *object) override
Supported formats of json and fcsv storage nodes.
void SetStorageNodeClass(vtkMRMLStorableNode *storableNode, const std::string &storageNodeClassName)
Make sure the storable node uses a storage node of the specified class.
static vtkSlicerMarkupsWriter * New()
bool Write(vtkMRMLIOProperties *properties) override
Write the node using the storage node that matches the file extension.