ProjectionAlgos.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (c) Jürgen Riegel          (juergen.riegel@web.de) 2009     *
00003  *                                                                         *
00004  *   This file is part of the FreeCAD CAx development system.              *
00005  *                                                                         *
00006  *   This library is free software; you can redistribute it and/or         *
00007  *   modify it under the terms of the GNU Library General Public           *
00008  *   License as published by the Free Software Foundation; either          *
00009  *   version 2 of the License, or (at your option) any later version.      *
00010  *                                                                         *
00011  *   This library  is distributed in the hope that it will be useful,      *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU Library General Public License for more details.                  *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Library General Public     *
00017  *   License along with this library; see the file COPYING.LIB. If not,    *
00018  *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
00019  *   Suite 330, Boston, MA  02111-1307, USA                                *
00020  *                                                                         *
00021  ***************************************************************************/
00022 
00023 
00024 #ifndef _ProjectionAlgos_h_
00025 #define _ProjectionAlgos_h_
00026 
00027 #include <TopoDS_Shape.hxx>
00028 #include <Base/Vector3D.h>
00029 #include <string>
00030 
00031 class BRepAdaptor_Curve;
00032 
00033 namespace Drawing
00034 {
00035 
00038 class DrawingExport ProjectionAlgos
00039 {
00040 public:
00042     ProjectionAlgos(const TopoDS_Shape &Input,const Base::Vector3f &Dir);
00043     virtual ~ProjectionAlgos();
00044 
00045     void execute(void);
00046     static TopoDS_Shape invertY(const TopoDS_Shape&);
00047 
00048     enum SvgExtractionType { 
00049         Plain = 0,
00050         WithHidden = 1,
00051         WithSmooth = 2
00052     };
00053 
00054     std::string getSVG(SvgExtractionType type, float scale);
00055     std::string getDXF(SvgExtractionType type, float scale);//add by Dan Falck 2011/09/25 
00056 
00057 
00058     const TopoDS_Shape &Input;
00059     const Base::Vector3f &Direction;
00060 
00061     TopoDS_Shape V ;// hard edge visibly
00062     TopoDS_Shape V1;// Smoth edges visibly
00063     TopoDS_Shape VN;// contour edges visibly
00064     TopoDS_Shape VO;// contours apparents visibly
00065     TopoDS_Shape VI;// isoparamtriques   visibly
00066     TopoDS_Shape H ;// hard edge       invisibly
00067     TopoDS_Shape H1;// Smoth edges  invisibly
00068     TopoDS_Shape HN;// contour edges invisibly
00069     TopoDS_Shape HO;// contours apparents invisibly
00070     TopoDS_Shape HI;// isoparamtriques   invisibly
00071 };
00072 
00073 } //namespace Drawing
00074 
00075 
00076 #endif

Generated on Wed Nov 23 19:00:30 2011 for FreeCAD by  doxygen 1.6.1