24 #ifndef PRIMITIVESAPI_CONE_H_
25 #define PRIMITIVESAPI_CONE_H_
27 #include "PrimitivesAPI.h"
29 #include <PrimitivesPlugin_Cone.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
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
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 Cone feature.
Definition: PrimitivesAPI_Cone.h:41
void setRadius(const ModelHighAPI_Double &theBaseRadius, const ModelHighAPI_Double &theTopRadius)
Set radius.
Definition: PrimitivesAPI_Cone.cpp:61
virtual std::shared_ptr< ModelAPI_AttributeDouble > height() const
Height.
Definition: PrimitivesAPI_Cone.h:70
PrimitivesAPI_Cone(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: PrimitivesAPI_Cone.cpp:31
virtual std::shared_ptr< ModelAPI_AttributeDouble > topRadius() const
Top radius.
Definition: PrimitivesAPI_Cone.h:70
virtual std::shared_ptr< ModelAPI_AttributeSelection > axis() const
Axis.
Definition: PrimitivesAPI_Cone.h:70
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: PrimitivesAPI_Cone.cpp:77
void setHeight(const ModelHighAPI_Double &theHeight)
Set height.
Definition: PrimitivesAPI_Cone.cpp:70
virtual ~PrimitivesAPI_Cone()
Destructor.
Definition: PrimitivesAPI_Cone.cpp:56
virtual std::shared_ptr< ModelAPI_AttributeSelection > basePoint() const
Base point.
Definition: PrimitivesAPI_Cone.h:70
virtual std::shared_ptr< ModelAPI_AttributeDouble > baseRadius() const
Base radius.
Definition: PrimitivesAPI_Cone.h:70
static const std::string & BASE_POINT_ID()
Attribute name of the base point.
Definition: PrimitivesPlugin_Cone.h:48
static const std::string & BASE_RADIUS_ID()
Attribute name of the base radius.
Definition: PrimitivesPlugin_Cone.h:62
static const std::string & ID()
Cone kind.
Definition: PrimitivesPlugin_Cone.h:41
static const std::string & HEIGHT_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Cone.h:76
static const std::string & TOP_RADIUS_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Cone.h:69
static const std::string & AXIS_ID()
Attribute name of the axis.
Definition: PrimitivesPlugin_Cone.h:55
ConePtr addCone(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Selection &theBasePoint, const ModelHighAPI_Selection &theAxis, const ModelHighAPI_Double &theBaseRadius, const ModelHighAPI_Double &theTopRadius, const ModelHighAPI_Double &theHeight)
Create primitive Cone feature.
Definition: PrimitivesAPI_Cone.cpp:99