00001 #ifndef QTPOLYRASTERIZER_H 00002 #define QTPOLYRASTERIZER_H 00003 00004 #include <QImage> 00005 //#include <QSvgGenerator> 00006 #include <QPainter> 00007 #include <vcg/space/point2.h> 00008 #include <vcg/space/color4.h> 00009 #include <vcg/space/box2.h> 00010 #include <vcg/math/similarity2.h> 00011 #include <vcg/space/rasterized_outline2_packer.h> 00012 00014 class QtOutline2Rasterizer 00015 { 00016 public: 00017 static void rasterize(vcg::RasterizedOutline2 &poly, 00018 float scaleFactor, 00019 int rast_i, int rotationNum, int cellSize); 00020 00021 static std::vector<std::vector<int> > rotateGridCWise(std::vector< std::vector<int> >& inGrid); 00022 00023 }; 00024 #endif // QTPOLYRASTERIZER_H