1 // VISU OBJECT : interactive object for VISU entities implementation
3 // Copyright (C) 2003 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 // 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);
95 VISU::PresentationType
96 GetPresentationType();
98 VISU_MeshPL* GetSpecificPL() const
105 Build(int theRestoring);
107 VISU_MeshPL* myMeshPL;
109 int myEntity;//jfa IPAL9284: TEntity myEntity;
110 std::string mySubMeshName;
111 VISU::VISUType myType;
113 VISU::PresentationType myPresentType;
114 SALOMEDS::Color myCellColor;
115 SALOMEDS::Color myNodeColor;
116 SALOMEDS::Color myLinkColor;
121 IsPossible(VISU::Result_i* theResult,
122 const std::string& theMeshName,
123 VISU::Entity theEntity,
124 const std::string& theFamilyName = "");
127 Create(VISU::Result_i* theResult,
128 const std::string& theMeshName,
129 VISU::Entity theEntity,
130 const std::string& theFamilyName = "");
134 IsPossible(VISU::Result_i* theResult,
135 const std::string& theMeshName,
136 const std::string& theGroupName);
139 Create(VISU::Result_i* theResult,
140 const std::string& theMeshName,
141 const std::string& theGroupName);
147 GetSubMeshName() const;
151 ToStream(std::ostringstream& theStr);
157 static const std::string myComment;
165 Restore(SALOMEDS::SObject_ptr theSObject,
166 const Storable::TRestoringMap& theMap);
170 StorableEngine(SALOMEDS::SObject_ptr theSObject,
171 const Storable::TRestoringMap& theMap,
172 const std::string& thePrefix,
173 CORBA::Boolean theIsMultiFile);
181 UpdateActor(VISU_Actor* theActor);