1
/***************************************************************************
2
* Copyright (c) 2004 Jürgen Riegel <juergen.riegel@web.de> *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 59 Temple Place, *
19
* Suite 330, Boston, MA 02111-1307, USA *
21
***************************************************************************/
23
#include "PreCompiled.h"
25
#include "ViewProviderSphereParametric.h"
27
using namespace PartGui;
30
//**************************************************************************
31
// Construction/Destruction
33
PROPERTY_SOURCE(PartGui::ViewProviderSphereParametric, PartGui::ViewProviderPrimitive)
35
ViewProviderSphereParametric::ViewProviderSphereParametric()
37
sPixmap = "Part_Sphere_Parametric";
40
ViewProviderSphereParametric::~ViewProviderSphereParametric() = default;
42
std::vector<std::string> ViewProviderSphereParametric::getDisplayModes() const
44
std::vector<std::string> StrList;
47
StrList.emplace_back("Flat Lines");
48
StrList.emplace_back("Shaded");
49
StrList.emplace_back("Wireframe");
50
StrList.emplace_back("Points");
55
// ----------------------------------------------------------------------------
57
PROPERTY_SOURCE(PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPrimitive)
59
ViewProviderEllipsoid::ViewProviderEllipsoid()
61
sPixmap = "Part_Ellipsoid_Parametric";
64
ViewProviderEllipsoid::~ViewProviderEllipsoid() = default;
66
std::vector<std::string> ViewProviderEllipsoid::getDisplayModes() const
68
std::vector<std::string> StrList;
71
StrList.emplace_back("Flat Lines");
72
StrList.emplace_back("Shaded");
73
StrList.emplace_back("Wireframe");
74
StrList.emplace_back("Points");