1
/***************************************************************************
2
* Copyright (c) 2006 Werner Mayer <werner.wm.mayer@gmx.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
***************************************************************************/
24
#ifndef FEATURE_MESH_SOLID_H
25
#define FEATURE_MESH_SOLID_H
27
#include "MeshFeature.h"
29
#include <App/PropertyStandard.h>
30
#include <App/PropertyLinks.h>
36
* @author Werner Mayer
38
class Sphere : public Mesh::Feature
40
PROPERTY_HEADER(Mesh::Sphere);
45
App::PropertyFloatConstraint Radius;
46
App::PropertyIntegerConstraint Sampling;
48
/** @name methods override Feature */
50
/// recalculate the Feature
51
App::DocumentObjectExecReturn *execute(void);
52
short mustExecute() const;
56
// -------------------------------------------------------------
58
class Ellipsoid : public Mesh::Feature
60
PROPERTY_HEADER(Mesh::Ellipsoid);
65
App::PropertyFloatConstraint Radius1;
66
App::PropertyFloatConstraint Radius2;
67
App::PropertyIntegerConstraint Sampling;
69
/** @name methods override Feature */
71
/// recalculate the Feature
72
App::DocumentObjectExecReturn *execute(void);
73
short mustExecute() const;
77
// -------------------------------------------------------------
79
class Cylinder : public Mesh::Feature
81
PROPERTY_HEADER(Mesh::Cylinder);
86
App::PropertyFloatConstraint Radius;
87
App::PropertyFloatConstraint Length;
88
App::PropertyFloatConstraint EdgeLength;
89
App::PropertyBool Closed;
90
App::PropertyIntegerConstraint Sampling;
92
/** @name methods override Feature */
94
/// recalculate the Feature
95
App::DocumentObjectExecReturn *execute(void);
96
short mustExecute() const;
100
// -------------------------------------------------------------
102
class Cone : public Mesh::Feature
104
PROPERTY_HEADER(Mesh::Cone);
109
App::PropertyFloatConstraint Radius1;
110
App::PropertyFloatConstraint Radius2;
111
App::PropertyFloatConstraint Length;
112
App::PropertyFloatConstraint EdgeLength;
113
App::PropertyBool Closed;
114
App::PropertyIntegerConstraint Sampling;
116
/** @name methods override Feature */
118
/// recalculate the Feature
119
App::DocumentObjectExecReturn *execute(void);
120
short mustExecute() const;
124
// -------------------------------------------------------------
126
class Torus : public Mesh::Feature
128
PROPERTY_HEADER(Mesh::Torus);
133
App::PropertyFloatConstraint Radius1;
134
App::PropertyFloatConstraint Radius2;
135
App::PropertyIntegerConstraint Sampling;
137
/** @name methods override Feature */
139
/// recalculate the Feature
140
App::DocumentObjectExecReturn *execute(void);
141
short mustExecute() const;
145
// -------------------------------------------------------------
147
class Cube : public Mesh::Feature
149
PROPERTY_HEADER(Mesh::Cube);
154
App::PropertyFloatConstraint Length;
155
App::PropertyFloatConstraint Width;
156
App::PropertyFloatConstraint Height;
158
/** @name methods override Feature */
160
/// recalculate the Feature
161
App::DocumentObjectExecReturn *execute(void);
162
short mustExecute() const;
168
#endif // FEATURE_MESH_SOLID_H