Salome HOME
Issue #1169 : support the width of the copied objects on undo/redo and delete
[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 #include <ModelAPI_AttributeIntArray.h>
8
9 SketchPlugin_SketchEntity::SketchPlugin_SketchEntity()
10 : SketchPlugin_Feature()
11 {
12 }
13
14 void SketchPlugin_SketchEntity::initAttributes()
15 {
16   data()->addAttribute(AUXILIARY_ID(), ModelAPI_AttributeBoolean::typeId());
17   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), AUXILIARY_ID());
18
19   initDerivedClassAttributes();
20
21   AttributePtr anAttr = data()->addAttribute(SketchPlugin_SketchEntity::COPY_ID(), ModelAPI_AttributeBoolean::typeId());
22   anAttr->setIsArgument(false);
23   ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), SketchPlugin_SketchEntity::COPY_ID());
24 }