MCPcopy Create free account
hub / github.com/Kitware/VTK / GetDataRoot

Method GetDataRoot

Testing/Rendering/vtkTesting.cxx:211–222  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

209}
210//------------------------------------------------------------------------------
211const char* vtkTesting::GetDataRoot()
212{
213#ifdef VTK_DATA_ROOT
214 string dr = vtkTestingGetArgOrEnvOrDefault("-D", this->Args, "VTK_DATA_ROOT", VTK_DATA_ROOT);
215#else
216 string dr =
217 vtkTestingGetArgOrEnvOrDefault("-D", this->Args, "VTK_DATA_ROOT", "../../../../VTKData");
218#endif
219 this->SetDataRoot(vtksys::SystemTools::CollapseFullPath(dr).c_str());
220
221 return this->DataRoot;
222}
223//------------------------------------------------------------------------------
224const char* vtkTesting::GetTempDirectory()
225{

Callers 2

GetValidImageFileNameMethod · 0.95
PrintSelfMethod · 0.95

Calls 2

c_strMethod · 0.45

Tested by

no test coverage detected