X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.cpp;h=39809bade0444a0a964855077dd8926599024119;hb=f367061802012d6909c2619ef6b6c4cba86fc503;hp=fbfe1d923d5b6ecfd34ffd794da6e36e82bfd131;hpb=9e869ede4d8c56262bb20534543c2bf56cd6a91b;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.cpp b/src/Model/Model_ResultGroup.cpp index fbfe1d923..39809bade 100644 --- a/src/Model/Model_ResultGroup.cpp +++ b/src/Model/Model_ResultGroup.cpp @@ -1,18 +1,39 @@ +// 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; } -std::shared_ptr Model_ResultGroup::shape() const +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; if (myOwnerData) {