Version: 6.3.1

src/VISU_I/VISU_MonoColorPrs_i.hh

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  VISU OBJECT : interactive object for VISU entities implementation
00021 //  File   : VISU_MonoColorPrs_i.hxx
00022 //  Author : Vitaly Smetannikov
00023 //  Module : VISU
00024 //
00025 #ifndef VISU_MonoColorPrs_i_HeaderFile
00026 #define VISU_MonoColorPrs_i_HeaderFile
00027 
00028 #include "VISU_I.hxx"
00029 #include "VISU_ScalarMap_i.hh"
00030 
00031 namespace VISU
00032 {
00033   //----------------------------------------------------------------------------
00034   class VISU_I_EXPORT MonoColorPrs_i : public virtual POA_VISU::MonoColorPrs,
00035                            public virtual ScalarMap_i
00036   {
00037     MonoColorPrs_i(const MonoColorPrs_i&);
00038 
00039   public:
00040     //----------------------------------------------------------------------------
00041     typedef ScalarMap_i TSuperClass;
00042     typedef VISU::MonoColorPrs TInterface;
00043 
00044     explicit MonoColorPrs_i(EPublishInStudyMode thePublishInStudyModep);
00045 
00046     virtual void SameAs(const Prs3d_i* theOrigin);
00047 
00048     virtual ~MonoColorPrs_i();
00049 
00050     virtual CORBA::Boolean IsColored();
00051 
00052     virtual void ShowColored(CORBA::Boolean theColored);
00053 
00054     virtual SALOMEDS::Color GetColor();
00055 
00056     virtual void SetColor(const SALOMEDS::Color& theColor);
00057 
00058   protected:
00059     SALOMEDS::Color myColor;
00060     bool myIsColored;
00061 
00062   public:
00063     virtual Storable* Create(const std::string& theMeshName, 
00064                     VISU::Entity theEntity,
00065                     const std::string& theFieldName, 
00066                     CORBA::Long theTimeStampNumber);
00067 
00068     virtual void ToStream(std::ostringstream& theStr);
00069 
00070     virtual Storable* Restore(SALOMEDS::SObject_ptr theSObject,
00071                      const Storable::TRestoringMap& theMap);
00072 
00073     virtual VISU_Actor* CreateActor();
00074 
00075     virtual VISU_Actor* CreateActor(bool toSupressShrinking);
00076 
00077     virtual void UpdateActor(VISU_ActorBase* theActor);
00078   };
00079 };
00080 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS