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 // File : VISU_CutLinesBase_i.hh
23 // Author : Oleg UVAROV
26 #ifndef VISU_CutLinesBase_i_HeaderFile
27 #define VISU_CutLinesBase_i_HeaderFile
30 #include "VISU_ScalarMap_i.hh"
32 class VISU_CutLinesBasePL;
36 //----------------------------------------------------------------------------
37 class VISU_I_EXPORT CutLinesBase_i : public virtual POA_VISU::CutLinesBase,
38 public virtual ScalarMap_i
40 CutLinesBase_i(const CutLinesBase_i&);
43 //----------------------------------------------------------------------------
44 typedef ScalarMap_i TSuperClass;
45 typedef VISU::CutLinesBase TInterface;
48 CutLinesBase_i(EPublishInStudyMode thePublishInStudyModep);
55 SetNbLines(CORBA::Long theNb);
63 SetAllCurvesInverted(CORBA::Boolean theInvert);
67 IsAllCurvesInverted();
71 SetCurveInverted(CORBA::Long theCurveNumber,
72 CORBA::Boolean theInvert);
76 IsCurveInverted(CORBA::Long theCurveNumber);
80 SetUseAbsoluteLength(CORBA::Boolean theAbsLength);
84 IsUseAbsoluteLength();
86 typedef std::map<int,bool> TCurvesInv;
90 return myMapCurvesInverted;
94 CopyCurvesInverted(const TCurvesInv& theCurves);
99 return myCutLinesBasePL;
103 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
106 CreatePipeLine(VISU_PipeLine* thePipeLine);
108 VISU_CutLinesBasePL *myCutLinesBasePL;
109 TCurvesInv myMapCurvesInverted;
110 CORBA::Boolean myUseAbsLength;
113 //! Extends VISU_ColoredPrs3d_i::Create
116 Create(const std::string& theMeshName,
117 VISU::Entity theEntity,
118 const std::string& theFieldName,
119 CORBA::Long theTimeStampNumber);
121 //! Extends VISU_ColoredPrs3d_i::ToStream
124 ToStream(std::ostringstream& theStr);
126 //! Extends VISU_ColoredPrs3d_i::Restore
129 Restore(SALOMEDS::SObject_ptr theSObject,
130 const Storable::TRestoringMap& theMap);
134 SameAs(const Prs3d_i* theOrigin);
136 void BuildTableOfReal(SALOMEDS::SObject_var theSObject);