17 #ifndef mitkRenderingTestHelper_h
18 #define mitkRenderingTestHelper_h
22 #include <vtkSmartPointer.h>
27 class vtkRenderWindow;
61 vtkRenderer *GetVtkRenderer();
65 vtkRenderWindow *GetVtkRenderWindow();
70 void SaveAsPNG(std::string fileName);
78 void SetAutomaticallyCloseRenderWindow(
bool automaticallyCloseRenderWindow);
119 void SetMapperIDToRender3D();
124 void SetMapperIDToRender2D();
130 void SaveReferenceScreenShot(std::string fileName);
149 bool CompareRenderWindowAgainstReference(
int argc,
char *argv[],
double threshold = 10.0);
152 bool IsAdvancedOpenGL();
166 std::vector<char *> argv;
167 std::vector<std::vector<char>> argvec;
171 : argv(argstrings.size() + 1), argvec(argstrings.size() + 1)
173 std::vector<std::string> cmdArgs;
175 cmdArgs.insert(cmdArgs.end(), argstrings.begin(), argstrings.end());
176 for (std::size_t i = 0; i < cmdArgs.size(); ++i)
178 argvec[i].assign(cmdArgs[i].begin(), cmdArgs[i].end());
179 argvec[i].push_back(
'\0');
180 argv[i] = &argvec[i][0];
208 void AddToStorage(
const std::string &
filename);
mitk::DataStorage::Pointer m_DataStorage
bool m_AutomaticallyCloseRenderWindow
DataCollection - Class to facilitate loading/accessing structured data.
static mitk::DataStorage::Pointer GetDataStorage()
ArgcHelperClass(const std::vector< std::string > &argstrings)
Abstract base class for properties.
static const std::string filename
mitk::RenderWindow::Pointer m_RenderWindow
static std::string GetProgramPath()
void SetInputFileNames(std::string input_directory)
The ArgcHelperClass class is a convinience class to convert a vector of strings to the standard c++ a...
#define MITKTESTINGHELPER_EXPORT
ViewDirection
Possible view directions, Original will uses the PlaneGeometry instances in a SlicedGeometry3D provid...