1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // VISU OBJECT : interactive object for VISU entities implementation
21 // File : VISU_MonoColorPrs_i.hxx
22 // Author : Vitaly Smetannikov
25 #ifndef VISU_MonoColorPrs_i_HeaderFile
26 #define VISU_MonoColorPrs_i_HeaderFile
29 #include "VISU_ScalarMap_i.hh"
33 //----------------------------------------------------------------------------
34 class VISU_I_EXPORT MonoColorPrs_i : public virtual POA_VISU::MonoColorPrs,
35 public virtual ScalarMap_i
37 MonoColorPrs_i(const MonoColorPrs_i&);
40 //----------------------------------------------------------------------------
41 typedef ScalarMap_i TSuperClass;
42 typedef VISU::MonoColorPrs TInterface;
44 explicit MonoColorPrs_i(EPublishInStudyMode thePublishInStudyModep);
46 virtual void SameAs(const Prs3d_i* theOrigin);
48 virtual ~MonoColorPrs_i();
50 virtual CORBA::Boolean IsColored();
52 virtual void ShowColored(CORBA::Boolean theColored);
54 virtual SALOMEDS::Color GetColor();
56 virtual void SetColor(const SALOMEDS::Color& theColor);
59 SALOMEDS::Color myColor;
63 virtual Storable* Create(const std::string& theMeshName,
64 VISU::Entity theEntity,
65 const std::string& theFieldName,
66 CORBA::Long theTimeStampNumber);
68 virtual void ToStream(std::ostringstream& theStr);
70 virtual Storable* Restore(SALOMEDS::SObject_ptr theSObject,
71 const Storable::TRestoringMap& theMap);
73 virtual VISU_Actor* CreateActor();
75 virtual VISU_Actor* CreateActor(bool toSupressShrinking);
77 virtual void UpdateActor(VISU_ActorBase* theActor);