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_CutLines_i_HeaderFile
28 #define VISU_CutLines_i_HeaderFile
31 #include "VISU_ScalarMap_i.hh"
33 class VISU_CutLinesPL;
37 //----------------------------------------------------------------------------
38 class VISU_I_EXPORT CutLines_i : public virtual POA_VISU::CutLines,
39 public virtual ScalarMap_i
41 static int myNbPresent;
42 CutLines_i(const CutLines_i&);
45 //----------------------------------------------------------------------------
46 typedef ScalarMap_i TSuperClass;
47 typedef VISU::CutLines TInterface;
50 CutLines_i(EPublishInStudyMode thePublishInStudyModep);
59 return VISU::TCUTLINES;
64 SetOrientation(VISU::CutPlanes::Orientation theOrient,
65 CORBA::Double theXAngle,
66 CORBA::Double theYAngle);
70 SetOrientation2(VISU::CutPlanes::Orientation theOrient,
71 CORBA::Double theXAngle,
72 CORBA::Double theYAngle);
75 VISU::CutPlanes::Orientation
79 VISU::CutPlanes::Orientation
80 GetOrientationType2();
100 SetDisplacement(CORBA::Double theDisp);
108 SetDisplacement2(CORBA::Double theDisp);
116 SetBasePlanePosition(CORBA::Double thePlanePosition);
120 GetBasePlanePosition();
124 SetLinePosition(CORBA::Long thePlaneNumber,
125 CORBA::Double thePlanePosition);
129 GetLinePosition(CORBA::Long thePlaneNumber);
141 SetDefaultPosition(CORBA::Long thePlaneNumber);
145 IsDefaultPosition(CORBA::Long thePlaneNumber);
149 SetAllCurvesInverted(CORBA::Boolean theInvert);
153 IsAllCurvesInverted();
157 SetCurveInverted(CORBA::Long theCurveNumber,
158 CORBA::Boolean theInvert);
162 IsCurveInverted(CORBA::Long theCurveNumber);
166 SetUseAbsoluteLength(CORBA::Boolean theAbsLength);
170 IsUseAbsoluteLength();
174 SetNbLines(CORBA::Long theNb);
180 typedef std::map<int,bool> TCurvesInv;
184 return myMapCurvesInverted;
188 CopyCurvesInverted(const TCurvesInv& theCurves);
191 GetSpecificPL() const
197 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
200 CreatePipeLine(VISU_PipeLine* thePipeLine);
202 //! Extends VISU_ColoredPrs3d_i::CheckIsPossible
211 VISU_CutLinesPL *myCutLinesPL;
212 TCurvesInv myMapCurvesInverted;
213 CORBA::Boolean myUseAbsLength;
216 //! Extends VISU_ColoredPrs3d_i::IsPossible
219 IsPossible(Result_i* theResult,
220 const std::string& theMeshName,
221 VISU::Entity theEntity,
222 const std::string& theFieldName,
223 CORBA::Long theTimeStampNumber,
224 bool theIsMemoryCheck);
226 //! Extends VISU_ColoredPrs3d_i::Create
229 Create(const std::string& theMeshName,
230 VISU::Entity theEntity,
231 const std::string& theFieldName,
232 CORBA::Long theTimeStampNumber);
234 //! Extends VISU_ColoredPrs3d_i::ToStream
237 ToStream(std::ostringstream& theStr);
239 //! Extends VISU_ColoredPrs3d_i::Restore
242 Restore(SALOMEDS::SObject_ptr theSObject,
243 const Storable::TRestoringMap& theMap);
247 SameAs(const Prs3d_i* theOrigin);
249 //! Extends VISU_ColoredPrs3d_i::CreateActor
254 void BuildTableOfReal(SALOMEDS::SObject_var theSObject);
256 static const std::string myComment;