]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/SketchPlugin_ConstraintVertical.cpp
Salome HOME
Fix compilation errors (part 2)
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintVertical.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:    SketchPlugin_ConstraintVertical.cpp
4 // Created: 16 Mar 2015
5 // Author:  Artem ZHIDKOV
6
7 #include "SketchPlugin_ConstraintVertical.h"
8
9 #include <ModelAPI_AttributeDouble.h>
10 #include <ModelAPI_Data.h>
11 #include <ModelAPI_ResultConstruction.h>
12
13 #include <SketchPlugin_Line.h>
14 #include <SketchPlugin_Sketch.h>
15
16 #include <SketcherPrs_Factory.h>
17
18 #include <Config_PropManager.h>
19
20 SketchPlugin_ConstraintVertical::SketchPlugin_ConstraintVertical()
21 {
22 }
23
24 void SketchPlugin_ConstraintVertical::initAttributes()
25 {
26   data()->addAttribute(SketchPlugin_Constraint::ENTITY_A(), ModelAPI_AttributeRefAttr::typeId());
27 }
28
29 void SketchPlugin_ConstraintVertical::execute()
30 {
31 }
32
33 AISObjectPtr SketchPlugin_ConstraintVertical::getAISObject(AISObjectPtr thePrevious)
34 {
35   if (!sketch())
36     return thePrevious;
37
38   AISObjectPtr anAIS = SketcherPrs_Factory::verticalConstraint(this, sketch()->coordinatePlane(),
39                                                                thePrevious);
40   return anAIS;
41 }
42
43