~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Mesh/App/FeatureMeshSolid.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2010-01-11 08:48:33 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100111084833-4g9vgdqbkw8u34zb
Tags: 0.9.2646.5-1
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (c) 2006 Werner Mayer <werner.wm.mayer@gmx.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
 
 
24
 
#ifndef FEATURE_MESH_SOLID_H
25
 
#define FEATURE_MESH_SOLID_H
26
 
 
27
 
#include "MeshFeature.h"
28
 
 
29
 
#include <App/PropertyStandard.h>
30
 
#include <App/PropertyLinks.h>
31
 
 
32
 
namespace Mesh
33
 
{
34
 
 
35
 
/**
36
 
 * @author Werner Mayer
37
 
 */
38
 
class Sphere : public Mesh::Feature
39
 
{
40
 
  PROPERTY_HEADER(Mesh::Sphere);
41
 
 
42
 
public:
 
1
/***************************************************************************
 
2
 *   Copyright (c) 2006 Werner Mayer <wmayer[at]users.sourceforge.net>     *
 
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
 
 
24
#ifndef FEATURE_MESH_SOLID_H
 
25
#define FEATURE_MESH_SOLID_H
 
26
 
 
27
#include "MeshFeature.h"
 
28
 
 
29
#include <App/PropertyStandard.h>
 
30
#include <App/PropertyLinks.h>
 
31
 
 
32
namespace Mesh
 
33
{
 
34
 
 
35
/**
 
36
 * @author Werner Mayer
 
37
 */
 
38
class Sphere : public Mesh::Feature
 
39
{
 
40
  PROPERTY_HEADER(Mesh::Sphere);
 
41
 
 
42
public:
43
43
  Sphere();
44
44
 
45
45
  App::PropertyFloatConstraint Radius;
46
 
  App::PropertyIntegerConstraint Sampling;
47
 
 
48
 
  /** @name methods override Feature */
49
 
  //@{
50
 
  /// recalculate the Feature
51
 
  App::DocumentObjectExecReturn *execute(void);
52
 
  short mustExecute() const;
53
 
  //@}
54
 
};
 
46
  App::PropertyIntegerConstraint Sampling;
 
47
 
 
48
  /** @name methods override Feature */
 
49
  //@{
 
50
  /// recalculate the Feature
 
51
  App::DocumentObjectExecReturn *execute(void);
 
52
  short mustExecute() const;
 
53
  //@}
 
54
};
55
55
 
56
56
// -------------------------------------------------------------
57
57
 
69
69
  /** @name methods override Feature */
70
70
  //@{
71
71
  /// recalculate the Feature
72
 
  App::DocumentObjectExecReturn *execute(void);
73
 
  short mustExecute() const;
 
72
  App::DocumentObjectExecReturn *execute(void);
 
73
  short mustExecute() const;
74
74
  //@}
75
75
};
76
76
 
92
92
  /** @name methods override Feature */
93
93
  //@{
94
94
  /// recalculate the Feature
95
 
  App::DocumentObjectExecReturn *execute(void);
96
 
  short mustExecute() const;
 
95
  App::DocumentObjectExecReturn *execute(void);
 
96
  short mustExecute() const;
97
97
  //@}
98
98
};
99
99
 
116
116
  /** @name methods override Feature */
117
117
  //@{
118
118
  /// recalculate the Feature
119
 
  App::DocumentObjectExecReturn *execute(void);
120
 
  short mustExecute() const;
 
119
  App::DocumentObjectExecReturn *execute(void);
 
120
  short mustExecute() const;
121
121
  //@}
122
122
};
123
123
 
137
137
  /** @name methods override Feature */
138
138
  //@{
139
139
  /// recalculate the Feature
140
 
  App::DocumentObjectExecReturn *execute(void);
141
 
  short mustExecute() const;
 
140
  App::DocumentObjectExecReturn *execute(void);
 
141
  short mustExecute() const;
142
142
  //@}
143
143
};
144
144
 
158
158
  /** @name methods override Feature */
159
159
  //@{
160
160
  /// recalculate the Feature
161
 
  App::DocumentObjectExecReturn *execute(void);
162
 
  short mustExecute() const;
 
161
  App::DocumentObjectExecReturn *execute(void);
 
162
  short mustExecute() const;
163
163
  //@}
164
164
};
165
 
 
166
 
}
167
 
 
168
 
#endif // FEATURE_MESH_SOLID_H 
 
165
 
 
166
}
 
167
 
 
168
#endif // FEATURE_MESH_SOLID_H