21 #ifndef __vtkMRMLCoreTestingUtilities_h 22 #define __vtkMRMLCoreTestingUtilities_h 28 #include <vtkCallbackCommand.h> 58 const char* expectedID,
const char* expectedName);
60 template<
typename Type>
66 const char * sceneFilePath, std::vector<std::string>& expectedNodeAddedClassNames);
125 void PrintSelf(ostream& os, vtkIndent indent)
override;
127 void Execute(vtkObject* caller,
unsigned long eid,
void *callData)
override;
128 virtual void ResetNumberOfEvents();
131 std::string GetErrorString();
136 int GetNumberOfModified();
137 int GetNumberOfEvents(
unsigned long event);
138 int GetTotalNumberOfEvents();
139 std::vector<unsigned long> GetReceivedEvents();
145 void SetErrorString(
const char* error);
147 void SetErrorString(
int line,
const char* error);
156 #include "vtkMRMLCoreTestingUtilities.txx"
static vtkMRMLNodeCallback * New()
VTK_MRML_EXPORT int ExerciseSceneLoadingMethods(const char *sceneFilePath, vtkMRMLScene *inputScene=nullptr)
VTK_MRML_EXPORT int ExerciseBasicTransformableMRMLMethods(vtkMRMLTransformableNode *node)
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 superclass for other storage nodes.
VTK_MRML_EXPORT int GetExpectedNodeAddedClassNames(const char *sceneFilePath, std::vector< std::string > &expectedNodeAddedClassNames)
Return list of node that should be added to the scene.
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)