18 #include "vtkUnstructuredGrid.h" 33 "Requested region verification after initialization!");
39 "Requested region verification after initialization of clone!");
42 vtkUnstructuredGrid *grid = vtkUnstructuredGrid::New();
43 testObject->SetVtkUnstructuredGrid(grid);
48 mitk::UnstructuredGrid::RegionType::SizeType size;
51 mitk::UnstructuredGrid::RegionType::IndexType index;
54 ugRegion->SetSize(size);
55 ugRegion->SetIndex(index);
56 testObject->SetRequestedRegion(ugRegion);
57 testObject->UpdateOutputInformation();
59 "Testing Set/Get of Requested Region by RegionType1!");
61 "Testing Set/Get of Requested Region by RegionType2!");
66 copyObject->CopyInformation(testObject);
67 copyObject->SetRequestedRegion(testObject);
69 "Testing generation of copy object");
71 "Testing SetRequestedRegion by DataObject1");
73 "Testing SetRequestedRegion by DataObject2");
75 cloneObject = testObject->Clone();
77 "Testing region cloning!");
79 "Testing Get/Set-VtkUnstructuredGrid cloning");
81 "Testing Set/Get of Requested Region by RegionType1 in clone!");
83 "Testing Set/Get of Requested Region by RegionType2 in clone!");
88 testObject->SetRequestedRegionToLargestPossibleRegion();
90 testObject->GetRequestedRegion().GetSize() == testObject->GetLargestPossibleRegion().GetSize(),
91 "Testing Set/Get LargestPossibleRegion!");
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
int mitkUnstructuredGridTest(int, char *[])
itk::ImageRegion< 5 > RegionType