diff --git a/src/Mod/Part/App/PrimitiveFeature.h b/src/Mod/Part/App/PrimitiveFeature.h index 9fbf133af..1f3589ed7 100644 --- a/src/Mod/Part/App/PrimitiveFeature.h +++ b/src/Mod/Part/App/PrimitiveFeature.h @@ -117,6 +117,10 @@ public: /// recalculate the feature App::DocumentObjectExecReturn *execute(void); short mustExecute() const; + /// returns the type name of the ViewProvider + const char* getViewProviderName(void) const { + return "PartGui::ViewProviderPlaneParametric"; + } //@} }; @@ -137,6 +141,10 @@ public: /// recalculate the feature App::DocumentObjectExecReturn *execute(void); short mustExecute() const; + /// returns the type name of the ViewProvider + const char* getViewProviderName(void) const { + return "PartGui::ViewProviderSphereParametric"; + } //@} }; @@ -180,6 +188,10 @@ public: /// recalculate the feature App::DocumentObjectExecReturn *execute(void); short mustExecute() const; + /// returns the type name of the ViewProvider + const char* getViewProviderName(void) const { + return "PartGui::ViewProviderCylinderParametric"; + } //@} }; @@ -200,6 +212,10 @@ public: /// recalculate the feature App::DocumentObjectExecReturn *execute(void); short mustExecute() const; + /// returns the type name of the ViewProvider + const char* getViewProviderName(void) const { + return "PartGui::ViewProviderConeParametric"; + } //@} }; @@ -221,6 +237,10 @@ public: /// recalculate the feature App::DocumentObjectExecReturn *execute(void); short mustExecute() const; + /// returns the type name of the ViewProvider + const char* getViewProviderName(void) const { + return "PartGui::ViewProviderTorusParametric"; + } //@} }; diff --git a/src/Mod/Part/Gui/AppPartGui.cpp b/src/Mod/Part/Gui/AppPartGui.cpp index e7a02cc7f..4409a9bd6 100644 --- a/src/Mod/Part/Gui/AppPartGui.cpp +++ b/src/Mod/Part/Gui/AppPartGui.cpp @@ -41,6 +41,11 @@ #include "ViewProviderPointParametric.h" #include "ViewProviderEllipseParametric.h" #include "ViewProviderHelixParametric.h" +#include "ViewProviderPlaneParametric.h" +#include "ViewProviderSphereParametric.h" +#include "ViewProviderCylinderParametric.h" +#include "ViewProviderConeParametric.h" +#include "ViewProviderTorusParametric.h" #include "DlgSettingsGeneral.h" #include "DlgSettings3DViewPartImp.h" @@ -122,6 +127,11 @@ void PartGuiExport initPartGui() PartGui::ViewProviderPointParametric ::init(); PartGui::ViewProviderEllipseParametric ::init(); PartGui::ViewProviderHelixParametric ::init(); + PartGui::ViewProviderPlaneParametric ::init(); + PartGui::ViewProviderSphereParametric ::init(); + PartGui::ViewProviderCylinderParametric ::init(); + PartGui::ViewProviderConeParametric ::init(); + PartGui::ViewProviderTorusParametric ::init(); PartGui::Workbench ::init(); diff --git a/src/Mod/Part/Gui/CMakeLists.txt b/src/Mod/Part/Gui/CMakeLists.txt index 3085bc5f1..035c7c373 100644 --- a/src/Mod/Part/Gui/CMakeLists.txt +++ b/src/Mod/Part/Gui/CMakeLists.txt @@ -146,6 +146,16 @@ SET(PartGui_SRCS ViewProviderEllipseParametric.h ViewProviderHelixParametric.cpp ViewProviderHelixParametric.h + ViewProviderPlaneParametric.cpp + ViewProviderPlaneParametric.h + ViewProviderSphereParametric.cpp + ViewProviderSphereParametric.h + ViewProviderCylinderParametric.cpp + ViewProviderCylinderParametric.h + ViewProviderConeParametric.cpp + ViewProviderConeParametric.h + ViewProviderTorusParametric.cpp + ViewProviderTorusParametric.h ViewProviderCurveNet.cpp ViewProviderCurveNet.h ViewProviderImport.cpp diff --git a/src/Mod/Part/Gui/ViewProviderConeParametric.cpp b/src/Mod/Part/Gui/ViewProviderConeParametric.cpp new file mode 100644 index 000000000..7b2a0f1f9 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderConeParametric.cpp @@ -0,0 +1,75 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 + +/// Here the FreeCAD includes sorted by Base,App,Gui...... +#include + +#include "ViewProviderConeParametric.h" + + +//#include "Tree.h" + + + +using namespace PartGui; +using namespace std; + + +//************************************************************************** +// Construction/Destruction + +PROPERTY_SOURCE(PartGui::ViewProviderConeParametric, PartGui::ViewProviderPart) + + +ViewProviderConeParametric::ViewProviderConeParametric() +{ + sPixmap = "Tree_Part_Cone_Parametric.svg"; +} + +ViewProviderConeParametric::~ViewProviderConeParametric() +{ + +} + + + +// ********************************************************************************** + +std::vector ViewProviderConeParametric::getDisplayModes(void) const +{ + // get the modes of the father + std::vector StrList; + + // add your own modes + StrList.push_back("Flat Lines"); + StrList.push_back("Shaded"); + StrList.push_back("Wireframe"); + StrList.push_back("Points"); + + return StrList; +} diff --git a/src/Mod/Part/Gui/ViewProviderConeParametric.h b/src/Mod/Part/Gui/ViewProviderConeParametric.h new file mode 100644 index 000000000..9fc6f4828 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderConeParametric.h @@ -0,0 +1,64 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 PARTGUI_VIEWPROVIDERCONEPARAMETRIC_H +#define PARTGUI_VIEWPROVIDERCONEPARAMETRIC_H + +#include "ViewProvider.h" + + +class TopoDS_Shape; +class TopoDS_Face; +class SoSeparator; +class SbVec3f; +class SoTransform; + +namespace Gui { + class View3DInventorViewer; + class SoFCSelection; +} + +namespace PartGui { + + +class PartGuiExport ViewProviderConeParametric:public ViewProviderPart +{ + PROPERTY_HEADER(PartGui::ViewProviderConeParametric); + +public: + /// constructor + ViewProviderConeParametric(); + /// destructor + virtual ~ViewProviderConeParametric(); + + std::vector getDisplayModes(void) const; + +protected: + +}; + +} // namespace PartGui + + +#endif // PARTGUI_VIEWPROVIDERCONEPARAMETRIC_H + diff --git a/src/Mod/Part/Gui/ViewProviderCylinderParametric.cpp b/src/Mod/Part/Gui/ViewProviderCylinderParametric.cpp new file mode 100644 index 000000000..8cd53ebbb --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderCylinderParametric.cpp @@ -0,0 +1,75 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 + +/// Here the FreeCAD includes sorted by Base,App,Gui...... +#include + +#include "ViewProviderCylinderParametric.h" + + +//#include "Tree.h" + + + +using namespace PartGui; +using namespace std; + + +//************************************************************************** +// Construction/Destruction + +PROPERTY_SOURCE(PartGui::ViewProviderCylinderParametric, PartGui::ViewProviderPart) + + +ViewProviderCylinderParametric::ViewProviderCylinderParametric() +{ + sPixmap = "Tree_Part_Cylinder_Parametric.svg"; +} + +ViewProviderCylinderParametric::~ViewProviderCylinderParametric() +{ + +} + + + +// ********************************************************************************** + +std::vector ViewProviderCylinderParametric::getDisplayModes(void) const +{ + // get the modes of the father + std::vector StrList; + + // add your own modes + StrList.push_back("Flat Lines"); + StrList.push_back("Shaded"); + StrList.push_back("Wireframe"); + StrList.push_back("Points"); + + return StrList; +} diff --git a/src/Mod/Part/Gui/ViewProviderCylinderParametric.h b/src/Mod/Part/Gui/ViewProviderCylinderParametric.h new file mode 100644 index 000000000..133eccca9 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderCylinderParametric.h @@ -0,0 +1,64 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 PARTGUI_VIEWPROVIDERCYLINDERPARAMETRIC_H +#define PARTGUI_VIEWPROVIDERCYLINDERPARAMETRIC_H + +#include "ViewProvider.h" + + +class TopoDS_Shape; +class TopoDS_Face; +class SoSeparator; +class SbVec3f; +class SoTransform; + +namespace Gui { + class View3DInventorViewer; + class SoFCSelection; +} + +namespace PartGui { + + +class PartGuiExport ViewProviderCylinderParametric:public ViewProviderPart +{ + PROPERTY_HEADER(PartGui::ViewProviderCylinderParametric); + +public: + /// constructor + ViewProviderCylinderParametric(); + /// destructor + virtual ~ViewProviderCylinderParametric(); + + std::vector getDisplayModes(void) const; + +protected: + +}; + +} // namespace PartGui + + +#endif // PARTGUI_VIEWPROVIDERCYLINDERPARAMETRIC_H + diff --git a/src/Mod/Part/Gui/ViewProviderLineParametric.h b/src/Mod/Part/Gui/ViewProviderLineParametric.h index aff41d1c0..d71b34cd1 100644 --- a/src/Mod/Part/Gui/ViewProviderLineParametric.h +++ b/src/Mod/Part/Gui/ViewProviderLineParametric.h @@ -60,5 +60,5 @@ protected: } // namespace PartGui -#endif // PARTGUI_VIEWPROVIDERCIRCLEPARAMETRIC_H +#endif // PARTGUI_VIEWPROVIDERLINEPARAMETRIC_H diff --git a/src/Mod/Part/Gui/ViewProviderPlaneParametric.cpp b/src/Mod/Part/Gui/ViewProviderPlaneParametric.cpp new file mode 100644 index 000000000..1e63cc4b7 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderPlaneParametric.cpp @@ -0,0 +1,75 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 + +/// Here the FreeCAD includes sorted by Base,App,Gui...... +#include + +#include "ViewProviderPlaneParametric.h" + + +//#include "Tree.h" + + + +using namespace PartGui; +using namespace std; + + +//************************************************************************** +// Construction/Destruction + +PROPERTY_SOURCE(PartGui::ViewProviderPlaneParametric, PartGui::ViewProviderPart) + + +ViewProviderPlaneParametric::ViewProviderPlaneParametric() +{ + sPixmap = "Tree_Part_Plane_Parametric.svg"; +} + +ViewProviderPlaneParametric::~ViewProviderPlaneParametric() +{ + +} + + + +// ********************************************************************************** + +std::vector ViewProviderPlaneParametric::getDisplayModes(void) const +{ + // get the modes of the father + std::vector StrList; + + // add your own modes + StrList.push_back("Flat Lines"); + StrList.push_back("Shaded"); + StrList.push_back("Wireframe"); + StrList.push_back("Points"); + + return StrList; +} diff --git a/src/Mod/Part/Gui/ViewProviderPlaneParametric.h b/src/Mod/Part/Gui/ViewProviderPlaneParametric.h new file mode 100644 index 000000000..951499759 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderPlaneParametric.h @@ -0,0 +1,64 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 PARTGUI_VIEWPROVIDERPLANEPARAMETRIC_H +#define PARTGUI_VIEWPROVIDERPLANEPARAMETRIC_H + +#include "ViewProvider.h" + + +class TopoDS_Shape; +class TopoDS_Face; +class SoSeparator; +class SbVec3f; +class SoTransform; + +namespace Gui { + class View3DInventorViewer; + class SoFCSelection; +} + +namespace PartGui { + + +class PartGuiExport ViewProviderPlaneParametric:public ViewProviderPart +{ + PROPERTY_HEADER(PartGui::ViewProviderPlaneParametric); + +public: + /// constructor + ViewProviderPlaneParametric(); + /// destructor + virtual ~ViewProviderPlaneParametric(); + + std::vector getDisplayModes(void) const; + +protected: + +}; + +} // namespace PartGui + + +#endif // PARTGUI_VIEWPROVIDERPLANEPARAMETRIC_H + diff --git a/src/Mod/Part/Gui/ViewProviderSphereParametric.cpp b/src/Mod/Part/Gui/ViewProviderSphereParametric.cpp new file mode 100644 index 000000000..4c525c5e0 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderSphereParametric.cpp @@ -0,0 +1,75 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 + +/// Here the FreeCAD includes sorted by Base,App,Gui...... +#include + +#include "ViewProviderSphereParametric.h" + + +//#include "Tree.h" + + + +using namespace PartGui; +using namespace std; + + +//************************************************************************** +// Construction/Destruction + +PROPERTY_SOURCE(PartGui::ViewProviderSphereParametric, PartGui::ViewProviderPart) + + +ViewProviderSphereParametric::ViewProviderSphereParametric() +{ + sPixmap = "Tree_Part_Sphere_Parametric.svg"; +} + +ViewProviderSphereParametric::~ViewProviderSphereParametric() +{ + +} + + + +// ********************************************************************************** + +std::vector ViewProviderSphereParametric::getDisplayModes(void) const +{ + // get the modes of the father + std::vector StrList; + + // add your own modes + StrList.push_back("Flat Lines"); + StrList.push_back("Shaded"); + StrList.push_back("Wireframe"); + StrList.push_back("Points"); + + return StrList; +} diff --git a/src/Mod/Part/Gui/ViewProviderSphereParametric.h b/src/Mod/Part/Gui/ViewProviderSphereParametric.h new file mode 100644 index 000000000..90dfe680c --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderSphereParametric.h @@ -0,0 +1,64 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 PARTGUI_VIEWPROVIDERSPHEREPARAMETRIC_H +#define PARTGUI_VIEWPROVIDERSPHEREPARAMETRIC_H + +#include "ViewProvider.h" + + +class TopoDS_Shape; +class TopoDS_Face; +class SoSeparator; +class SbVec3f; +class SoTransform; + +namespace Gui { + class View3DInventorViewer; + class SoFCSelection; +} + +namespace PartGui { + + +class PartGuiExport ViewProviderSphereParametric:public ViewProviderPart +{ + PROPERTY_HEADER(PartGui::ViewProviderSphereParametric); + +public: + /// constructor + ViewProviderSphereParametric(); + /// destructor + virtual ~ViewProviderSphereParametric(); + + std::vector getDisplayModes(void) const; + +protected: + +}; + +} // namespace PartGui + + +#endif // PARTGUI_VIEWPROVIDERSPHEREPARAMETRIC_H + diff --git a/src/Mod/Part/Gui/ViewProviderTorusParametric.cpp b/src/Mod/Part/Gui/ViewProviderTorusParametric.cpp new file mode 100644 index 000000000..c84f0bcd4 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderTorusParametric.cpp @@ -0,0 +1,75 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 + +/// Here the FreeCAD includes sorted by Base,App,Gui...... +#include + +#include "ViewProviderTorusParametric.h" + + +//#include "Tree.h" + + + +using namespace PartGui; +using namespace std; + + +//************************************************************************** +// Construction/Destruction + +PROPERTY_SOURCE(PartGui::ViewProviderTorusParametric, PartGui::ViewProviderPart) + + +ViewProviderTorusParametric::ViewProviderTorusParametric() +{ + sPixmap = "Tree_Part_Torus_Parametric.svg"; +} + +ViewProviderTorusParametric::~ViewProviderTorusParametric() +{ + +} + + + +// ********************************************************************************** + +std::vector ViewProviderTorusParametric::getDisplayModes(void) const +{ + // get the modes of the father + std::vector StrList; + + // add your own modes + StrList.push_back("Flat Lines"); + StrList.push_back("Shaded"); + StrList.push_back("Wireframe"); + StrList.push_back("Points"); + + return StrList; +} diff --git a/src/Mod/Part/Gui/ViewProviderTorusParametric.h b/src/Mod/Part/Gui/ViewProviderTorusParametric.h new file mode 100644 index 000000000..e60523ec4 --- /dev/null +++ b/src/Mod/Part/Gui/ViewProviderTorusParametric.h @@ -0,0 +1,64 @@ +/*************************************************************************** + * Copyright (c) 2004 Jürgen 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 PARTGUI_VIEWPROVIDERTORUSPARAMETRIC_H +#define PARTGUI_VIEWPROVIDERTORUSPARAMETRIC_H + +#include "ViewProvider.h" + + +class TopoDS_Shape; +class TopoDS_Face; +class SoSeparator; +class SbVec3f; +class SoTransform; + +namespace Gui { + class View3DInventorViewer; + class SoFCSelection; +} + +namespace PartGui { + + +class PartGuiExport ViewProviderTorusParametric:public ViewProviderPart +{ + PROPERTY_HEADER(PartGui::ViewProviderTorusParametric); + +public: + /// constructor + ViewProviderTorusParametric(); + /// destructor + virtual ~ViewProviderTorusParametric(); + + std::vector getDisplayModes(void) const; + +protected: + +}; + +} // namespace PartGui + + +#endif // PARTGUI_VIEWPROVIDERTORUSPARAMETRIC_H +