20 #ifndef SRC_SKETCHAPI_SKETCHAPI_OFFSET_H_
21 #define SRC_SKETCHAPI_SKETCHAPI_OFFSET_H_
24 #include "SketchAPI.h"
25 #include "SketchAPI_SketchEntity.h"
29 #include <SketchPlugin_Offset.h>
31 #include <ModelHighAPI_Interface.h>
32 #include <ModelHighAPI_Macro.h>
47 explicit SketchAPI_Offset(
const std::shared_ptr<ModelAPI_Feature> & theFeature);
51 const std::list<std::shared_ptr<ModelAPI_Object> > & theObjects,
53 const bool theIsReversed =
false,
55 const bool theIsApprox =
false);
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
Attribute that contains real value with double precision.
Definition: ModelAPI_AttributeDouble.h:34
Attribute that contains list of references to features (located in the same document).
Definition: ModelAPI_AttributeRefList.h:33
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Represents any object in the data model and in the object browser.
Definition: ModelAPI_Object.h:45
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_AttributeRefAttr.
Definition: ModelHighAPI_RefAttr.h:41
Interface for Offset feature.
Definition: SketchAPI_Offset.h:43
virtual std::shared_ptr< ModelAPI_AttributeRefList > edgesList() const
Offset edges list.
Definition: SketchAPI_Offset.h:76
std::list< std::shared_ptr< SketchAPI_SketchEntity > > offset() const
List of created objects.
Definition: SketchAPI_Offset.cpp:57
virtual std::shared_ptr< ModelAPI_AttributeDouble > value() const
Value.
Definition: SketchAPI_Offset.h:76
virtual std::shared_ptr< ModelAPI_AttributeBoolean > reversed() const
Negative value.
Definition: SketchAPI_Offset.h:76
virtual std::shared_ptr< ModelAPI_AttributeString > joint() const
Joint type.
Definition: SketchAPI_Offset.h:76
SketchAPI_Offset(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: SketchAPI_Offset.cpp:28
virtual std::shared_ptr< ModelAPI_AttributeBoolean > approx() const
Negative value.
Definition: SketchAPI_Offset.h:76
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: SketchAPI_Offset.cpp:71
virtual ~SketchAPI_Offset()
Destructor.
Definition: SketchAPI_Offset.cpp:53
Base class for Sketch feature interfaces.
Definition: SketchAPI_SketchEntity.h:38
static const std::string & APPROX_ID()
attribute to approx by segments and arcs
Definition: SketchPlugin_Offset.h:105
static const std::string & EDGES_ID()
list of offset edges
Definition: SketchPlugin_Offset.h:84
static const std::string & VALUE_ID()
attribute to store the offset value
Definition: SketchPlugin_Offset.h:91
static const std::string & JOINT_ID()
Type of joint.
Definition: SketchPlugin_Offset.h:56
static const std::string & REVERSED_ID()
attribute to store the reversed offset direction
Definition: SketchPlugin_Offset.h:98
static const std::string & ID()
Offset macro feature kind.
Definition: SketchPlugin_Offset.h:42
static const std::string & JOINT_KEEP_DISTANCE()
Keep distance joint (add arcs where needed)
Definition: SketchPlugin_Offset.h:63