Part2DObject.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (c) Jürgen Riegel          (juergen.riegel@web.de) 2008     *
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 
00025 #ifndef PART_PART2DOBJECT_H
00026 #define PART_PART2DOBJECT_H
00027 
00028 #include <App/PropertyStandard.h>
00029 
00030 #include "PartFeature.h"
00031 
00032 class TopoDS_Face;
00033 
00034 namespace Part
00035 {
00036 class Geometry;
00037 
00051 class PartExport Part2DObject : public Part::Feature
00052 {
00053     PROPERTY_HEADER(Part::Part2DObject);
00054 
00055 public:
00056     Part2DObject();
00057 
00059     App::PropertyLinkSub        Support;
00060 
00069     static Base::Placement positionBySupport(const TopoDS_Face &face, const Base::Placement &Place);
00070 
00078     static bool seekTrimPoints(const std::vector<Geometry *> &geomlist,
00079                                int GeoId, const Base::Vector3d &point,
00080                                int &GeoId1, Base::Vector3d &intersect1,
00081                                int &GeoId2, Base::Vector3d &intersect2);
00082 
00085 
00086     App::DocumentObjectExecReturn *execute(void);
00087 
00089     const char* getViewProviderName(void) const {
00090         return "PartGui::ViewProvider2DObject";
00091     }
00093 
00094 };
00095 
00096 typedef App::FeaturePythonT<Part2DObject> Part2DObjectPython;
00097 
00098 } //namespace Part
00099 
00100 
00101 #endif // PART_PART2DOBJECT_H

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