X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.cpp;h=87210b5c52a61ccd4b9fdf5b48a3e924e7ef9056;hb=2e39226506e4b82f6ae5dcc26e776571801b1555;hp=e9c6e8c8b9cbb185ea348d8c36221173c142e163;hpb=35a88fdd724349275bbff32b9596a44e7cd422e2;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.cpp b/src/Model/Model_ResultGroup.cpp index e9c6e8c8b..87210b5c5 100644 --- a/src/Model/Model_ResultGroup.cpp +++ b/src/Model/Model_ResultGroup.cpp @@ -1,17 +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) { + myIsDisabled = true; // by default it is not initialized and false to be after created 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;