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_CutSegment_i.hh
23 // Author : Oleg UVAROV
26 #ifndef VISU_CutSegment_i_HeaderFile
27 #define VISU_CutSegment_i_HeaderFile
30 #include "VISU_CutLinesBase_i.hh"
32 class VISU_CutSegmentPL;
36 //----------------------------------------------------------------------------
37 class VISU_I_EXPORT CutSegment_i : public virtual POA_VISU::CutSegment,
38 public virtual CutLinesBase_i
40 static int myNbPresent;
41 CutSegment_i(const CutSegment_i&);
44 //----------------------------------------------------------------------------
45 typedef CutLinesBase_i TSuperClass;
46 typedef VISU::CutSegment TInterface;
49 CutSegment_i(EPublishInStudyMode thePublishInStudyModep);
58 return VISU::TCUTSEGMENT;
63 SetPoint1(CORBA::Double theX,
69 GetPoint1(CORBA::Double& theX,
71 CORBA::Double& theZ );
75 SetPoint2(CORBA::Double theX,
81 GetPoint2(CORBA::Double& theX,
83 CORBA::Double& theZ );
88 return myCutSegmentPL;
92 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
95 CreatePipeLine(VISU_PipeLine* thePipeLine);
97 //! Extends VISU_ColoredPrs3d_i::CheckIsPossible
106 VISU_CutSegmentPL *myCutSegmentPL;
109 //! Extends VISU_ColoredPrs3d_i::IsPossible
112 IsPossible(Result_i* theResult,
113 const std::string& theMeshName,
114 VISU::Entity theEntity,
115 const std::string& theFieldName,
116 CORBA::Long theTimeStampNumber,
117 bool theIsMemoryCheck);
119 //! Extends VISU_ColoredPrs3d_i::Create
122 Create(const std::string& theMeshName,
123 VISU::Entity theEntity,
124 const std::string& theFieldName,
125 CORBA::Long theTimeStampNumber);
127 //! Extends VISU_ColoredPrs3d_i::ToStream
130 ToStream(std::ostringstream& theStr);
132 //! Extends VISU_ColoredPrs3d_i::Restore
135 Restore(SALOMEDS::SObject_ptr theSObject,
136 const Storable::TRestoringMap& theMap);
140 SameAs(const Prs3d_i* theOrigin);
142 //! Extends VISU_ColoredPrs3d_i::CreateActor
147 static const std::string myComment;