X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.cpp;h=39809bade0444a0a964855077dd8926599024119;hb=6f77dfcd9833cdba0c583e6218350f1f7043eb8b;hp=e9c6e8c8b9cbb185ea348d8c36221173c142e163;hpb=35a88fdd724349275bbff32b9596a44e7cd422e2;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.cpp b/src/Model/Model_ResultGroup.cpp index e9c6e8c8b..39809bade 100644 --- a/src/Model/Model_ResultGroup.cpp +++ b/src/Model/Model_ResultGroup.cpp @@ -1,17 +1,38 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: Model_ResultGroup.cpp // Created: 08 Jul 2014 // Author: Mikhail PONIKAROV #include #include +#include + #include +#include + Model_ResultGroup::Model_ResultGroup(std::shared_ptr theOwnerData) { setIsConcealed(false); myOwnerData = theOwnerData; } +void Model_ResultGroup::initAttributes() +{ + // append the color attribute. It is empty, the attribute will be filled by a request + DataPtr aData = data(); + aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId()); +} + +void Model_ResultGroup::colorConfigInfo(std::string& theSection, std::string& theName, + std::string& theDefault) +{ + theSection = "Visualization"; + theName = "result_group_color"; + theDefault = DEFAULT_COLOR(); +} + std::shared_ptr Model_ResultGroup::shape() { std::shared_ptr aResult;