1 // VISU OBJECT : interactive object for VISU entities implementation
3 // Copyright (C) 2003 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 // File : VISU_PrsObject_i.hxx
24 // Author : Alexey PETROV
27 #ifndef VISU_StreamLines_i_HeaderFile
28 #define VISU_StreamLines_i_HeaderFile
30 #include "VISU_DeformedShape_i.hh"
32 class VISU_StreamLinesPL;
33 class vtkAppendFilter;
37 //----------------------------------------------------------------------------
38 class VISU_I_EXPORT StreamLines_i : public virtual POA_VISU::StreamLines,
39 public virtual DeformedShape_i
41 static int myNbPresent;
42 StreamLines_i(const StreamLines_i&);
45 //----------------------------------------------------------------------------
46 typedef DeformedShape_i TSuperClass;
47 typedef VISU::StreamLines TInterface;
50 StreamLines_i(EPublishInStudyMode thePublishInStudyModep);
54 SameAs(const Prs3d_i* theOriginal);
60 VISU::VISUType GetType()
62 return VISU::TSTREAMLINES;
67 SetParams(CORBA::Double theIntStep,
68 CORBA::Double thePropogationTime,
69 CORBA::Double theStepLength,
70 VISU::Prs3d_ptr thePrs3d,
71 CORBA::Double thePercents,
72 VISU::StreamLines::Direction theDirection);
95 VISU::StreamLines::Direction
101 return myStreamLinesPL;
105 //! Extends VISU_ColoredPrs3d_i::CreatePipeLine
108 CreatePipeLine(VISU_PipeLine* thePipeLine);
110 //! Extends VISU_ColoredPrs3d_i::CheckIsPossible
117 SetSource(VISU::Prs3d_ptr thePrs3d);
121 SetSource(VISU::Prs3d_i* thePrs3d);
127 VISU_StreamLinesPL* myStreamLinesPL;
128 vtkAppendFilter* myAppendFilter;
129 std::string mySourceEntry;
132 //! Extends VISU_ColoredPrs3d_i::IsPossible
135 IsPossible(Result_i* theResult,
136 const std::string& theMeshName,
137 VISU::Entity theEntity,
138 const std::string& theFieldName,
139 CORBA::Long theTimeStampNumber,
140 bool theIsMemoryCheck);
142 //! Extends VISU_ColoredPrs3d_i::Create
145 Create(const std::string& theMeshName,
146 VISU::Entity theEntity,
147 const std::string& theFieldName,
148 CORBA::Long theTimeStampNumber);
150 //! Extends VISU_ColoredPrs3d_i::ToStream
153 ToStream(std::ostringstream& theStr);
155 static const std::string myComment;
169 //! Extends VISU_ColoredPrs3d_i::Restore
172 Restore(SALOMEDS::SObject_ptr theSObject,
173 const Storable::TRestoringMap& theMap);
175 //! Extends VISU_ColoredPrs3d_i::Update
180 //! Extends VISU_ColoredPrs3d_i::CreateActor
185 //! Extends VISU_ColoredPrs3d_i::UpdateActor
188 UpdateActor(VISU_Actor* theActor);
194 return QString(mySourceEntry.c_str());