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"
9 #include "SketchPlugin_Feature.h"
11 #include <SketcherPrs_Factory.h>
13 #include <ModelAPI_ResultConstruction.h>
14 #include <Config_PropManager.h>
16 #include <GeomDataAPI_Point2D.h>
17 #include <GeomAlgoAPI_PointBuilder.h>
19 SketchPlugin_ConstraintRigid::SketchPlugin_ConstraintRigid()
23 void SketchPlugin_ConstraintRigid::initAttributes()
25 data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
28 void SketchPlugin_ConstraintRigid::execute()
32 AISObjectPtr SketchPlugin_ConstraintRigid::getAISObject(AISObjectPtr thePrevious)
36 return SketcherPrs_Factory::rigidConstraint(this, sketch()->coordinatePlane(), thePrevious);