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_Mesh_i_HeaderFile
28 #define VISU_Mesh_i_HeaderFile
30 #include "VISU_Prs3d_i.hh"
36 class VISU_I_EXPORT Mesh_i : public virtual POA_VISU::Mesh,
37 public virtual Prs3d_i
39 static int myNbPresent;
40 Mesh_i(const Mesh_i&);
43 typedef Prs3d_i TSuperClass;
44 typedef VISU::Mesh TInterface;
53 SameAs(const Prs3d_i* theOrigin);
68 SetCellColor(const SALOMEDS::Color& theColor);
76 SetNodeColor(const SALOMEDS::Color& theColor);
84 SetLinkColor(const SALOMEDS::Color& theColor);
92 SetPresentationType(VISU::PresentationType theType);
96 SetQuadratic2DPresentationType(VISU::Quadratic2DPresentationType theType);
99 VISU::Quadratic2DPresentationType
100 GetQuadratic2DPresentationType();
103 VISU::PresentationType
104 GetPresentationType();
107 virtual void SetShrink(CORBA::Boolean toShrink);
109 virtual CORBA::Boolean IsShrank();
111 VISU_MeshPL* GetSpecificPL() const
118 Build(int theRestoring);
120 VISU_MeshPL* myMeshPL;
122 int myEntity;//jfa IPAL9284: TEntity myEntity;
123 std::string mySubMeshName;
124 VISU::VISUType myType;
126 VISU::PresentationType myPresentType;
127 VISU::Quadratic2DPresentationType my2DQuadPrsType;
128 SALOMEDS::Color myCellColor;
129 SALOMEDS::Color myNodeColor;
130 SALOMEDS::Color myLinkColor;
136 IsPossible(VISU::Result_i* theResult,
137 const std::string& theMeshName,
138 VISU::Entity theEntity,
139 const std::string& theFamilyName = "");
142 Create(VISU::Result_i* theResult,
143 const std::string& theMeshName,
144 VISU::Entity theEntity,
145 const std::string& theFamilyName = "");
149 IsPossible(VISU::Result_i* theResult,
150 const std::string& theMeshName,
151 const std::string& theGroupName);
154 Create(VISU::Result_i* theResult,
155 const std::string& theMeshName,
156 const std::string& theGroupName);
162 GetSubMeshName() const;
166 ToStream(std::ostringstream& theStr);
172 static const std::string myComment;
180 Restore(SALOMEDS::SObject_ptr theSObject,
181 const Storable::TRestoringMap& theMap);
185 StorableEngine(SALOMEDS::SObject_ptr theSObject,
186 const Storable::TRestoringMap& theMap,
187 const std::string& thePrefix,
188 CORBA::Boolean theIsMultiFile);
196 UpdateActor(VISU_ActorBase* theActor);