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>
18 #include <Config_PropManager.h>
20 SketchPlugin_ConstraintHorizontal::SketchPlugin_ConstraintHorizontal()
24 void SketchPlugin_ConstraintHorizontal::initAttributes()
26 data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
29 void SketchPlugin_ConstraintHorizontal::execute()
33 AISObjectPtr SketchPlugin_ConstraintHorizontal::getAISObject(AISObjectPtr thePrevious)
38 AISObjectPtr anAIS = thePrevious;
40 anAIS = SketcherPrs_Factory::horisontalConstraint(this, sketch()->coordinatePlane());