forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkMRMLDisplayNodeTest1.cxx
60 lines (43 loc) · 1.62 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
59
60
/*=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=*/
#include "vtkMRMLDisplayNode.h"
#include "vtkMRMLCoreTestingMacros.h"
//----------------------------------------------------------------------------
class vtkMRMLDisplayNodeTestHelper1 : public vtkMRMLDisplayNode
{
public:
// Provide a concrete New.
static vtkMRMLDisplayNodeTestHelper1 *New(){return new vtkMRMLDisplayNodeTestHelper1;};
vtkTypeMacro( vtkMRMLDisplayNodeTestHelper1,vtkMRMLDisplayNode);
virtual vtkMRMLNode* CreateNodeInstance()
{
return new vtkMRMLDisplayNodeTestHelper1;
}
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";
}
};
//----------------------------------------------------------------------------
int vtkMRMLDisplayNodeTest1(int , char * [])
{
vtkSmartPointer< vtkMRMLDisplayNodeTestHelper1 > node1 = vtkSmartPointer< vtkMRMLDisplayNodeTestHelper1 >::New();
EXERCISE_BASIC_OBJECT_METHODS( node1 );
// EXERCISE_BASIC_MRML_METHODS(vtkMRMLDisplayNodeTestHelper1, node1);
EXERCISE_BASIC_DISPLAY_MRML_METHODS(vtkMRMLDisplayNodeTestHelper1, node1);
return EXIT_SUCCESS;
}