FreeCAD

Форк
0
/
ViewProviderSphereParametric.cpp 
77 строк · 3.0 Кб
1
/***************************************************************************
2
 *   Copyright (c) 2004 Jürgen Riegel <juergen.riegel@web.de>              *
3
 *                                                                         *
4
 *   This file is part of the FreeCAD CAx development system.              *
5
 *                                                                         *
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.      *
10
 *                                                                         *
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.                  *
15
 *                                                                         *
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                                *
20
 *                                                                         *
21
 ***************************************************************************/
22

23
#include "PreCompiled.h"
24

25
#include "ViewProviderSphereParametric.h"
26

27
using namespace PartGui;
28

29

30
//**************************************************************************
31
// Construction/Destruction
32

33
PROPERTY_SOURCE(PartGui::ViewProviderSphereParametric, PartGui::ViewProviderPrimitive)
34

35
ViewProviderSphereParametric::ViewProviderSphereParametric()
36
{
37
  sPixmap = "Part_Sphere_Parametric";
38
}
39

40
ViewProviderSphereParametric::~ViewProviderSphereParametric() = default;
41

42
std::vector<std::string> ViewProviderSphereParametric::getDisplayModes() const
43
{
44
  std::vector<std::string> StrList;
45

46
  // add your own modes
47
  StrList.emplace_back("Flat Lines");
48
  StrList.emplace_back("Shaded");
49
  StrList.emplace_back("Wireframe");
50
  StrList.emplace_back("Points");
51

52
  return StrList;
53
}
54

55
// ----------------------------------------------------------------------------
56

57
PROPERTY_SOURCE(PartGui::ViewProviderEllipsoid, PartGui::ViewProviderPrimitive)
58

59
ViewProviderEllipsoid::ViewProviderEllipsoid()
60
{
61
    sPixmap = "Part_Ellipsoid_Parametric";
62
}
63

64
ViewProviderEllipsoid::~ViewProviderEllipsoid() = default;
65

66
std::vector<std::string> ViewProviderEllipsoid::getDisplayModes() const
67
{
68
  std::vector<std::string> StrList;
69

70
  // add your own modes
71
  StrList.emplace_back("Flat Lines");
72
  StrList.emplace_back("Shaded");
73
  StrList.emplace_back("Wireframe");
74
  StrList.emplace_back("Points");
75

76
  return StrList;
77
}
78

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.