X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultGroup.cpp;h=8b4a39d559de324ad0e0933d33e867fe713eac23;hb=73b293b1c77ab13ac9fbbb2aefb3b8573e63180b;hp=2fd1ead9d9caec79bc5472699d5c108bafd9a236;hpb=acebef0bc5fb22dc9672e0046085b896e957af56;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultGroup.cpp b/src/Model/Model_ResultGroup.cpp index 2fd1ead9d..8b4a39d55 100644 --- a/src/Model/Model_ResultGroup.cpp +++ b/src/Model/Model_ResultGroup.cpp @@ -1,26 +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 -Model_ResultGroup::Model_ResultGroup(boost::shared_ptr theOwnerData) +#include + +Model_ResultGroup::Model_ResultGroup(std::shared_ptr theOwnerData) { - setIsConcealed(false); myOwnerData = theOwnerData; } -boost::shared_ptr Model_ResultGroup::shape() const +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() { - boost::shared_ptr aResult; + std::shared_ptr aResult; if (myOwnerData) { AttributeSelectionListPtr aList = myOwnerData->selectionList("group_list"); if (aList) { - std::list > aSubs; - for(int a = aList->size(); a >= 0; a--) { - boost::shared_ptr aSelection = aList->value(a)->value(); + std::list > aSubs; + for(int a = aList->size() - 1; a >= 0; a--) { + std::shared_ptr aSelection = aList->value(a)->value(); if (aSelection && !aSelection->isNull()) { aSubs.push_back(aSelection); }