X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_ResultGroup.h;h=8e2ac8adabcc20489a236b1f5a894ca347eefee6;hb=1a59f21be05badd17bcac9ce82b2857b961f1d2e;hp=6d4f85222739038dda30fb426311c2cb1ce86688;hpb=0fcae5b2e143e67306603d26f0b5e01cbe33d2bb;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_ResultGroup.h b/src/ModelAPI/ModelAPI_ResultGroup.h index 6d4f85222..8e2ac8ada 100644 --- a/src/ModelAPI/ModelAPI_ResultGroup.h +++ b/src/ModelAPI/ModelAPI_ResultGroup.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_ResultGroup.hxx // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV @@ -7,7 +9,7 @@ #include "ModelAPI_Result.h" #include -#include +#include #include /**\class ModelAPI_ResultGroup @@ -19,22 +21,27 @@ class ModelAPI_ResultGroup : public ModelAPI_Result { public: + MODELAPI_EXPORT virtual ~ModelAPI_ResultGroup(); /// Returns the group identifier of this result - virtual std::string groupName() - { - return group(); - } + MODELAPI_EXPORT virtual std::string groupName(); /// Returns the group identifier of this result - static std::string group() + inline static std::string group() { static std::string MY_GROUP = "Groups"; return MY_GROUP; } + /// default color for a result body + inline static const std::string& DEFAULT_COLOR() + { + static const std::string RESULT_GROUP_COLOR("150,150,180"); + return RESULT_GROUP_COLOR; + } + }; //! Pointer on feature object -typedef boost::shared_ptr ResultGroupPtr; +typedef std::shared_ptr ResultGroupPtr; #endif