41 int numberOfPoints = rand() % 100;
42 for (
int i = 0; i <= numberOfPoints + 1; i++)
45 point[0] = rand() % 1000;
46 point[1] = rand() % 1000;
47 point[2] = rand() % 1000;
48 pointSet->SetPoint(i, point);
55 std::vector<mitk::FileWriterSelector::Item> writers = writerSelector.
Get();
58 for (std::vector<mitk::FileWriterSelector::Item>::const_iterator iter = writers.begin(), end = writers.end();
68 iter->GetWriter()->Write();
71 catch (
const itk::ExceptionObject &)
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
virtual void SetOutputLocation(const std::string &location)=0
Set the output location.
std::vector< Item > Get(const std::string &mimeType) const
Get a sorted list of file writer info objects.
#define MITK_TEST_FAILED_MSG(MSG)
Fail and finish test with message MSG.
virtual void SetInput(const BaseData *data)=0
Set the input data for writing.
The common interface of all MITK file writers.
int mitkPointSetWriterTest(int, char *[])