forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkMRMLDisplayNodeTest1.cxx
58 lines (45 loc) · 1.49 KB
/
vtkMRMLDisplayNodeTest1.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH)
All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
=========================================================================auto=*/
// MRML includes
#include "vtkMRMLCoreTestingMacros.h"
#include "vtkMRMLDisplayNode.h"
// VTK includes
#include <vtkObjectFactory.h>
//----------------------------------------------------------------------------
class vtkMRMLDisplayNodeTestHelper1 : public vtkMRMLDisplayNode
{
public:
// Provide a concrete New.
static vtkMRMLDisplayNodeTestHelper1 *New();
vtkTypeMacro(vtkMRMLDisplayNodeTestHelper1,vtkMRMLDisplayNode);
virtual vtkMRMLNode* CreateNodeInstance()
{
return vtkMRMLDisplayNodeTestHelper1::New();
}
const char * GetTypeAsString()
{
return "vtkMRMLDisplayNodeTestHelper1";
}
int ReadFile()
{
std::cout << "vtkMRMLDisplayNodeTestHelper1 pretending to read a file " << std::endl;
return EXIT_SUCCESS;
}
virtual const char* GetNodeTagName()
{
return "Testing is good";
}
};
vtkStandardNewMacro(vtkMRMLDisplayNodeTestHelper1);
//----------------------------------------------------------------------------
int vtkMRMLDisplayNodeTest1(int , char * [])
{
vtkNew<vtkMRMLDisplayNodeTestHelper1> node1;
EXERCISE_ALL_BASIC_MRML_METHODS(node1.GetPointer());
return EXIT_SUCCESS;
}