src/PIPELINE/VISU_IsoSurfacesPL.hxx

Go to the documentation of this file.
00001 //  VISU OBJECT : interactive object for VISU entities implementation
00002 //
00003 //  Copyright (C) 2003  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 // File:    VISU_PipeLine.hxx
00024 // Author:  Alexey PETROV
00025 // Module : VISU
00026 
00027 #ifndef VISU_IsoSurfacesPL_HeaderFile
00028 #define VISU_IsoSurfacesPL_HeaderFile
00029 
00030 #include "VISU_ScalarMapPL.hxx"
00031 
00032 class vtkContourFilter;
00033 class vtkCellDataToPointData;
00034 
00035 class VISU_IsoSurfacesPL : public VISU_ScalarMapPL
00036 {
00037 protected:
00038   VISU_IsoSurfacesPL();
00039   VISU_IsoSurfacesPL(const VISU_IsoSurfacesPL&);
00040 
00041   virtual
00042   ~VISU_IsoSurfacesPL();
00043 
00044 public:
00045   vtkTypeMacro(VISU_IsoSurfacesPL,VISU_ScalarMapPL);
00046 
00047   static
00048   VISU_IsoSurfacesPL* 
00049   New();
00050 
00051   virtual
00052   void
00053   ShallowCopy(VISU_PipeLine *thePipeLine);
00054 
00055   virtual
00056   int
00057   GetNbParts();
00058 
00059   virtual
00060   void
00061   SetNbParts(int theNb = 10);
00062 
00063   virtual
00064   void
00065   SetScaling(int theScaling = VTK_SCALE_LINEAR);
00066 
00067   virtual
00068   void
00069   SetRange(vtkFloatingPointType theRange[2]);
00070 
00071   virtual
00072   vtkFloatingPointType
00073   GetMin();
00074 
00075   virtual
00076   vtkFloatingPointType
00077   GetMax();
00078   
00079 public:
00080   virtual
00081   void
00082   Init();
00083 
00084   virtual
00085   void
00086   Update();
00087 
00088   virtual
00089   THook* 
00090   DoHook();
00091 
00092   virtual
00093   void
00094   SetMapScale(vtkFloatingPointType theMapScale = 1.0);
00095 
00096 protected:
00097   int myNbParts;
00098   vtkFloatingPointType myRange[2];
00099   vtkCellDataToPointData* myCellDataToPointData;
00100   vtkContourFilter *myContourFilter;
00101 };
00102 
00103 
00104 #endif