21 #ifndef __vtkMRMLCoreTestingUtilities_h 22 #define __vtkMRMLCoreTestingUtilities_h 28 #include <vtkCallbackCommand.h> 58 const char* expectedID,
const char* expectedName);
60 template<
typename Type>
120 void PrintSelf(ostream& os, vtkIndent indent);
122 virtual void Execute(vtkObject* caller,
unsigned long eid,
void *callData);
123 virtual void ResetNumberOfEvents();
126 std::string GetErrorString();
131 int GetNumberOfModified();
132 int GetNumberOfEvents(
unsigned long event);
133 int GetTotalNumberOfEvents();
134 std::vector<unsigned long> GetReceivedEvents();
140 void SetErrorString(
const char* error);
142 void SetErrorString(
int line,
const char* error);
151 #include "vtkMRMLCoreTestingUtilities.txx"
static vtkMRMLNodeCallback * New()
VTK_MRML_EXPORT int ExerciseBasicTransformableMRMLMethods(vtkMRMLTransformableNode *node)
VTK_MRML_EXPORT int ExerciseSceneLoadingMethods(const char *sceneFilePath, vtkMRMLScene *inputScene=NULL)
std::string ToString(Type value)
VTK_MRML_EXPORT int ExerciseBasicMRMLMethods(vtkMRMLNode *node)
Slicer Libs/MRML/vtkMRMLNode exercises.
VTK_MRML_EXPORT int ExerciseAllBasicMRMLMethods(vtkMRMLNode *object)
VTK_MRML_EXPORT int ExerciseBasicStorageMRMLMethods(vtkMRMLStorageNode *node)
VTK_MRML_EXPORT int ExerciseBasicTransformMRMLMethods(vtkMRMLTransformNode *node)
VTK_MRML_EXPORT int ExerciseBasicStorableMRMLMethods(vtkMRMLStorableNode *node)
VTK_MRML_EXPORT int ExerciseBasicDisplayableMRMLMethods(vtkMRMLDisplayableNode *node)
MRML node to represent a 3D surface model.
A set of MRML Nodes that supports serialization and undo/redo.
std::map< unsigned long, unsigned int > ReceivedEvents
A supercalss for other storage nodes.
Abstract class that contains graphical display properties for displayable nodes.
VTK_MRML_EXPORT int ExerciseBasicDisplayMRMLMethods(vtkMRMLDisplayNode *node)
Abstract Superclass for all specific types of MRML nodes.
VTK_MRML_EXPORT int ExerciseBasicObjectMethods(vtkObject *object)
Test basic VTK object methods (print, superclass, etc.)
VTK_MRML_EXPORT bool CheckNodeIdAndName(int line, vtkMRMLNode *node, const char *expectedID, const char *expectedName)
VTK_MRML_EXPORT bool CheckNodeInSceneByID(int line, vtkMRMLScene *scene, const char *nodeID, vtkMRMLNode *expected)