20 #ifndef PRIMITIVESAPI_TUBE_H_
21 #define PRIMITIVESAPI_TUBE_H_
23 #include "PrimitivesAPI.h"
25 #include <PrimitivesPlugin_Tube.h>
27 #include <ModelHighAPI_Double.h>
28 #include <ModelHighAPI_Interface.h>
29 #include <ModelHighAPI_Macro.h>
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
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
Interface for primitive Tube feature.
Definition: PrimitivesAPI_Tube.h:36
PrimitivesAPI_Tube(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: PrimitivesAPI_Tube.cpp:26
void setRadius(const ModelHighAPI_Double &theRMin, const ModelHighAPI_Double &theRMax)
Set radius.
Definition: PrimitivesAPI_Tube.cpp:52
virtual std::shared_ptr< ModelAPI_AttributeDouble > rmin() const
Inner radius.
Definition: PrimitivesAPI_Tube.h:59
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: PrimitivesAPI_Tube.cpp:68
virtual ~PrimitivesAPI_Tube()
Destructor.
Definition: PrimitivesAPI_Tube.cpp:47
void setHeight(const ModelHighAPI_Double &theHeight)
Set height.
Definition: PrimitivesAPI_Tube.cpp:61
virtual std::shared_ptr< ModelAPI_AttributeDouble > rmax() const
Outer radius.
Definition: PrimitivesAPI_Tube.h:59
virtual std::shared_ptr< ModelAPI_AttributeDouble > height() const
Height.
Definition: PrimitivesAPI_Tube.h:59
static const std::string & RMAX_ID()
Attrinute name of the outer radius.
Definition: PrimitivesPlugin_Tube.h:53
static const std::string & RMIN_ID()
Attrinute name of the inner radius.
Definition: PrimitivesPlugin_Tube.h:46
static const std::string & ID()
Tube kind.
Definition: PrimitivesPlugin_Tube.h:39
static const std::string & HEIGHT_ID()
Attrinute name of the height.
Definition: PrimitivesPlugin_Tube.h:60
TubePtr addTube(const std::shared_ptr< ModelAPI_Document > &thePart, const ModelHighAPI_Double &theRMin, const ModelHighAPI_Double &theRMax, const ModelHighAPI_Double &theHeight)
Create primitive Tube feature.
Definition: PrimitivesAPI_Tube.cpp:84