Salome HOME
empty AIS presentation should not be visualized in the viewer. It is caused by OCCT...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintMiddle.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:    SketchPlugin_ConstraintMiddle.cpp
4 // Created: 26 May 2014
5 // Author:  Artem ZHIDKOV
6
7 #include "SketchPlugin_ConstraintMiddle.h"
8
9 SketchPlugin_ConstraintMiddle::SketchPlugin_ConstraintMiddle()
10 {
11 }
12
13 void SketchPlugin_ConstraintMiddle::initAttributes()
14 {
15   data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
16   data()->addAttribute(SketchPlugin_Constraint::ENTITY_B(), ModelAPI_AttributeRefAttr::typeId());
17 }
18
19 void SketchPlugin_ConstraintMiddle::execute()
20 {
21 }
22
23 AISObjectPtr SketchPlugin_ConstraintMiddle::getAISObject(AISObjectPtr thePrevious)
24 {
25   if (!sketch())
26     return thePrevious;
27
28   AISObjectPtr anAIS;
29   // TODO
30   //AISObjectPtr anAIS = SketcherPrs_Factory::collinearConstraint(this, sketch()->coordinatePlane(),
31   //                                                              thePrevious);
32   return anAIS;
33 }
34
35