1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchPlugin_ConstraintMiddle.cpp
4 // Created: 26 May 2014
5 // Author: Artem ZHIDKOV
7 #include "SketchPlugin_ConstraintMiddle.h"
9 SketchPlugin_ConstraintMiddle::SketchPlugin_ConstraintMiddle()
13 void SketchPlugin_ConstraintMiddle::initAttributes()
15 data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
16 data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId());
19 void SketchPlugin_ConstraintMiddle::execute()
23 AISObjectPtr SketchPlugin_ConstraintMiddle::getAISObject(AISObjectPtr thePrevious)
28 AISObjectPtr anAIS = thePrevious;
31 //anAIS = SketcherPrs_Factory::collinearConstraint(this, sketch()->coordinatePlane());