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);
53 SetNbLines(CORBA::Long theNb);
61 SetAllCurvesInverted(CORBA::Boolean theInvert);
65 IsAllCurvesInverted();
69 SetCurveInverted(CORBA::Long theCurveNumber,
70 CORBA::Boolean theInvert);
74 IsCurveInverted(CORBA::Long theCurveNumber);
78 SetUseAbsoluteLength(CORBA::Boolean theAbsLength);
82 IsUseAbsoluteLength();
84 typedef std::map<int,bool> TCurvesInv;
88 return myMapCurvesInverted;
92 CopyCurvesInverted(const TCurvesInv& theCurves);
97 return myCutLinesBasePL;
101 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
104 CreatePipeLine(VISU_PipeLine* thePipeLine);
106 VISU_CutLinesBasePL *myCutLinesBasePL;
107 TCurvesInv myMapCurvesInverted;
108 CORBA::Boolean myUseAbsLength;
111 //! Extends VISU_ColoredPrs3d_i::Create
114 Create(const std::string& theMeshName,
115 VISU::Entity theEntity,
116 const std::string& theFieldName,
117 CORBA::Long theTimeStampNumber);
119 //! Extends VISU_ColoredPrs3d_i::ToStream
122 ToStream(std::ostringstream& theStr);
124 //! Extends VISU_ColoredPrs3d_i::Restore
127 Restore(SALOMEDS::SObject_ptr theSObject,
128 const Storable::TRestoringMap& theMap);
132 SameAs(const Prs3d_i* theOrigin);
134 void BuildTableOfReal(SALOMEDS::SObject_var theSObject,
135 bool theIsCutSegment = false);