24 #ifndef PRIMITIVESAPI_SPHERE_H_
25 #define PRIMITIVESAPI_SPHERE_H_
27 #include "PrimitivesAPI.h"
29 #include <PrimitivesPlugin_Sphere.h>
31 #include <ModelHighAPI_Interface.h>
32 #include <ModelHighAPI_Macro.h>
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
Attribute that contains reference to the sub-shape of some result, the selected shape.
Definition: ModelAPI_AttributeSelection.h:35
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:53
Class for filling ModelAPI_AttributeDouble.
Definition: ModelHighAPI_Double.h:37
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:46
Class for filling ModelAPI_AttributeSelection.
Definition: ModelHighAPI_Selection.h:49
Interface for primitive Sphere feature.
Definition: PrimitivesAPI_Sphere.h:41
virtual std::shared_ptr< ModelAPI_AttributeDouble > phimax() const
The maximum phi.
Definition: PrimitivesAPI_Sphere.h:85
void setPhi(const ModelHighAPI_Double &thePhiMin, const ModelHighAPI_Double &thePhiMax)
Set minimum and maximum phi.
Definition: PrimitivesAPI_Sphere.cpp:101
virtual std::shared_ptr< ModelAPI_AttributeString > creationMethod() const
Creation method.
Definition: PrimitivesAPI_Sphere.h:85
virtual std::shared_ptr< ModelAPI_AttributeSelection > centerPoint() const
Center point.
Definition: PrimitivesAPI_Sphere.h:85
void setCenterPoint(const ModelHighAPI_Selection &theCenterPoint)
Set center point.
Definition: PrimitivesAPI_Sphere.cpp:78
virtual std::shared_ptr< ModelAPI_AttributeDouble > rmax() const
The maximum radius.
Definition: PrimitivesAPI_Sphere.h:85
virtual std::shared_ptr< ModelAPI_AttributeDouble > thetamin() const
The minimum theta.
Definition: PrimitivesAPI_Sphere.h:85
virtual std::shared_ptr< ModelAPI_AttributeDouble > phimin() const
The minimum phi.
Definition: PrimitivesAPI_Sphere.h:85
void setRadius(const ModelHighAPI_Double &theRadius)
Set radius.
Definition: PrimitivesAPI_Sphere.cpp:85
virtual std::shared_ptr< ModelAPI_AttributeDouble > rmin() const
The minimum radius.
Definition: PrimitivesAPI_Sphere.h:85
virtual std::shared_ptr< ModelAPI_AttributeDouble > radius() const
Radius.
Definition: PrimitivesAPI_Sphere.h:85
PrimitivesAPI_Sphere(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: PrimitivesAPI_Sphere.cpp:31
void setTheta(const ModelHighAPI_Double &theThetaMin, const ModelHighAPI_Double &theThetaMax)
Set minimum and maximum theta.
Definition: PrimitivesAPI_Sphere.cpp:110
virtual std::shared_ptr< ModelAPI_AttributeDouble > thetamax() const
The maximum theta.
Definition: PrimitivesAPI_Sphere.h:85
virtual ~PrimitivesAPI_Sphere()
Destructor.
Definition: PrimitivesAPI_Sphere.cpp:73
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: PrimitivesAPI_Sphere.cpp:119
static const std::string & THETAMAX_ID()
attribute name of the higher theta limit
Definition: PrimitivesPlugin_Sphere.h:119
static const std::string & RADIUS_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Sphere.h:77
static const std::string & ID()
Sphere kind.
Definition: PrimitivesPlugin_Sphere.h:42
static const std::string & RMIN_ID()
attribute name of the inner radius
Definition: PrimitivesPlugin_Sphere.h:84
static const std::string & THETAMIN_ID()
attribute name of the lower theta limit
Definition: PrimitivesPlugin_Sphere.h:112
static const std::string & PHIMIN_ID()
attribute name of the lower phi limit
Definition: PrimitivesPlugin_Sphere.h:98
static const std::string & RMAX_ID()
attribute name of the outer radius
Definition: PrimitivesPlugin_Sphere.h:91
static const std::string & CENTER_POINT_ID()
Attribute name of the base point.
Definition: PrimitivesPlugin_Sphere.h:70
static const std::string & PHIMAX_ID()
attribute name of the higher phi limit
Definition: PrimitivesPlugin_Sphere.h:105
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: PrimitivesPlugin_Sphere.h:49
SpherePtr addSphere(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Selection &theCenterPoint, const ModelHighAPI_Double &theRadius)
Create primitive Sphere feature.
Definition: PrimitivesAPI_Sphere.cpp:149