20 #ifndef FeaturesAPI_Rotation_H_
21 #define FeaturesAPI_Rotation_H_
23 #include "FeaturesAPI.h"
25 #include <FeaturesPlugin_Rotation.h>
27 #include <ModelHighAPI_Double.h>
28 #include <ModelHighAPI_Interface.h>
29 #include <ModelHighAPI_Macro.h>
30 #include <ModelHighAPI_Selection.h>
47 const std::list<ModelHighAPI_Selection>& theMainObjects,
54 const std::list<ModelHighAPI_Selection>& theMainObjects,
107 #define DUMMY std::pair<ModelHighAPI_Selection, ModelHighAPI_Double>()
112 const std::shared_ptr<ModelAPI_Document>& part,
113 const std::list<ModelHighAPI_Selection>& objects,
115 const std::pair<ModelHighAPI_Selection, ModelHighAPI_Double>&
angle = DUMMY,
119 const bool keepSubResults =
false);
Interface for Rotation feature.
Definition: FeaturesAPI_Rotation.h:38
virtual std::shared_ptr< ModelAPI_AttributeString > creationMethod() const
Creation method.
Definition: FeaturesAPI_Rotation.h:78
void setAxisObject(const ModelHighAPI_Selection &theAxisObject)
Set axis object.
Definition: FeaturesAPI_Rotation.cpp:75
virtual std::shared_ptr< ModelAPI_AttributeSelection > startPoint() const
Start point.
Definition: FeaturesAPI_Rotation.h:78
virtual std::shared_ptr< ModelAPI_AttributeSelection > endPoint() const
End point.
Definition: FeaturesAPI_Rotation.h:78
virtual ~FeaturesAPI_Rotation()
Destructor.
Definition: FeaturesAPI_Rotation.cpp:61
virtual std::shared_ptr< ModelAPI_AttributeSelection > axisObject() const
Axis object.
Definition: FeaturesAPI_Rotation.h:78
void setPoints(const ModelHighAPI_Selection &theCenterPoint, const ModelHighAPI_Selection &theStartPoint, const ModelHighAPI_Selection &theEndPoint)
Set center point, start point and end point.
Definition: FeaturesAPI_Rotation.cpp:93
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > mainObjects() const
Main objects.
Definition: FeaturesAPI_Rotation.h:78
FeaturesAPI_Rotation(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: FeaturesAPI_Rotation.cpp:26
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: FeaturesAPI_Rotation.cpp:106
void setAngle(const ModelHighAPI_Double &theAngle)
Set angle.
Definition: FeaturesAPI_Rotation.cpp:84
virtual std::shared_ptr< ModelAPI_AttributeDouble > angle() const
Angle.
Definition: FeaturesAPI_Rotation.h:78
virtual std::shared_ptr< ModelAPI_AttributeSelection > centerPoint() const
Center point.
Definition: FeaturesAPI_Rotation.h:78
void setMainObjects(const std::list< ModelHighAPI_Selection > &theMainObjects)
Set main objects.
Definition: FeaturesAPI_Rotation.cpp:67
static const std::string & START_POINT_ID()
Attribute name of a center point.
Definition: FeaturesPlugin_Rotation.h:92
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: FeaturesPlugin_Rotation.h:43
static const std::string & AXIS_OBJECT_ID()
Attribute name of an axis.
Definition: FeaturesPlugin_Rotation.h:71
static const std::string & ANGLE_ID()
Attribute name of angle.
Definition: FeaturesPlugin_Rotation.h:78
static const std::string & OBJECTS_LIST_ID()
Attribute name of referenced objects.
Definition: FeaturesPlugin_Rotation.h:64
static const std::string & END_POINT_ID()
Attribute name of a center point.
Definition: FeaturesPlugin_Rotation.h:99
static const std::string & ID()
Rotation kind.
Definition: FeaturesPlugin_Rotation.h:36
static const std::string & CENTER_POINT_ID()
Attribute name of a center point.
Definition: FeaturesPlugin_Rotation.h:85
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
Attribute that contains list of references to the sub-shapes with possibility to manage them.
Definition: ModelAPI_AttributeSelectionList.h:37
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
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
RotationPtr addRotation(const std::shared_ptr< ModelAPI_Document > &part, const std::list< ModelHighAPI_Selection > &objects, const ModelHighAPI_Selection &axis=ModelHighAPI_Selection(), const std::pair< ModelHighAPI_Selection, ModelHighAPI_Double > &angle=std::pair< ModelHighAPI_Selection, ModelHighAPI_Double >(), const ModelHighAPI_Selection ¢er=ModelHighAPI_Selection(), const ModelHighAPI_Selection &start=ModelHighAPI_Selection(), const ModelHighAPI_Selection &end=ModelHighAPI_Selection(), const bool keepSubResults=false)
Create Rotation feature.
Definition: FeaturesAPI_Rotation.cpp:142