]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Executable version on Windows Platform BR_WPdev_For_5_0 mergeto_BR_QT4_Dev_08Aug2008
authorabd <abd@opencascade.com>
Thu, 17 Jul 2008 11:31:16 +0000 (11:31 +0000)
committerabd <abd@opencascade.com>
Thu, 17 Jul 2008 11:31:16 +0000 (11:31 +0000)
src/CONVERTOR/VISU_ConvertorDef_impl.hxx
src/CONVERTOR/VISU_Structures_impl.hxx
src/GUITOOLS/VisuGUI_TableDlg.h
src/PIPELINE/VISU_PipeLineUtils.hxx
src/VISUGUI/VisuGUI_CutLinesDlg.cxx
src/VISUGUI/VisuGUI_CutPlanesDlg.cxx

index eb7fbcd0d484b68ed14644e5137210cebb4cd9de..639119b177e392ec1fa48098e059f76d44e1bcf4 100644 (file)
@@ -54,10 +54,6 @@ namespace VISU
   typedef vtkSmartPointer<VISU_MergeFilter> PMergeFilter;
   typedef vtkSmartPointer<VISU_CommonCellsFilter> PCommonCellsFilter;
   
-  struct TCommonCellsFilterHolder;
-  typedef MED::SharedPtr<TCommonCellsFilterHolder> PCommonCellsFilterHolder; 
-  
   //---------------------------------------------------------------
   typedef vtkSmartPointer<vtkPolyData> PPolyData;
   typedef vtkSmartPointer<VISU_AppendPolyData> PAppendPolyData;
index fe6a7cc59f0194246e4a716e5e22d24411ff2c01..b7aa858519b06aa8a878c45e4c0fb6d91ed93b02 100644 (file)
@@ -137,36 +137,6 @@ namespace VISU
   /*!
     This container allow to combine other VTK representation into single one.
   */
