Version: 6.3.1

src/VISU_I/VISU_StreamLines_i.hh

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU OBJECT : interactive object for VISU entities implementation
00024 //  File   : VISU_PrsObject_i.hxx
00025 //  Author : Alexey PETROV
00026 //  Module : VISU
00027 //
00028 #ifndef VISU_StreamLines_i_HeaderFile
00029 #define VISU_StreamLines_i_HeaderFile
00030 
00031 //#include "VISU_DeformedShape_i.hh"
00032 #include "VISU_MonoColorPrs_i.hh"
00033 
00034 class VISU_StreamLinesPL;
00035 class vtkAppendFilter;
00036 
00037 namespace VISU
00038 {
00039   //----------------------------------------------------------------------------
00040   class VISU_I_EXPORT StreamLines_i : public virtual POA_VISU::StreamLines,
00041                           public virtual MonoColorPrs_i
00042     //public virtual DeformedShape_i
00043   {
00044     static int myNbPresent;
00045     StreamLines_i(const StreamLines_i&);
00046 
00047   public:
00048     //----------------------------------------------------------------------------
00049     typedef MonoColorPrs_i TSuperClass;
00050     typedef VISU::StreamLines TInterface;
00051 
00052     explicit
00053     StreamLines_i(EPublishInStudyMode thePublishInStudyModep);
00054 
00055     virtual
00056     void
00057     SameAs(const Prs3d_i* theOriginal);
00058 
00059     virtual
00060     ~StreamLines_i();
00061 
00062     virtual
00063     VISU::VISUType GetType()
00064     {
00065       return VISU::TSTREAMLINES;
00066     }
00067 
00068     virtual
00069     CORBA::Boolean 
00070     SetParams(CORBA::Double theIntStep,
00071            CORBA::Double thePropogationTime,
00072            CORBA::Double theStepLength,
00073            VISU::Prs3d_ptr thePrs3d,
00074            CORBA::Double thePercents,
00075            VISU::StreamLines::Direction theDirection);
00076 
00077     virtual
00078     CORBA::Double
00079     GetIntegrationStep();
00080 
00081     virtual
00082     CORBA::Double
00083     GetPropagationTime();
00084 
00085     virtual
00086     CORBA::Double
00087     GetStepLength();
00088 
00089     virtual
00090     CORBA::Double
00091     GetUsedPoints();
00092 
00093     virtual
00094     VISU::Prs3d_ptr
00095     GetSource();
00096 
00097     virtual
00098     VISU::StreamLines::Direction 
00099     GetDirection();
00100 
00101     VISU_StreamLinesPL* 
00102     GetSpecificPL() const
00103     { 
00104       return myStreamLinesPL; 
00105     }
00106     
00107   protected:
00109     virtual 
00110     void
00111     CreatePipeLine(VISU_PipeLine* thePipeLine);
00112 
00114     virtual 
00115     bool 
00116     CheckIsPossible();
00117 
00118     virtual
00119     void
00120     SetSource(VISU::Prs3d_ptr thePrs3d);
00121 
00122     virtual
00123     void 
00124     SetSource(VISU::Prs3d_i* thePrs3d);
00125 
00126     virtual
00127     void
00128     SetSource();
00129 
00130     VISU_StreamLinesPL* myStreamLinesPL;
00131     vtkAppendFilter* myAppendFilter;
00132     std::string mySourceEntry;
00133 
00134   public:
00136     static 
00137     size_t
00138     IsPossible(Result_i* theResult, 
00139             const std::string& theMeshName, 
00140             VISU::Entity theEntity,
00141             const std::string& theFieldName, 
00142             CORBA::Long theTimeStampNumber,
00143             bool theIsMemoryCheck);
00144 
00146     virtual
00147     Storable* 
00148     Create(const std::string& theMeshName, 
00149         VISU::Entity theEntity,
00150         const std::string& theFieldName, 
00151         CORBA::Long theTimeStampNumber);
00152 
00154     virtual
00155     void
00156     ToStream(std::ostringstream& theStr);
00157 
00158     static const std::string myComment;
00159 
00160     virtual
00161     const char* 
00162     GetComment() const;
00163 
00164     virtual
00165     QString 
00166     GenerateName();
00167 
00168     virtual
00169     const char* 
00170     GetIconName();
00171 
00173     virtual 
00174     Storable* 
00175     Restore(SALOMEDS::SObject_ptr theSObject,
00176          const Storable::TRestoringMap& theMap);
00177 
00179     virtual 
00180     void 
00181     Update();
00182 
00184     virtual 
00185     VISU_Actor* 
00186     CreateActor();
00187 
00189     virtual
00190     void
00191     UpdateActor(VISU_Actor* theActor);
00192 
00193     virtual
00194     QString
00195     GetSourceEntry() 
00196     { 
00197       return QString(mySourceEntry.c_str()); 
00198     }
00199   };
00200 }
00201 
00202 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS