diff --git a/src/Mod/Assembly/App/ConstraintAxis.cpp b/src/Mod/Assembly/App/ConstraintAxis.cpp deleted file mode 100644 index 1361e88c0..000000000 --- a/src/Mod/Assembly/App/ConstraintAxis.cpp +++ /dev/null @@ -1,84 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2012 Juergen Riegel - * 2013 Stefan Tröger - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#include "PreCompiled.h" -#ifndef _PreComp_ -#endif - -#include -#include - -#include "ConstraintAxis.h" -#include "ConstraintAxisPy.h" - -#include "ItemPart.h" - -using namespace Assembly; - -namespace Assembly { - - -PROPERTY_SOURCE(Assembly::ConstraintAxis, Assembly::Constraint) - -ConstraintAxis::ConstraintAxis() -{ - -} - -PyObject *ConstraintAxis::getPyObject(void) -{ - if (PythonObject.is(Py::_None())){ - // ref counter is set to 1 - PythonObject = Py::Object(new ConstraintAxisPy(this),true); - } - return Py::new_reference_to(PythonObject); -} - -short ConstraintAxis::mustExecute() const -{ - //if (Sketch.isTouched() || - // Length.isTouched()) - // return 1; - return 0; -} - -App::DocumentObjectExecReturn *ConstraintAxis::execute(void) -{ - Base::Console().Message("Recalculate axis constraint\n"); - return App::DocumentObject::StdReturn; -} - -void ConstraintAxis::init(boost::shared_ptr< Solver > solver) -{ - Base::Console().Message("Init constraint axis\n"); - - //init the parts and geometries - Constraint::init(solver); - - //init the constraint - m_constraint = solver->createConstraint3D(getNameInDocument(), m_first_geom, m_second_geom, dcm::distance = 0); -} - - -} \ No newline at end of file diff --git a/src/Mod/Assembly/App/ConstraintAxis.h b/src/Mod/Assembly/App/ConstraintAxis.h deleted file mode 100644 index f0e8bc108..000000000 --- a/src/Mod/Assembly/App/ConstraintAxis.h +++ /dev/null @@ -1,60 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2012 Juergen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#ifndef Assembly_ConstraintAxis_H -#define Assembly_ConstraintAxis_H - -#include -#include "Constraint.h" - - -namespace Assembly -{ - -class AssemblyExport ConstraintAxis : public Assembly::Constraint -{ - PROPERTY_HEADER(Assembly::ConstraintAxis); - -public: - ConstraintAxis(); - - PyObject *getPyObject(void); - - /** @name methods override feature */ - //@{ - /// recalculate the feature - App::DocumentObjectExecReturn *execute(void); - short mustExecute() const; - /// returns the type name of the view provider - //const char* getViewProviderName(void) const { - // return "PartDesignGui::ViewProviderConstraintAxis"; - //} - //@} - - virtual void init(boost::shared_ptr solver); -}; - -} //namespace Assembly - - -#endif // Assembly_ConstraintAxis_H diff --git a/src/Mod/Assembly/App/ConstraintContact.cpp b/src/Mod/Assembly/App/ConstraintContact.cpp deleted file mode 100644 index 94c28bc71..000000000 --- a/src/Mod/Assembly/App/ConstraintContact.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2012 Juergen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#include "PreCompiled.h" -#ifndef _PreComp_ -#endif - -#include - -#include "ConstraintContact.h" - - -using namespace Assembly; - -namespace Assembly { - - -PROPERTY_SOURCE(Assembly::ConstraintContact, Assembly::Constraint) - -ConstraintContact::ConstraintContact() -{ - -} - -short ConstraintContact::mustExecute() const -{ - //if (Sketch.isTouched() || - // Length.isTouched()) - // return 1; - return 0; -} - -App::DocumentObjectExecReturn *ConstraintContact::execute(void) -{ - - return App::DocumentObject::StdReturn; -} - -} \ No newline at end of file diff --git a/src/Mod/Assembly/App/ConstraintContact.h b/src/Mod/Assembly/App/ConstraintContact.h deleted file mode 100644 index 659bf4000..000000000 --- a/src/Mod/Assembly/App/ConstraintContact.h +++ /dev/null @@ -1,57 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2012 Juergen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#ifndef Assembly_ConstraintContact_H -#define Assembly_ConstraintContact_H - -#include -#include "Constraint.h" - - -namespace Assembly -{ - -class AssemblyExport ConstraintContact : public Assembly::Constraint -{ - PROPERTY_HEADER(Assembly::ConstraintContact); - -public: - ConstraintContact(); - - - /** @name methods override feature */ - //@{ - /// recalculate the feature - App::DocumentObjectExecReturn *execute(void); - short mustExecute() const; - /// returns the type name of the view provider - //const char* getViewProviderName(void) const { - // return "PartDesignGui::ViewProviderConstraintContact"; - //} - //@} -}; - -} //namespace Assembly - - -#endif // Assembly_ConstraintContact_H diff --git a/src/Mod/Assembly/App/ConstraintOffset.cpp b/src/Mod/Assembly/App/ConstraintOffset.cpp deleted file mode 100644 index e9b62e957..000000000 --- a/src/Mod/Assembly/App/ConstraintOffset.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2010 Juergen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#include "PreCompiled.h" -#ifndef _PreComp_ -#endif - -#include - -#include "ConstraintOffset.h" - - -using namespace Assembly; - -namespace Assembly { - - -PROPERTY_SOURCE(Assembly::ConstraintOffset, Assembly::Constraint) - -ConstraintOffset::ConstraintOffset() -{ - ADD_PROPERTY(Offset,(0)); -} - -short ConstraintOffset::mustExecute() const -{ - //if (Sketch.isTouched() || - // Length.isTouched()) - // return 1; - return 0; -} - -App::DocumentObjectExecReturn *ConstraintOffset::execute(void) -{ - - return App::DocumentObject::StdReturn; -} - -} \ No newline at end of file diff --git a/src/Mod/Assembly/App/ConstraintOffset.h b/src/Mod/Assembly/App/ConstraintOffset.h deleted file mode 100644 index 26cdd20a3..000000000 --- a/src/Mod/Assembly/App/ConstraintOffset.h +++ /dev/null @@ -1,58 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2010 Juergen Riegel * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#ifndef Assembly_ConstraintOffset_H -#define Assembly_ConstraintOffset_H - -#include -#include "Constraint.h" - - -namespace Assembly -{ - -class AssemblyExport ConstraintOffset : public Assembly::Constraint -{ - PROPERTY_HEADER(Assembly::ConstraintOffset); - -public: - ConstraintOffset(); - - App::PropertyFloat Offset; - - /** @name methods override feature */ - //@{ - /// recalculate the feature - App::DocumentObjectExecReturn *execute(void); - short mustExecute() const; - /// returns the type name of the view provider - //const char* getViewProviderName(void) const { - // return "PartDesignGui::ViewProviderConstraintOffset"; - //} - //@} -}; - -} //namespace PartDesign - - -#endif // PART_ConstraintOffset_H