Salome HOME
Issue #2521: Use Salome module icon
[modules/shaper.git] / src / XGUI / XGUI_CustomPrs.h
index 4859339ca474c535b433d84bd09a1858d44928d7..6a2af267c0e7d73b876b162f7aa9a22c2bb439c0 100644 (file)
@@ -1,8 +1,22 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        XGUI_CustomPrs.hxx
-// Created:     10 Mar 2015
-// Author:      Natalia ERMOLAEVA
+// 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<mailto:webmaster.salome@opencascade.com>
+//
 
 #ifndef XGUI_CustomPrs_H
 #define XGUI_CustomPrs_H
@@ -41,6 +55,11 @@ public:
   /// \return theDeflection a real value
   static double getResultDeflection(const ResultPtr& theResult);
 
+  /// Returns transparency of a result object
+  /// \param theResult a result object
+  /// \return theTransparency a real value
+  static double getResultTransparency(const ResultPtr& theResult);
+
   /// Returns the default object color. It obtains colorConfigInfo of the object
   /// and find it in preferences. If there are no this color in preference and an empty
   /// color is interpreted as invalid, it shows error message