Salome HOME
Add SketchAPI and Line feature. Also fix tests.
[modules/shaper.git] / src / SketchAPI / SketchAPI_SketchEntity.cpp
1 // Name   : SketchAPI_SketchEntity.cpp
2 // Purpose: 
3 //
4 // History:
5 // 07/06/16 - Sergey POKHODENKO - Creation of the file
6
7 //--------------------------------------------------------------------------------------
8 #include "SketchAPI_SketchEntity.h"
9 //--------------------------------------------------------------------------------------
10 #include <ModelHighAPI_Tools.h>
11 //--------------------------------------------------------------------------------------
12 SketchAPI_SketchEntity::SketchAPI_SketchEntity(
13     const std::shared_ptr<ModelAPI_Feature> & theFeature)
14 : ModelHighAPI_Interface(theFeature)
15 {
16   initialize();
17 }
18
19 SketchAPI_SketchEntity::~SketchAPI_SketchEntity()
20 {
21
22 }
23
24 //--------------------------------------------------------------------------------------
25 bool SketchAPI_SketchEntity::initialize()
26 {
27   SET_ATTRIBUTE(Auxiliary, ModelAPI_AttributeBoolean, SketchPlugin_SketchEntity::AUXILIARY_ID())
28
29   return true;
30 }
31
32 //--------------------------------------------------------------------------------------
33 std::shared_ptr<ModelAPI_AttributeBoolean> SketchAPI_SketchEntity::auxiliary() const
34 {
35   return myAuxiliary;
36 }
37
38 void SketchAPI_SketchEntity::setAuxiliary(bool theAuxiliary)
39 {
40   fillAttribute(theAuxiliary, myAuxiliary);
41
42   execute();
43 }
44
45 //--------------------------------------------------------------------------------------