1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SketchPlugin_ConstraintRigid.cpp
4 // Created: 13 Oct 2014
5 // Author: Artem ZHIDKOV
7 #include "SketchPlugin_ConstraintRigid.h"
8 #include "SketchPlugin_ConstraintParallel.h"
10 #include <SketcherPrs_Factory.h>
12 #include <ModelAPI_ResultConstruction.h>
13 #include <Config_PropManager.h>
15 #include <GeomDataAPI_Point2D.h>
16 #include <GeomAlgoAPI_PointBuilder.h>
18 SketchPlugin_ConstraintRigid::SketchPlugin_ConstraintRigid()
22 void SketchPlugin_ConstraintRigid::initAttributes()
24 data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
27 void SketchPlugin_ConstraintRigid::execute()
31 AISObjectPtr SketchPlugin_ConstraintRigid::getAISObject(AISObjectPtr thePrevious)
36 AISObjectPtr anAIS = thePrevious;
38 anAIS = SketcherPrs_Factory::rigidConstraint(this, sketch()->coordinatePlane());