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_CutSegment_i.hh
21 // Author : Oleg UVAROV
24 #ifndef VISU_CutSegment_i_HeaderFile
25 #define VISU_CutSegment_i_HeaderFile
28 #include "VISU_CutLinesBase_i.hh"
30 class VISU_CutSegmentPL;
34 //----------------------------------------------------------------------------
35 class VISU_I_EXPORT CutSegment_i : public virtual POA_VISU::CutSegment,
36 public virtual CutLinesBase_i
38 static int myNbPresent;
39 CutSegment_i(const CutSegment_i&);
42 //----------------------------------------------------------------------------
43 typedef CutLinesBase_i TSuperClass;
44 typedef VISU::CutSegment TInterface;
47 CutSegment_i(EPublishInStudyMode thePublishInStudyModep);
56 return VISU::TCUTSEGMENT;
61 SetPoint1(CORBA::Double theX,
67 GetPoint1(CORBA::Double& theX,
69 CORBA::Double& theZ );
73 SetPoint2(CORBA::Double theX,
79 GetPoint2(CORBA::Double& theX,
81 CORBA::Double& theZ );
86 return myCutSegmentPL;
90 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
93 CreatePipeLine(VISU_PipeLine* thePipeLine);
95 //! Extends VISU_ColoredPrs3d_i::CheckIsPossible
104 VISU_CutSegmentPL *myCutSegmentPL;
107 //! Extends VISU_ColoredPrs3d_i::IsPossible
110 IsPossible(Result_i* theResult,
111 const std::string& theMeshName,
112 VISU::Entity theEntity,
113 const std::string& theFieldName,
114 CORBA::Long theTimeStampNumber,
115 bool theIsMemoryCheck);
117 //! Extends VISU_ColoredPrs3d_i::Create
120 Create(const std::string& theMeshName,
121 VISU::Entity theEntity,
122 const std::string& theFieldName,
123 CORBA::Long theTimeStampNumber);
125 //! Extends VISU_ColoredPrs3d_i::ToStream
128 ToStream(std::ostringstream& theStr);
130 //! Extends VISU_ColoredPrs3d_i::Restore
133 Restore(SALOMEDS::SObject_ptr theSObject,
134 const Storable::TRestoringMap& theMap);
138 SameAs(const Prs3d_i* theOrigin);
140 //! Extends VISU_ColoredPrs3d_i::CreateActor
145 static const std::string myComment;