Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef VISU_StreamLines_i_HeaderFile
00029 #define VISU_StreamLines_i_HeaderFile
00030
00031
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
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