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_IsoSurfaces_i_HeaderFile
00029 #define VISU_IsoSurfaces_i_HeaderFile
00030
00031 #include "VISU_I.hxx"
00032
00033 #include "VISU_MonoColorPrs_i.hh"
00034
00035 class VISU_IsoSurfacesPL;
00036
00037 namespace VISU
00038 {
00039
00040 class VISU_I_EXPORT IsoSurfaces_i : public virtual POA_VISU::IsoSurfaces,
00041 public virtual MonoColorPrs_i
00042 {
00043 static int myNbPresent;
00044 IsoSurfaces_i(const IsoSurfaces_i&);
00045
00046 public:
00047
00048 typedef MonoColorPrs_i TSuperClass;
00049 typedef VISU::IsoSurfaces TInterface;
00050
00051 explicit
00052 IsoSurfaces_i(EPublishInStudyMode thePublishInStudyModep);
00053
00054 virtual void SameAs(const Prs3d_i* theOrigin);
00055
00056 virtual
00057 ~IsoSurfaces_i();
00058
00059 virtual
00060 VISU::VISUType
00061 GetType()
00062 {
00063 return VISU::TISOSURFACES;
00064 }
00065
00066 virtual
00067 void
00068 SetNbSurfaces(CORBA::Long theNb);
00069
00070 virtual
00071 CORBA::Long
00072 GetNbSurfaces();
00073
00074 virtual
00075 void
00076 SetSubRange(CORBA::Double theMin, CORBA::Double theMax);
00077
00078 virtual
00079 CORBA::Double
00080 GetSubMin();
00081
00082 virtual
00083 CORBA::Double
00084 GetSubMax();
00085
00086 virtual
00087 void
00088 SetSubRangeFixed(CORBA::Boolean theIsFixed);
00089
00090 virtual
00091 CORBA::Boolean
00092 IsSubRangeFixed();
00093
00094 VISU_IsoSurfacesPL*
00095 GetSpecificPL() const
00096 {
00097 return myIsoSurfacesPL;
00098 }
00099
00100
00101 virtual CORBA::Boolean IsLabeled();
00102 virtual void ShowLabels(CORBA::Boolean theShow, CORBA::Long theNb);
00103
00104 virtual CORBA::Long GetNbLabels();
00105
00106
00107 protected:
00109 virtual
00110 void
00111 CreatePipeLine(VISU_PipeLine* thePipeLine);
00112
00114 virtual
00115 void
00116 DoSetInput(bool theIsInitilizePipe, bool theReInit);
00117
00119 virtual
00120 bool
00121 CheckIsPossible();
00122
00123 VISU_IsoSurfacesPL* myIsoSurfacesPL;
00124
00125 bool myIsLabeled;
00126 CORBA::Long myNbLabels;
00127
00128 public:
00129 static
00130 size_t
00131 IsPossible(Result_i* theResult,
00132 const std::string& theMeshName,
00133 VISU::Entity theEntity,
00134 const std::string& theFieldName,
00135 CORBA::Long theTimeStampNumber,
00136 bool theIsMemoryCheck);
00137
00138 virtual
00139 Storable*
00140 Create(const std::string& theMeshName,
00141 VISU::Entity theEntity,
00142 const std::string& theFieldName,
00143 CORBA::Long theTimeStampNumber);
00144
00145 static const std::string myComment;
00146
00147 virtual
00148 const char*
00149 GetComment() const;
00150
00151 virtual
00152 QString
00153 GenerateName();
00154
00155 virtual
00156 const char*
00157 GetIconName();
00158
00159 virtual
00160 void
00161 ToStream(std::ostringstream& theStr);
00162
00163 virtual
00164 Storable*
00165 Restore(SALOMEDS::SObject_ptr theSObject,
00166 const Storable::TRestoringMap& theMap);
00167
00168 virtual
00169 VISU_Actor*
00170 CreateActor();
00171
00172 virtual
00173 void
00174 SetMapScale(double theMapScale = 1.0);
00175
00176 virtual void UpdateActor(VISU_ActorBase* theActor);
00177
00178 };
00179 }
00180
00181 #endif