1 // Copyright (C) 2007-2010 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
23 // VISU OBJECT : interactive object for VISU entities implementation
24 // File : VISU_PrsObject_i.hxx
25 // Author : Alexey PETROV
28 #ifndef VISU_Mesh_i_HeaderFile
29 #define VISU_Mesh_i_HeaderFile
31 #include "VISU_Prs3d_i.hh"
37 class VISU_I_EXPORT Mesh_i : public virtual POA_VISU::Mesh,
38 public virtual Prs3d_i
40 static int myNbPresent;
41 Mesh_i(const Mesh_i&);
44 typedef Prs3d_i TSuperClass;
45 typedef VISU::Mesh TInterface;
54 SameAs(const Prs3d_i* theOrigin);
69 SetCellColor(const SALOMEDS::Color& theColor);
77 SetNodeColor(const SALOMEDS::Color& theColor);
85 SetLinkColor(const SALOMEDS::Color& theColor);
93 SetPresentationType(VISU::PresentationType theType);
97 SetQuadratic2DPresentationType(VISU::Quadratic2DPresentationType theType);
100 VISU::Quadratic2DPresentationType
101 GetQuadratic2DPresentationType();
104 VISU::PresentationType
105 GetPresentationType();
108 virtual void SetShrink(CORBA::Boolean toShrink);
110 virtual CORBA::Boolean IsShrank();
112 VISU_MeshPL* GetSpecificPL() const
119 Build(int theRestoring);
121 VISU_MeshPL* myMeshPL;
123 int myEntity;//jfa IPAL9284: TEntity myEntity;
124 std::string mySubMeshName;
125 VISU::VISUType myType;
127 VISU::PresentationType myPresentType;
128 VISU::Quadratic2DPresentationType my2DQuadPrsType;
129 SALOMEDS::Color myCellColor;
130 SALOMEDS::Color myNodeColor;
131 SALOMEDS::Color myLinkColor;
137 IsPossible(VISU::Result_i* theResult,
138 const std::string& theMeshName,
139 VISU::Entity theEntity,
140 const std::string& theFamilyName = "");
143 Create(VISU::Result_i* theResult,
144 const std::string& theMeshName,
145 VISU::Entity theEntity,
146 const std::string& theFamilyName = "");
150 IsPossible(VISU::Result_i* theResult,
151 const std::string& theMeshName,
152 const std::string& theGroupName);
155 Create(VISU::Result_i* theResult,
156 const std::string& theMeshName,
157 const std::string& theGroupName);
163 GetSubMeshName() const;
167 ToStream(std::ostringstream& theStr);
173 static const std::string myComment;
181 Restore(SALOMEDS::SObject_ptr theSObject,
182 const Storable::TRestoringMap& theMap);
186 StorableEngine(SALOMEDS::SObject_ptr theSObject,
187 const Storable::TRestoringMap& theMap,
188 const std::string& thePrefix,
189 CORBA::Boolean theIsMultiFile);
197 UpdateActor(VISU_ActorBase* theActor);