24 #ifndef PRIMITIVESAPI_TORUS_H_
25 #define PRIMITIVESAPI_TORUS_H_
27 #include "PrimitivesAPI.h"
29 #include <PrimitivesPlugin_Torus.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: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 Torus feature.
Definition: PrimitivesAPI_Torus.h:41
virtual std::shared_ptr< ModelAPI_AttributeSelection > axis() const
Axis.
Definition: PrimitivesAPI_Torus.h:67
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: PrimitivesAPI_Torus.cpp:67
virtual std::shared_ptr< ModelAPI_AttributeDouble > ringRadius() const
Ring radius.
Definition: PrimitivesAPI_Torus.h:67
virtual std::shared_ptr< ModelAPI_AttributeDouble > radius() const
Radius.
Definition: PrimitivesAPI_Torus.h:67
virtual std::shared_ptr< ModelAPI_AttributeSelection > basePoint() const
Base point.
Definition: PrimitivesAPI_Torus.h:67
PrimitivesAPI_Torus(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: PrimitivesAPI_Torus.cpp:31
void setRadius(const ModelHighAPI_Double &theRadius, const ModelHighAPI_Double &theRingRadius)
Set radius.
Definition: PrimitivesAPI_Torus.cpp:58
virtual ~PrimitivesAPI_Torus()
Destructor.
Definition: PrimitivesAPI_Torus.cpp:53
static const std::string & BASE_POINT_ID()
Attribute name of the base point.
Definition: PrimitivesPlugin_Torus.h:48
static const std::string & ID()
Torus kind.
Definition: PrimitivesPlugin_Torus.h:41
static const std::string & RING_RADIUS_ID()
Attribute name of the section radius.
Definition: PrimitivesPlugin_Torus.h:69
static const std::string & RADIUS_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Torus.h:62
static const std::string & AXIS_ID()
Attribute name of the axis.
Definition: PrimitivesPlugin_Torus.h:55
TorusPtr addTorus(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Selection &theBasePoint, const ModelHighAPI_Selection &theAxis, const ModelHighAPI_Double &theRadius, const ModelHighAPI_Double &theRingRadius)
Create primitive Torus feature.
Definition: PrimitivesAPI_Torus.cpp:88