1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : VISU_CutLinesBase_i.hh
21 // Author : Oleg UVAROV
24 #ifndef VISU_CutLinesBase_i_HeaderFile
25 #define VISU_CutLinesBase_i_HeaderFile
28 #include "VISU_ScalarMap_i.hh"
30 class VISU_CutLinesBasePL;
34 //----------------------------------------------------------------------------
35 class VISU_I_EXPORT CutLinesBase_i : public virtual POA_VISU::CutLinesBase,
36 public virtual ScalarMap_i
38 CutLinesBase_i(const CutLinesBase_i&);
41 //----------------------------------------------------------------------------
42 typedef ScalarMap_i TSuperClass;
43 typedef VISU::CutLinesBase TInterface;
46 CutLinesBase_i(EPublishInStudyMode thePublishInStudyModep);
57 SetNbLines(CORBA::Long theNb);
65 SetAllCurvesInverted(CORBA::Boolean theInvert);
69 IsAllCurvesInverted();
73 SetCurveInverted(CORBA::Long theCurveNumber,
74 CORBA::Boolean theInvert);
78 IsCurveInverted(CORBA::Long theCurveNumber);
82 SetUseAbsoluteLength(CORBA::Boolean theAbsLength);
86 IsUseAbsoluteLength();
88 typedef std::map<int,bool> TCurvesInv;
92 return myMapCurvesInverted;
96 CopyCurvesInverted(const TCurvesInv& theCurves);
101 return myCutLinesBasePL;
105 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
108 CreatePipeLine(VISU_PipeLine* thePipeLine);
110 VISU_CutLinesBasePL *myCutLinesBasePL;
111 TCurvesInv myMapCurvesInverted;
112 CORBA::Boolean myUseAbsLength;
115 //! Extends VISU_ColoredPrs3d_i::Create
118 Create(const std::string& theMeshName,
119 VISU::Entity theEntity,
120 const std::string& theFieldName,
121 CORBA::Long theTimeStampNumber);
123 //! Extends VISU_ColoredPrs3d_i::ToStream
126 ToStream(std::ostringstream& theStr);
128 //! Extends VISU_ColoredPrs3d_i::Restore
131 Restore(SALOMEDS::SObject_ptr theSObject,
132 const Storable::TRestoringMap& theMap);
136 SameAs(const Prs3d_i* theOrigin);
138 void BuildTableOfReal(SALOMEDS::SObject_var theSObject,
139 bool theIsCutSegment = false);