20 #ifndef FeaturesAPI_Translation_H_
21 #define FeaturesAPI_Translation_H_
23 #include "FeaturesAPI.h"
25 #include <FeaturesPlugin_Translation.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,
62 const std::list<ModelHighAPI_Selection>& theMainObjects,
119 #define DUMMY std::pair<ModelHighAPI_Selection, ModelHighAPI_Double>()
124 const std::shared_ptr<ModelAPI_Document>& part,
125 const std::list<ModelHighAPI_Selection>& objects,
126 const std::pair<ModelHighAPI_Selection, ModelHighAPI_Double>& deprecated1 = DUMMY,
127 const std::pair<ModelHighAPI_Selection, ModelHighAPI_Double>& deprecated2 = DUMMY,
128 const std::pair<ModelHighAPI_Selection, ModelHighAPI_Double>& deprecated3 = DUMMY,
131 const std::list<ModelHighAPI_Double>& vector = std::list<ModelHighAPI_Double>(),
134 const bool keepSubResults =
false );
Interface for Translation feature.
Definition: FeaturesAPI_Translation.h:38
virtual std::shared_ptr< ModelAPI_AttributeString > creationMethod() const
Creation method.
Definition: FeaturesAPI_Translation.h:89
virtual std::shared_ptr< ModelAPI_AttributeDouble > dx() const
Dimension in X.
Definition: FeaturesAPI_Translation.h:89
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: FeaturesAPI_Translation.cpp:127
virtual std::shared_ptr< ModelAPI_AttributeDouble > dz() const
Dimension in Z.
Definition: FeaturesAPI_Translation.h:89
virtual std::shared_ptr< ModelAPI_AttributeDouble > distance() const
Distance.
Definition: FeaturesAPI_Translation.h:89
virtual std::shared_ptr< ModelAPI_AttributeSelection > startPoint() const
Start point object.
Definition: FeaturesAPI_Translation.h:89
void setPoints(const ModelHighAPI_Selection &theStartPoint, const ModelHighAPI_Selection &theEndPoint)
Modify CreationMethod, start_point, end_point attributes of the feature.
Definition: FeaturesAPI_Translation.cpp:116
virtual std::shared_ptr< ModelAPI_AttributeSelection > endPoint() const
End point object.
Definition: FeaturesAPI_Translation.h:89
virtual std::shared_ptr< ModelAPI_AttributeDouble > dy() const
Dimension in Y.
Definition: FeaturesAPI_Translation.h:89
virtual std::shared_ptr< ModelAPI_AttributeSelection > axisObject() const
Axis object.
Definition: FeaturesAPI_Translation.h:89
void setDimensions(const ModelHighAPI_Double &theDx, const ModelHighAPI_Double &theDy, const ModelHighAPI_Double &theDz)
Modify CreationMethod, dx, dy, dz attributes of the feature.
Definition: FeaturesAPI_Translation.cpp:103
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > mainObjects() const
Main objects.
Definition: FeaturesAPI_Translation.h:89
FeaturesAPI_Translation(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: FeaturesAPI_Translation.cpp:26
void setMainObjects(const std::list< ModelHighAPI_Selection > &theMainObjects)
Set main objects.
Definition: FeaturesAPI_Translation.cpp:83
void setAxisAndDistance(const ModelHighAPI_Selection &theAxisObject, const ModelHighAPI_Double &theDistance)
Modify CreationMethod, axis_object, distance attributes of the feature.
Definition: FeaturesAPI_Translation.cpp:92
virtual ~FeaturesAPI_Translation()
Destructor.
Definition: FeaturesAPI_Translation.cpp:77
static const std::string & START_POINT_ID()
Attribute name of start point.
Definition: FeaturesPlugin_Translation.h:113
static const std::string & END_POINT_ID()
Attribute name of end point.
Definition: FeaturesPlugin_Translation.h:120
static const std::string & DY_ID()
Attribute name of dimension in Y.
Definition: FeaturesPlugin_Translation.h:99
static const std::string & ID()
Translation kind.
Definition: FeaturesPlugin_Translation.h:36
static const std::string & OBJECTS_LIST_ID()
Attribute name of referenced objects.
Definition: FeaturesPlugin_Translation.h:71
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: FeaturesPlugin_Translation.h:43
static const std::string & DZ_ID()
Attribute name of dimension in Z.
Definition: FeaturesPlugin_Translation.h:106
static const std::string & DISTANCE_ID()
Attribute name of distance.
Definition: FeaturesPlugin_Translation.h:85
static const std::string & AXIS_OBJECT_ID()
Attribute name of an axis.
Definition: FeaturesPlugin_Translation.h:78
static const std::string & DX_ID()
Attribute name of dimension in X.
Definition: FeaturesPlugin_Translation.h:92
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
TranslationPtr addTranslation(const std::shared_ptr< ModelAPI_Document > &part, const std::list< ModelHighAPI_Selection > &objects, const std::pair< ModelHighAPI_Selection, ModelHighAPI_Double > &deprecated1=std::pair< ModelHighAPI_Selection, ModelHighAPI_Double >(), const std::pair< ModelHighAPI_Selection, ModelHighAPI_Double > &deprecated2=std::pair< ModelHighAPI_Selection, ModelHighAPI_Double >(), const std::pair< ModelHighAPI_Selection, ModelHighAPI_Double > &deprecated3=std::pair< ModelHighAPI_Selection, ModelHighAPI_Double >(), const ModelHighAPI_Selection &axis=ModelHighAPI_Selection(), const ModelHighAPI_Double &distance=ModelHighAPI_Double(0.0), const std::list< ModelHighAPI_Double > &vector=std::list< ModelHighAPI_Double >(), const ModelHighAPI_Selection &startPoint=ModelHighAPI_Selection(), const ModelHighAPI_Selection &endPoint=ModelHighAPI_Selection(), const bool keepSubResults=false)
Create Translation feature.
Definition: FeaturesAPI_Translation.cpp:165