26 #include <vtkRegressionTestImage.h>
34 geometry->InitializeStandardPlane(image->
GetGeometry(), orientation, zPos);
37 geometryData->SetPlaneGeometry(geometry);
40 node->SetData(geometryData);
68 rotationAxis.Fill(0.0);
70 transform->Rotate3D(rotationAxis, vnl_math::pi_over_4);
72 planeGeometry->Compose(transform);
74 auto bounds = planeGeometry->GetBounds();
76 planeGeometry->SetBounds(bounds);
78 planeGeometry->SetReferenceGeometry(
nullptr);
80 planeNode->SetIntProperty(
"Crosshair.Gap Size", 4);
84 "CompareRenderWindowAgainstReference test result positive?");
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
void SaveReferenceScreenShot(std::string fileName)
SaveReferenceScreenShot Convenience method to save a reference screen shot.
Tests for type compatibility (dynamic_cast).
bool CompareRenderWindowAgainstReference(int argc, char *argv[], double threshold=10.0)
CompareRenderWindowAgainstReference Convenience method to compare the image rendered in the internal ...
#define MITK_TEST_CONDITION(COND, MSG)
Image class for storing images.
Data class containing PlaneGeometry objects.
mitk::DataNode::Pointer addPlaneToDataStorage(mitk::RenderingTestHelper &renderingHelper, mitk::Image *image, mitk::PlaneGeometry::PlaneOrientation orientation, mitk::ScalarType zPos)
mitk::DataStorage::Pointer GetDataStorage()
Returns the datastorage, in order to modify the data inside a rendering test.
void AddNodeToStorage(mitk::DataNode::Pointer node)
AddNodeToStorage Add a node to the datastorage and perform a reinit which is necessary for rendering...
mitk::BaseGeometry * GetGeometry(int t=0) const
Return the geometry, which is a TimeGeometry, of the data as non-const pointer.
int mitkPlaneGeometryDataMapper2DTest(int argc, char *argv[])
virtual const BoundingBoxType * GetBoundingBox()
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.