1 // Copyright (C) 2007-2012 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_DeformedShapeAndScalarMap_i.hh
22 // Author: Eugeny Nikolaev
25 #ifndef VISU_DeformedShapeAndScalarMap_i_HeaderFile
26 #define VISU_DeformedShapeAndScalarMap_i_HeaderFile
28 #include "VISU_ScalarMap_i.hh"
30 class VISU_DeformedShapeAndScalarMapPL;
34 //----------------------------------------------------------------------------
35 //! Class of Scalar Map on Deformed Shape presentation.
36 class VISU_I_EXPORT DeformedShapeAndScalarMap_i : public virtual POA_VISU::DeformedShapeAndScalarMap,
37 public virtual ScalarMap_i
39 static int myNbPresent;
40 DeformedShapeAndScalarMap_i(const DeformedShapeAndScalarMap_i&);
43 //----------------------------------------------------------------------------
44 typedef ScalarMap_i TSuperClass;
45 typedef VISU::DeformedShapeAndScalarMap TInterface;
48 DeformedShapeAndScalarMap_i(EPublishInStudyMode thePublishInStudyModep);
51 ~DeformedShapeAndScalarMap_i();
57 return VISU::TDEFORMEDSHAPEANDSCALARMAP;
62 SetScale(CORBA::Double theScale);
70 SameAs(const Prs3d_i* theOrigin);
72 VISU_DeformedShapeAndScalarMapPL*
75 return myDeformedShapeAndScalarMapPL;
79 //! Redefines VISU_ColoredPrs3d_i::SetField
82 SetField(VISU::PField theField);
84 //! Redefines VISU_ColoredPrs3d_i::CreatePipeLine
87 CreatePipeLine(VISU_PipeLine* thePipeLine);
89 //! Redefines VISU_ColoredPrs3d_i::CheckIsPossible
95 //! Redefines VISU_ColoredPrs3d_i::IsPossible
98 IsPossible(Result_i* theResult,
99 const std::string& theMeshName,
100 VISU::Entity theEntity,
101 const std::string& theFieldName,
102 CORBA::Long theTimeStampNumber,
103 bool theIsMemoryCheck);
105 //! Redefines VISU_ColoredPrs3d_i::IsPossible
108 Create(const std::string& theMeshName,
109 VISU::Entity theEntity,
110 const std::string& theFieldName,
111 CORBA::Long theTimeStampNumber);
113 //! Redefines VISU_ColoredPrs3d_i::ToStream
116 ToStream(std::ostringstream& theStr);
118 //! Redefines VISU_ColoredPrs3d_i::Restore
121 Restore(SALOMEDS::SObject_ptr theSObject,
122 const Storable::TRestoringMap& theMap);
124 static const std::string myComment;
144 UpdateActor(VISU_Actor* theActor) ;
148 SetScalarField(VISU::Entity theEntity,
149 const char* theFieldName,
150 CORBA::Long theTimeStampNumber);
158 GetScalarFieldName();
162 GetScalarTimeStampNumber();
169 VISU_DeformedShapeAndScalarMapPL *myDeformedShapeAndScalarMapPL;
171 PField myScalarField;
172 VISU::Entity myScalarEntity;
173 std::string myScalarFieldName;
174 CORBA::Long myScalarTimeStampNumber;