20 #ifndef SketchPlugin_ConstraintMirror_H_
21 #define SketchPlugin_ConstraintMirror_H_
23 #include "SketchPlugin.h"
24 #include <SketchPlugin_Sketch.h>
25 #include "SketchPlugin_ConstraintBase.h"
42 inline static const std::string&
ID()
44 static const std::string MY_CONSTRAINT_MIRROR_ID(
"SketchConstraintMirror");
45 return MY_CONSTRAINT_MIRROR_ID;
48 SKETCHPLUGIN_EXPORT
virtual const std::string&
getKind()
57 static const std::string MY_MIRROR_LIST_ID(
"ConstraintMirrorList");
58 return MY_MIRROR_LIST_ID;
62 SKETCHPLUGIN_EXPORT
virtual void execute();
72 SKETCHPLUGIN_EXPORT
virtual AISObjectPtr
getAISObject(AISObjectPtr thePrevious);
75 SKETCHPLUGIN_EXPORT
virtual void erase();
Feature for creation of a new constraint between other features.
Definition: SketchPlugin_ConstraintBase.h:56
Feature for creation of a new constraint mirroring a list of objects regarding to a given line.
Definition: SketchPlugin_ConstraintMirror.h:39
virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious)
Returns the AIS preview.
Definition: SketchPlugin_ConstraintMirror.cpp:213
virtual void execute()
Creates a new part document if needed.
Definition: SketchPlugin_ConstraintMirror.cpp:55
SketchPlugin_ConstraintMirror()
Use plugin manager for features creation.
Definition: SketchPlugin_ConstraintMirror.cpp:38
virtual const std::string & getKind()
Returns the kind of a feature.
Definition: SketchPlugin_ConstraintMirror.h:48
virtual void attributeChanged(const std::string &theID)
Called on change of any argument-attribute of this object.
Definition: SketchPlugin_ConstraintMirror.cpp:258
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: SketchPlugin_ConstraintMirror.cpp:42
static const std::string & MIRROR_LIST_ID()
List of objects to be mirrored.
Definition: SketchPlugin_ConstraintMirror.h:55
static const std::string & ID()
Mirror constraint kind.
Definition: SketchPlugin_ConstraintMirror.h:42
virtual void erase()
removes all fields from this feature: results, data, etc
Definition: SketchPlugin_ConstraintMirror.cpp:223