]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/SketchPlugin_SketchEntity.cpp
Salome HOME
Revert change for MacroArc attribute names
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_SketchEntity.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 #include "SketchPlugin_SketchEntity.h"
4
5 #include <ModelAPI_Session.h>
6 #include <ModelAPI_Validator.h>
7
8 SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
9 : SketchPlugin_Feature()
10 {
11 }
12
13 void SketchPlugin_SketchEntity::initAttributes()
14 {
15   data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
16
17   initDerivedClassAttributes();
18
19   AttributePtr anAttr = data()->addAttribute(SketchPlugin_SketchEntity::COPY_ID(),
20                                              ModelAPI_AttributeBoolean::typeId());
21   anAttr->setIsArgument(false);
22   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(),
23     SketchPlugin_SketchEntity::COPY_ID());
24 }