8 #include "PlusConfigure.h" 17 #include <itkLandmarkSpatialObject.h> 19 int main(
int argc,
char* argv[])
23 vtkSmartPointer<vtkFcsvReader> reader = vtkSmartPointer<vtkFcsvReader>::New();
25 reader->SetFileName(argv[1]);
28 LOG_DEBUG(
"Color information:" << reader->GetFcsvDataObject().color[0]
29 <<
" " << reader->GetFcsvDataObject().color[1]
30 <<
" " << reader->GetFcsvDataObject().color[2]);
34 std::vector<FcsvPoint>::const_iterator it = reader->GetFcsvDataObject().points.begin();
35 while (it != reader->GetFcsvDataObject().points.end())
37 LOG_DEBUG(
"Point position: " << (*it).position);
41 if ((*it).position[0] != -319.5)
43 LOG_ERROR(
"Point position mismatch");
46 if ((*it).position[1] != -224.608)
48 LOG_ERROR(
"Point position mismatch");
51 if ((*it).position[2] != 77)
53 LOG_ERROR(
"Point position mismatch");
56 if ((*it).selected != 0)
58 LOG_ERROR(
"Selected mismatch");
61 if ((*it).visibility != 1)
63 LOG_ERROR(
"Visibility mismatch");
69 if ((*it).selected != 1)
71 LOG_ERROR(
"Selected mismatch");
74 if ((*it).visibility != 0)
76 LOG_ERROR(
"Visibility mismatch");
int main(int argc, char *argv[])
static vtkIGSIOLogger * Instance()