1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchPlugin_ConstraintHorizontal.cpp
4 // Created: 16 Mar 2015
5 // Author: Artem ZHIDKOV
7 #include "SketchPlugin_ConstraintHorizontal.h"
9 #include <ModelAPI_AttributeDouble.h>
10 #include <ModelAPI_Data.h>
11 #include <ModelAPI_ResultConstruction.h>
13 #include <SketchPlugin_Line.h>
14 #include <SketchPlugin_Sketch.h>
16 #include <SketcherPrs_Factory.h>
17 //#include <SketcherPrs_Tools.h>
19 #include <Config_PropManager.h>
21 SketchPlugin_ConstraintHorizontal::SketchPlugin_ConstraintHorizontal()
25 void SketchPlugin_ConstraintHorizontal::initAttributes()
27 data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
30 void SketchPlugin_ConstraintHorizontal::execute()
34 AISObjectPtr SketchPlugin_ConstraintHorizontal::getAISObject(AISObjectPtr thePrevious)
39 AISObjectPtr anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane(),