1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchPlugin_ConstraintCoincidence.cpp
4 // Created: 08 May 2014
5 // Author: Artem ZHIDKOV
7 #include "SketchPlugin_ConstraintCoincidence.h"
9 #include <SketcherPrs_Factory.h>
11 SketchPlugin_ConstraintCoincidence::SketchPlugin_ConstraintCoincidence()
15 void SketchPlugin_ConstraintCoincidence::initAttributes()
17 data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
18 data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId());
21 void SketchPlugin_ConstraintCoincidence::execute()
25 AISObjectPtr SketchPlugin_ConstraintCoincidence::getAISObject(AISObjectPtr thePrevious)
30 AISObjectPtr anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch()->coordinatePlane(),