1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU OBJECT : interactive object for VISU entities implementation
23 // File : VISU_PrsObject_i.hxx
24 // Author : Alexey PETROV
27 #ifndef VISU_ScalarMap_i_HeaderFile
28 #define VISU_ScalarMap_i_HeaderFile
30 #include "VISU_ColoredPrs3d_i.hh"
35 class VISU_ScalarMapPL;
39 //============================================================================
40 class VISU_I_EXPORT ScalarMap_i : public virtual POA_VISU::ScalarMap,
41 public virtual ColoredPrs3d_i
43 static int myNbPresent;
44 ScalarMap_i(const ScalarMap_i&);
47 //----------------------------------------------------------------------------
48 typedef ColoredPrs3d_i TSuperClass;
49 typedef VISU::ScalarMap TInterface;
52 ScalarMap_i(EPublishInStudyMode thePublishInStudyModep);
61 return VISU::TSCALARMAP;
64 //----------------------------------------------------------------------------
65 //! Gets memory size actually used by the presentation (Mb).
70 //----------------------------------------------------------------------------
77 SetScaling(VISU::Scaling theScaling);
79 //----------------------------------------------------------------------------
80 //! Sets initial source geometry
85 //! Add geometry of mesh as group. \retval the id of added group.
88 AddMeshOnGroup(const char* theGroupName);
90 //! Removes all geometries.
95 //----------------------------------------------------------------------------
102 virtual CORBA::Boolean IsBarVisible() { return myShowBar; }
104 virtual void SetBarVisible(CORBA::Boolean theVisible);
107 //! Redefines VISU_ColoredPrs3d_i::DoSetInput
110 DoSetInput(bool theIsInitilizePipe, bool theReInit);
112 //! Redefines VISU_ColoredPrs3d_i::CreatePipeLine
115 CreatePipeLine(VISU_PipeLine* thePipeLine);
117 //! Redefines VISU_ColoredPrs3d_i::CheckIsPossible
124 Checks staticaly, whether it is possible to create presentation
125 with the given basic parameters or not.
129 IsPossible(Result_i* theResult,
130 const std::string& theMeshName,
131 VISU::Entity theEntity,
132 const std::string& theFieldName,
133 CORBA::Long theTimeStampNumber,
134 bool theIsMemoryCheck);
136 //! Redefines VISU_ColoredPrs3d_i::Create
139 Create(const std::string& theMeshName,
140 VISU::Entity theEntity,
141 const std::string& theFieldName,
142 CORBA::Long theTimeStampNumber);
146 ToStream(std::ostringstream& theStr);
148 static const std::string myComment;
167 Restore(SALOMEDS::SObject_ptr theSObject,
168 const Storable::TRestoringMap& theMap);
172 SameAs(const Prs3d_i* theOrigin);
180 CreateActor(bool toSupressShrinking);
184 UpdateActor(VISU_ActorBase* theActor);
188 GetComponentMin(vtkIdType theCompID);
192 GetComponentMax(vtkIdType theCompID);
195 VISU_ScalarMapPL* myScalarMapPL;