Debian Codegraph @

src/Gui/ArcEngine.h

raw
1 /***************************************************************************
2 * Copyright (c) 2013 Thomas Anderson <blobfish[at]gmx.com> *
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 #ifndef GUI_ARCENGINE_H
24 #define GUI_ARCENGINE_H
25
26 #include <FCGlobal.h>
27 #include <Inventor/fields/SoMFColor.h>
28 #include <Inventor/engines/SoEngineOutput.h>
29
30 #include <Inventor/engines/SoSubEngine.h>
31 #include <Inventor/engines/SoEngine.h>
32 #include <Inventor/fields/SoSFColor.h>
33 #include <Inventor/fields/SoSFFloat.h>
34 #include <Inventor/fields/SoSFMatrix.h>
35 #include <Inventor/fields/SoSFRotation.h>
36 #include <Inventor/fields/SoSFString.h>
37 #include <Inventor/fields/SoSFVec3f.h>
38 #include <Inventor/nodekits/SoSeparatorKit.h>
39
40 class SoText2;
41 class SoTranslation;
42 class SoCoordinate3;
43 class SoIndexedLineSet;
44
45 namespace Gui
46 {
47
48
49 // /*used for generating points for arc display*/
50 class GuiExport ArcEngine: public SoEngine
51 {
52 SO_ENGINE_HEADER(ArcEngine);
53
54 public:
55 ArcEngine();
56 static void initClass();
57
58 SoSFFloat radius;
59 SoSFFloat angle;
60 SoSFFloat deviation;
61
62 SoEngineOutput points;
63 SoEngineOutput pointCount;
64 SoEngineOutput midpoint;
65
66 protected:
67 void evaluate() override;
68
69 private:
70 ~ArcEngine() override
71 {}
72 void defaultValues(); // some non error values if something goes wrong.
73 };
74
75 } // namespace Gui
76
77 #endif // GUI_ARCENGINE_H