PropertyPointKernel.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (c) 2006 Werner Mayer <wmayer[at]users.sourceforge.net>     *
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 POINTS_PROPERTYPOINTKERNEL_H
00025 #define POINTS_PROPERTYPOINTKERNEL_H
00026 
00027 #include "Points.h"
00028 
00029 namespace Points
00030 {
00031 
00034 class PointsExport PropertyPointKernel : public App::PropertyComplexGeoData
00035 {
00036     TYPESYSTEM_HEADER();
00037 
00038 public:
00039     PropertyPointKernel();
00040     ~PropertyPointKernel();
00041 
00044 
00045     void setValue( const PointKernel& m);
00047     const PointKernel &getValue(void) const;
00048     const Data::ComplexGeoData* getComplexData() const;
00050 
00054     Base::BoundBox3d getBoundingBox() const;
00056     virtual void getFaces(std::vector<Base::Vector3d> &Points,
00057         std::vector<Data::ComplexGeoData::Facet> &Topo,
00058         float Accuracy, uint16_t flags=0) const;
00060 
00063     PyObject* getPyObject(void);
00064     void setPyObject(PyObject *value);
00066 
00069 
00070     App::Property *Copy(void) const;
00072     void Paste(const App::Property &from);
00073     unsigned int getMemSize (void) const;
00075 
00078     void Save (Base::Writer &writer) const;
00079     void Restore(Base::XMLReader &reader);
00080     void SaveDocFile (Base::Writer &writer) const;
00081     void RestoreDocFile(Base::Reader &reader);
00083 
00086 
00087     void transformGeometry(const Base::Matrix4D &rclMat);
00088     void removeIndices( const std::vector<unsigned long>& );
00090 
00091 private:
00092     Base::Reference<PointKernel> _cPoints;
00093 };
00094 
00095 } // namespace Points
00096 
00097 
00098 #endif // POINTS_PROPERTYPOINTKERNEL_H 

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