1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_ResultConstruction.cpp
4 // Created: 07 Jul 2014
5 // Author: Mikhail PONIKAROV
7 #include <Model_ResultConstruction.h>
9 #include <ModelAPI_AttributeIntArray.h>
10 #include <Config_PropManager.h>
12 void Model_ResultConstruction::initAttributes()
14 // append the color attribute. It is empty, the attribute will be filled by a request
15 DataPtr aData = data();
16 aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::type());
19 void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::string& theName,
20 std::string& theDefault)
22 theSection = "Visualization";
23 theName = "result_construction_color";
24 theDefault = DEFAULT_COLOR();
27 void Model_ResultConstruction::setShape(std::shared_ptr<GeomAPI_Shape> theShape)
32 std::shared_ptr<GeomAPI_Shape> Model_ResultConstruction::shape()
37 Model_ResultConstruction::Model_ResultConstruction()
40 setIsConcealed(false);
43 void Model_ResultConstruction::setIsInHistory(const bool isInHistory)
45 myIsInHistory = isInHistory;