X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Selection.h;h=21da1cdfe188790a4c1f30c6876c21c378f9472d;hb=6b615b773dd6e6901cd246ecb55003a9941e2365;hp=7d898698397a0e4b75e0cf2fbe11ebe585867873;hpb=5b6031b015602aa07f5a6fc668c13ac3faf7a8a9;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Selection.h b/src/ModelHighAPI/ModelHighAPI_Selection.h index 7d8986983..21da1cdfe 100644 --- a/src/ModelHighAPI/ModelHighAPI_Selection.h +++ b/src/ModelHighAPI/ModelHighAPI_Selection.h @@ -1,9 +1,22 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -// Name : ModelHighAPI_Selection.h -// Purpose: +// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or +// email : webmaster.salome@opencascade.com // -// History: -// 06/06/16 - Sergey POKHODENKO - Creation of the file #ifndef SRC_MODELHIGHAPI_MODELHIGHAPI_SELECTION_H_ #define SRC_MODELHIGHAPI_MODELHIGHAPI_SELECTION_H_ @@ -83,6 +96,10 @@ public: MODELHIGHAPI_EXPORT void setName(const std::string& theName); + /// Shortcut for result()->data()->name() + MODELHIGHAPI_EXPORT + std::string name() const; + /// Change result's color MODELHIGHAPI_EXPORT void setColor(int theRed, int theGreen, int theBlue); @@ -91,9 +108,17 @@ public: MODELHIGHAPI_EXPORT void setDeflection(double theValue); - /// Return sub-result for ResultCompSolid + /// Change result's transparency + MODELHIGHAPI_EXPORT + void setTransparency(double theValue); + + /// Returns the number of sub-elements. + MODELHIGHAPI_EXPORT + int numberOfSubs() const; + + /// Returns the sub-result by zero-base index. MODELHIGHAPI_EXPORT - ModelHighAPI_Selection subResult(int theIndex); + ModelHighAPI_Selection subResult(int theIndex) const; private: VariantType myVariantType;