-  class VISU_CONVERTOR_EXPORT TCommonCellsFilterHolder: public virtual TMemoryCheckIDMapper
-  {
-  protected:
-    mutable PCommonCellsFilter myFilter;
-    mutable PMergeFilter myMergeFilter;
-  public:
-    TCommonCellsFilterHolder();
-
-    //! This method allow to create corresponding VTK filter by demand (not at once)
-    const PCommonCellsFilter& 
-    GetFilter() const;
-
-    //! Reimplement the TNamedIDMapper::GetUnstructuredGridOutput
-    virtual
-    vtkUnstructuredGrid* 
-    GetUnstructuredGridOutput();
-
-    virtual
-    unsigned long int
-    GetMemorySize();
-
-    //! if false, TIDCommonCellsFilter - same as TIDMapperFilter
-    //! if true, TIDCommonCellsFilter - use VISU_CommonCellsFilter
-    bool myIsSpecialKey;
-
-    //! Vector of id mappers, which consist of meshonentity in next sequence:
-    //! CELL_ENTITY,FACE_ENTITY,EDGE_ENTITY
-    PNamedIDMapperMap myMappers;
-  };
-
   //---------------------------------------------------------------
   //! Define a container for VTK representation
   /*!
index d36731ee0a2e7e395ab969a9a2715b07a77eceb4..1389a9ef3f11eff1d0d59857f7e301383c67e922 100644 (file)
@@ -72,7 +72,7 @@ private:
   _PTR(SObject) myObject;
 };
  
-class VisuGUI_TableWidget : public QWidget
+class VISU_GUITOOLS_EXPORT VisuGUI_TableWidget : public QWidget
 {
   Q_OBJECT
 public:
@@ -127,7 +127,7 @@ private:
   Qt::Orientation  myOrientation;
 };
 
-class NumDelegateItem: public QItemDelegate
+class VISU_GUITOOLS_EXPORT NumDelegateItem: public QItemDelegate
 {
 public:
   enum NumValidator{ NV_Int, NV_Real };
index 65909900e69c2d219a4221c578b75ac603e38522..564586ab18800ff29d916b9ce24781ab7318306e 100644 (file)
@@ -95,12 +95,12 @@ namespace VISU
                   vtkFloatingPointType theSource);
 
   //! Checks whether the scalar range is the same or not
-  bool
+  bool VISU_PIPELINE_EXPORT
   CheckIsSameRange(vtkFloatingPointType* theTarget,
                   vtkFloatingPointType* theSource);
 
   //! Customizes vtkMapper::ShallowCopy
-  void
+  void VISU_PIPELINE_EXPORT
   CopyMapper(vtkMapper* theTarget, 
             vtkMapper* theSource,
             bool theIsCopyInput);
@@ -112,20 +112,20 @@ namespace VISU
                    bool theIsCopyInput);
 
   //! Customizes vtkPolyDataMapper::ShallowCopy
-  void
+  void VISU_PIPELINE_EXPORT
   CopyPolyDataMapper(vtkPolyDataMapper* theTarget, 
                     vtkPolyDataMapper* theSource,
                     bool theIsCopyInput);
 
   //! Customizes VISU_OpenGLPointSpriteMapper::ShallowCopy
-  void
+  void VISU_PIPELINE_EXPORT
   CopyPointSpriteDataMapper(VISU_OpenGLPointSpriteMapper* theTarget, 
                            VISU_OpenGLPointSpriteMapper* theSource,
                            bool theIsCopyInput);
 
 
   //----------------------------------------------------------------------------
-  void
+  void VISU_PIPELINE_EXPORT
   ComputeBoundsParam(vtkDataSet* theDataSet,
                     vtkFloatingPointType theDirection[3], 
                     vtkFloatingPointType theMinPnt[3],
@@ -134,7 +134,7 @@ namespace VISU
 
 
   //----------------------------------------------------------------------------
-  void
+  void VISU_PIPELINE_EXPORT
   DistanceToPosition(vtkDataSet* theDataSet,
                     vtkFloatingPointType theDirection[3], 
                     vtkFloatingPointType theDist, 
@@ -142,7 +142,7 @@ namespace VISU
 
 
   //----------------------------------------------------------------------------
-  void
+  void VISU_PIPELINE_EXPORT
   PositionToDistance(vtkDataSet* theDataSet,
                     vtkFloatingPointType theDirection[3], 
                     vtkFloatingPointType thePos[3], 
index a659f464a6442e5a99c39133594b399a46150db2..de7720639a3f040cc26dc4bf2378509fab6c8d1c 100644 (file)
@@ -438,7 +438,7 @@ void VisuGUI_CutLinesDlg::createPlanes()
 {
   SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
   if (aView == NULL) return;
-  if (!myCutLines) return;
+  if (!(bool)myCutLines) return;
   if (myPreviewActor != 0) return;
 
   storeToPrsObject(myCutLines);
@@ -534,7 +534,7 @@ void VisuGUI_CutLinesDlg::onCutSelect (int theId, bool theUpdate)
   }
   SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
   if (aView) {
-    if (theUpdate && myPreviewCheck->isChecked() && myCutLines) {
+    if (theUpdate && myPreviewCheck->isChecked() && (bool)myCutLines) {
       deletePlanes();
       createPlanes();
     }
@@ -551,7 +551,7 @@ void VisuGUI_CutLinesDlg::setBaseDefault (bool theUpdate)
     myCutLines->SetDisplacement(myPosSpn->value());
     SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
     if (aView) {
-      if (theUpdate && myPreviewCheck->isChecked() && myCutLines) {
+      if (theUpdate && myPreviewCheck->isChecked() && (bool)myCutLines) {
         deletePlanes();
         createPlanes();
       }
@@ -956,7 +956,7 @@ void VisuGUI_CutLinesDlg::onAllCurvesInvertedCheck(bool theInvert)
 
 void VisuGUI_CutLinesDlg::onRotation (double theValue)
 {
-  if (!myCutLines) return;
+  if (!(bool)myCutLines) return;
   SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
   if (aView) {
     if (myPreviewCheck->isChecked()) {
@@ -968,7 +968,7 @@ void VisuGUI_CutLinesDlg::onRotation (double theValue)
 
 void VisuGUI_CutLinesDlg::onPlanePos (const QString& theValue)
 {
-  if (!myCutLines) return;
+  if (!(bool)myCutLines) return;
   SVTK_ViewWindow* aView = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
   if (aView) {
     if (myPreviewCheck->isChecked()) {
index e99b70e5e0e5d6b739928eb5ea776ec6d782b78b..ea69f6681f86211bd282f46ca70cffd4d047f1f0 100644 (file)
@@ -223,7 +223,7 @@ void VisuGUI_CutPlanesPane::initFromPrsObject (VISU::CutPlanes_i* thePrs)
 void VisuGUI_CutPlanesPane::createPlanes()
 {
   if (VISU::GetActiveViewWindow<SVTK_ViewWindow>() == NULL) return;
-  if (!myCutPlanes) return;
+  if (!(bool)myCutPlanes) return;
   if (myPreviewActor != 0) return;
 
   vtkAppendPolyData* aPolyData = myCutPlanes->GetSpecificPL()->GetAppendPolyData();
@@ -329,7 +329,7 @@ void VisuGUI_CutPlanesPane::setRotation (const double r1, const double r2)
 */
 void VisuGUI_CutPlanesPane::DrawTable()
 {
-  if (!myCutPlanes) return;
+  if (!(bool)myCutPlanes) return;
   if (!hasInit) return;
 
   int aNbRows = myPosTable->rowCount();
@@ -552,7 +552,7 @@ void VisuGUI_CutPlanesPane::deletePlanes()
 
 void VisuGUI_CutPlanesPane::onRotation (double theValue)
 {
-  if (!myCutPlanes) return;
+  if (!(bool)myCutPlanes) return;
   if (myPreviewCheck->isChecked()) {
     if (SVTK_ViewWindow* vf = VISU::GetActiveViewWindow<SVTK_ViewWindow>()) {
       myCutPlanes->SetOrientation(getOrientaion(),getRotation1()*PI/180.,getRotation2()*PI/180.);