39 #include <QtGui/qapplication.h> 
   40 #include "DGtal/io/viewers/Viewer3D.h" 
   41 #include "DGtal/io/DrawWithDisplay3DModifier.h" 
   42 #include "DGtal/io/readers/PointListReader.h" 
   43 #include "DGtal/io/CDrawableWithDisplay3D.h" 
   45 #include "DGtal/base/Common.h" 
   46 #include "DGtal/helpers/StdDefs.h" 
   47 #include "ConfigExamples.h" 
   49 #include "DGtal/geometry/curves/ArithmeticalDSS3d.h" 
   50 #include "DGtal/geometry/curves/SaturatedSegmentation.h" 
   54 using namespace DGtal;
 
   60 int main( 
int argc, 
char** argv )
 
   65   typedef std::vector<Point>::iterator Iterator;
 
   69   string inputFilename = examplesPath + 
"samples/sinus.dat"; 
 
   74   Decomposition theDecomposition(sequence.begin(), sequence.end(), algo);
 
   79   #ifdef WITH_VISU3D_QGLVIEWER 
   81   QApplication application(argc,argv);
 
   89     Decomposition::SegmentComputerIterator i = theDecomposition.begin();
 
   90     for ( ; i != theDecomposition.end(); ++i) {
 
   91       SegmentComputer currentSegmentComputer(*i);
 
   92        viewer << 
SetMode3D(currentSegmentComputer.className(), 
"Points"); 
 
   93       viewer << currentSegmentComputer;  
 
   94        viewer << 
SetMode3D(currentSegmentComputer.className(), 
"BoundingBox"); 
 
   95       viewer << currentSegmentComputer;  
 
  100   viewer << Viewer3D::updateDisplay;
 
  101   flag = application.exec();