20 #ifndef SketchPlugin_ConstraintPerpendicular_H_
21 #define SketchPlugin_ConstraintPerpendicular_H_
23 #include "SketchPlugin.h"
24 #include <SketchPlugin_Sketch.h>
25 #include "SketchPlugin_ConstraintBase.h"
38 inline static const std::string&
ID()
40 static const std::string MY_CONSTRAINT_PERPENDICULAR_ID(
"SketchConstraintPerpendicular");
41 return MY_CONSTRAINT_PERPENDICULAR_ID;
44 SKETCHPLUGIN_EXPORT
virtual const std::string&
getKind()
51 SKETCHPLUGIN_EXPORT
virtual void execute();
57 SKETCHPLUGIN_EXPORT
virtual AISObjectPtr
getAISObject(AISObjectPtr thePrevious);
Feature for creation of a new constraint between other features.
Definition: SketchPlugin_ConstraintBase.h:56
Feature for creation of a new constraint for perpendicularity of two lines.
Definition: SketchPlugin_ConstraintPerpendicular.h:35
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: SketchPlugin_ConstraintPerpendicular.cpp:42
virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious)
Returns the AIS preview.
Definition: SketchPlugin_ConstraintPerpendicular.cpp:52
virtual void execute()
Creates a new part document if needed.
Definition: SketchPlugin_ConstraintPerpendicular.cpp:48
SketchPlugin_ConstraintPerpendicular()
Use plugin manager for features creation.
Definition: SketchPlugin_ConstraintPerpendicular.cpp:38
virtual const std::string & getKind()
Returns the kind of a feature.
Definition: SketchPlugin_ConstraintPerpendicular.h:44
static const std::string & ID()
Perpendicular constraint kind.
Definition: SketchPlugin_ConstraintPerpendicular.h:38