TopologyPy.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   (c) Jürgen Riegel (juergen.riegel@web.de) 2002                        *   
00003  *                                                                         *
00004  *   This file is part of the FreeCAD CAx development system.              *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU Library General Public License (LGPL)   *
00008  *   as published by the Free Software Foundation; either version 2 of     *
00009  *   the License, or (at your option) any later version.                   *
00010  *   for detail see the LICENCE text file.                                 *
00011  *                                                                         *
00012  *   FreeCAD is distributed in the hope that it will be useful,            *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        * 
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU Library General Public License for more details.                  *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU Library General Public     *
00018  *   License along with FreeCAD; if not, write to the Free Software        * 
00019  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00020  *   USA                                                                   *
00021  *                                                                         *
00022  *   Juergen Riegel 2002                                                   *
00023  ***************************************************************************/
00024 
00025 
00026 #ifndef __TOPOLOGY_H__
00027 #define __TOPOLOGY_H__
00028 #if 0
00029 // Std. configurations
00030 
00031 #include <Base/PyObjectBase.h>
00032 
00033 
00034 #include <TopoDS_Shape.hxx>
00035 
00036 namespace Part
00037 {
00038 
00044 class AppPartExport TopoShapePyOld :public Base::PyObjectBase
00045 {
00047         Py_Header;
00048 
00049 protected:
00051         ~TopoShapePyOld();
00052 
00053 public:
00054 
00056   TopoShapePyOld(PyTypeObject *T = &Type);
00057   TopoShapePyOld(const TopoDS_Shape &cShape, PyTypeObject *T = &TopoShapePyOld::Type);
00059   static PyObject *PyMake(PyTypeObject*, PyObject*, PyObject*);
00060   static int PyInit(PyObject*, PyObject*, PyObject*);
00061 
00062 
00063         //---------------------------------------------------------------------
00064         // exported functions goes here +++++++++++++++++++++++++++++++++++++++
00065         //---------------------------------------------------------------------
00066 
00068         TopoDS_Shape getTopoShape(void){return _cTopoShape;}
00069 
00070         //---------------------------------------------------------------------
00071         // python exports goes here +++++++++++++++++++++++++++++++++++++++++++ 
00072         //---------------------------------------------------------------------
00073 
00074         virtual PyObject *_repr(void);                                  // the representation
00075         PyObject *_getattr(char *attr);                         // __getattr__ function
00076         // getter setter
00077         int _setattr(char *attr, PyObject *value);      // __setattr__ function
00078 
00079         // methods
00080         PYFUNCDEF_D (TopoShapePyOld,hasChild);
00081         PYFUNCDEF_D (TopoShapePyOld,isNull);
00082         PYFUNCDEF_D (TopoShapePyOld,isValid);
00083         PYFUNCDEF_D (TopoShapePyOld,analyze);
00084         PYFUNCDEF_D (TopoShapePyOld,importIGES);
00085         PYFUNCDEF_D (TopoShapePyOld,exportIGES);
00086         PYFUNCDEF_D (TopoShapePyOld,importSTEP);
00087         PYFUNCDEF_D (TopoShapePyOld,exportSTEP);
00088         PYFUNCDEF_D (TopoShapePyOld,importBREP);
00089         PYFUNCDEF_D (TopoShapePyOld,exportBREP);
00090         PYFUNCDEF_D (TopoShapePyOld,exportSTL);
00091 
00092 
00093   TopoDS_Shape &getShape(void){return _cTopoShape;}
00094 
00095 
00096 protected:
00098         TopoDS_Shape _cTopoShape;
00099 
00100 };
00101 
00102 
00103 } //namespace App
00104 #endif
00105 #endif // __TOPOLOGY_H__

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