20 #ifndef FeaturesAPI_Placement_H_
21 #define FeaturesAPI_Placement_H_
23 #include "FeaturesAPI.h"
25 #include <FeaturesPlugin_Placement.h>
27 #include <ModelHighAPI_Interface.h>
28 #include <ModelHighAPI_Macro.h>
46 const std::list<ModelHighAPI_Selection>& theObjects,
49 const bool theReverseDirection =
false,
50 const bool theCentering =
false);
103 const
bool reverse = false,
105 const
bool keepSubResults = false);
Interface for Placement feature.
Definition: FeaturesAPI_Placement.h:37
void setObjects(const std::list< ModelHighAPI_Selection > &theObjects)
Set objects.
Definition: FeaturesAPI_Placement.cpp:57
virtual ~FeaturesAPI_Placement()
Destructor.
Definition: FeaturesAPI_Placement.cpp:51
virtual std::shared_ptr< ModelAPI_AttributeSelection > endShape() const
End shape.
Definition: FeaturesAPI_Placement.h:66
virtual std::shared_ptr< ModelAPI_AttributeBoolean > reverseDirection() const
Reverse direction flag.
Definition: FeaturesAPI_Placement.h:66
virtual std::shared_ptr< ModelAPI_AttributeSelectionList > objects() const
Main objects.
Definition: FeaturesAPI_Placement.h:66
virtual std::shared_ptr< ModelAPI_AttributeSelection > startShape() const
Start shape.
Definition: FeaturesAPI_Placement.h:66
void setReverseDirection(const bool theReverseDirection)
Set reverse direction flag.
Definition: FeaturesAPI_Placement.cpp:81
void setEndShape(const ModelHighAPI_Selection &theEndShape)
Set end shape.
Definition: FeaturesAPI_Placement.cpp:73
FeaturesAPI_Placement(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: FeaturesAPI_Placement.cpp:26
virtual std::shared_ptr< ModelAPI_AttributeBoolean > centering() const
Centering flag.
Definition: FeaturesAPI_Placement.h:66
void setCentering(const bool theCentering)
Set centering flag.
Definition: FeaturesAPI_Placement.cpp:89
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: FeaturesAPI_Placement.cpp:97
void setStartShape(const ModelHighAPI_Selection &theStartShape)
Set start shape.
Definition: FeaturesAPI_Placement.cpp:65
static const std::string & END_SHAPE_ID()
attribute name of attractable face
Definition: FeaturesPlugin_Placement.h:64
static const std::string & START_SHAPE_ID()
attribute name of referenced object
Definition: FeaturesPlugin_Placement.h:58
static const std::string & OBJECTS_LIST_ID()
attribute name of references sketch entities list, it should contain a sketch result or a pair a sket...
Definition: FeaturesPlugin_Placement.h:51
static const std::string & CENTERING_ID()
attribute name of flag of centering position
Definition: FeaturesPlugin_Placement.h:76
static const std::string & ID()
Placement kind.
Definition: FeaturesPlugin_Placement.h:43
static const std::string & REVERSE_ID()
attribute name of flag of reverse direction
Definition: FeaturesPlugin_Placement.h:70
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
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
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:53
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
PlacementPtr addPlacement(const std::shared_ptr< ModelAPI_Document > &thePart, const std::list< ModelHighAPI_Selection > &theObjects, const ModelHighAPI_Selection &theStartShape, const ModelHighAPI_Selection &theEndShape, const bool reverse=false, const bool centering=false, const bool keepSubResults=false)
Create Placement feature.
Definition: FeaturesAPI_Placement.cpp:124