37 int numberOfPoints = rand() % 100;
38 for (
int i = 0; i <= numberOfPoints + 1; i++)
41 point[0] = rand() % 1000;
42 point[1] = rand() % 1000;
43 point[2] = rand() % 1000;
44 pointSet->SetPoint(i, point);
51 std::vector<mitk::FileWriterSelector::Item> writers = writerSelector.
Get();
54 for (std::vector<mitk::FileWriterSelector::Item>::const_iterator iter = writers.begin(), end = writers.end();
64 iter->GetWriter()->Write();
67 catch (
const itk::ExceptionObject &)
std::vector< Item > Get(const std::string &mimeType) const
Get a sorted list of file writer info objects.
#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.
#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 *[])