Salome HOME
Issue 0019818: EDF 703 SMESH VISU : Display Mesh Groups names in viewer (as a caption)
[modules/visu.git] / src / PIPELINE / VISU_IsoSurfacesPL.hxx
index 68732e377d1abe0688041a5e0aadd98301a7a84e..9c8b8a80b3cc78bfbd6c080f1bea252002bca86f 100644 (file)
-//  VISU OBJECT : interactive object for VISU entities implementation
+//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
 //
-//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
-// 
-//  This library is free software; you can redistribute it and/or 
-//  modify it under the terms of the GNU Lesser General Public 
-//  License as published by the Free Software Foundation; either 
-//  version 2.1 of the License. 
-// 
-//  This library is distributed in the hope that it will be useful, 
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-//  Lesser General Public License for more details. 
-// 
-//  You should have received a copy of the GNU Lesser General Public 
-//  License along with this library; if not, write to the Free Software 
-//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
-// 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+//  VISU OBJECT : interactive object for VISU entities implementation
 // File:    VISU_PipeLine.hxx
 // Author:  Alexey PETROV
 // Module : VISU
-
+//
 #ifndef VISU_IsoSurfacesPL_HeaderFile
 #define VISU_IsoSurfacesPL_HeaderFile
 
+#include "VISUPipeline.hxx"
 #include "VISU_ScalarMapPL.hxx"
 
 class vtkContourFilter;
 class vtkCellDataToPointData;
 
-class VISU_IsoSurfacesPL : public VISU_ScalarMapPL{
-protected:
-  VISU_IsoSurfacesPL();
-  VISU_IsoSurfacesPL(const VISU_IsoSurfacesPL&);
+
+//----------------------------------------------------------------------------
+class VISU_PIPELINE_EXPORT VISU_IsoSurfacesPL : public VISU_ScalarMapPL
+{
 public:
-  vtkTypeMacro(VISU_IsoSurfacesPL,VISU_ScalarMapPL);
-  static VISU_IsoSurfacesPL* New();
-  virtual ~VISU_IsoSurfacesPL();
-  virtual void ShallowCopy(VISU_PipeLine *thePipeLine);
-
-  virtual int GetNbParts();
-  virtual void SetNbParts(int theNb = 10);
-
-  virtual void SetScaling(int theScaling = VTK_SCALE_LINEAR);
-  virtual void SetRange(float theRange[2]);
-  virtual float GetMin();
-  virtual float GetMax();
+  vtkTypeMacro(VISU_IsoSurfacesPL, VISU_ScalarMapPL);
+
+  static
+  VISU_IsoSurfacesPL* 
+  New();
+
+  virtual
+  unsigned long int 
+  GetMTime();
+
+  //----------------------------------------------------------------------------
+  virtual
+  int
+  GetNbParts();
+
+  virtual vtkFloatingPointType GetValue(int i);
+
+  virtual
+  void
+  SetNbParts(int theNb = 10);
+
+  virtual
+  void
+  SetScalarRange( vtkFloatingPointType theRange[2] );
+
+  virtual
+  void
+  SetRange(vtkFloatingPointType theRange[2]);
+
+  virtual
+  vtkFloatingPointType
+  GetMin();
+
+  virtual
+  vtkFloatingPointType
+  GetMax();
   
 public:
-  virtual void Init();
-  virtual void Update();
-  virtual THook* DoHook();
-  virtual void SetMapScale(float theMapScale = 1.0);
+  virtual
+  void
+  Init();
+
+  virtual
+  void
+  Build();
+
+  //! Gets memory size used by the instance (bytes).
+  virtual
+  unsigned long int
+  GetMemorySize();
+
+  virtual
+  vtkDataSet* 
+  InsertCustomPL();
+
+  virtual
+  void
+  SetMapScale(vtkFloatingPointType theMapScale = 1.0);
 
 protected:
+  VISU_IsoSurfacesPL();
+
+  virtual
+  ~VISU_IsoSurfacesPL();
+
+  virtual
+  void
+  DoShallowCopy(VISU_PipeLine *thePipeLine,
+               bool theIsCopyInput);
+
   int myNbParts;
-  float myRange[2];
+  vtkFloatingPointType myRange[2];
   vtkCellDataToPointData* myCellDataToPointData;
   vtkContourFilter *myContourFilter;
+
+private:
+  VISU_IsoSurfacesPL(const VISU_IsoSurfacesPL&);;  // Not implemented.
+  void operator=(const VISU_IsoSurfacesPL&);  // Not implemented.
+
 };