1 // Copyright (C) 2007-2010 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
23 // VISU OBJECT : interactive object for VISU entities implementation
24 // File : VISU_PrsObject_i.hxx
25 // Author : Alexey PETROV
28 #ifndef VISU_CutLines_i_HeaderFile
29 #define VISU_CutLines_i_HeaderFile
32 #include "VISU_CutLinesBase_i.hh"
34 class VISU_CutLinesPL;
38 //----------------------------------------------------------------------------
39 class VISU_I_EXPORT CutLines_i : public virtual POA_VISU::CutLines,
40 public virtual CutLinesBase_i
42 static int myNbPresent;
43 CutLines_i(const CutLines_i&);
46 //----------------------------------------------------------------------------
47 typedef CutLinesBase_i TSuperClass;
48 typedef VISU::CutLines TInterface;
51 CutLines_i(EPublishInStudyMode thePublishInStudyModep);
60 return VISU::TCUTLINES;
65 SetOrientation(VISU::CutPlanes::Orientation theOrient,
66 CORBA::Double theXAngle,
67 CORBA::Double theYAngle);
71 SetOrientation2(VISU::CutPlanes::Orientation theOrient,
72 CORBA::Double theXAngle,
73 CORBA::Double theYAngle);
76 VISU::CutPlanes::Orientation
80 VISU::CutPlanes::Orientation
81 GetOrientationType2();
101 SetDisplacement(CORBA::Double theDisp);
109 SetDisplacement2(CORBA::Double theDisp);
117 SetBasePlanePosition(CORBA::Double thePlanePosition);
121 GetBasePlanePosition();
125 SetLinePosition(CORBA::Long thePlaneNumber,
126 CORBA::Double thePlanePosition);
130 GetLinePosition(CORBA::Long thePlaneNumber);
142 SetDefaultPosition(CORBA::Long thePlaneNumber);
146 IsDefaultPosition(CORBA::Long thePlaneNumber);
149 GetSpecificPL() const
155 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
158 CreatePipeLine(VISU_PipeLine* thePipeLine);
160 //! Extends VISU_ColoredPrs3d_i::CheckIsPossible
169 VISU_CutLinesPL *myCutLinesPL;
172 //! Extends VISU_ColoredPrs3d_i::IsPossible
175 IsPossible(Result_i* theResult,
176 const std::string& theMeshName,
177 VISU::Entity theEntity,
178 const std::string& theFieldName,
179 CORBA::Long theTimeStampNumber,
180 bool theIsMemoryCheck);
182 //! Extends VISU_ColoredPrs3d_i::Create
185 Create(const std::string& theMeshName,
186 VISU::Entity theEntity,
187 const std::string& theFieldName,
188 CORBA::Long theTimeStampNumber);
190 //! Extends VISU_ColoredPrs3d_i::ToStream
193 ToStream(std::ostringstream& theStr);
195 //! Extends VISU_ColoredPrs3d_i::Restore
198 Restore(SALOMEDS::SObject_ptr theSObject,
199 const Storable::TRestoringMap& theMap);
203 SameAs(const Prs3d_i* theOrigin);
205 //! Extends VISU_ColoredPrs3d_i::CreateActor
210 static const std::string myComment;