src/PIPELINE/VISU_DeformedShapePL.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_DeformedShapePL_HeaderFile
00028 #define VISU_DeformedShapePL_HeaderFile
00029 
00030 #include "VISU_ScalarMapPL.hxx"
00031 
00032 class vtkCellDataToPointData;
00033 class SALOME_Transform;
00034 class vtkWarpVector;
00035 
00036 class VISU_DeformedShapePL : public VISU_ScalarMapPL
00037 {
00038 protected:
00039   VISU_DeformedShapePL();
00040   VISU_DeformedShapePL(const VISU_DeformedShapePL&);
00041 
00042   virtual
00043   ~VISU_DeformedShapePL();
00044 
00045 public:
00046   vtkTypeMacro(VISU_DeformedShapePL,VISU_ScalarMapPL);
00047 
00048   static
00049   VISU_DeformedShapePL* 
00050   New();
00051 
00052   virtual
00053   void
00054   ShallowCopy(VISU_PipeLine *thePipeLine);
00055 
00056   virtual
00057   void
00058   SetScale(vtkFloatingPointType theScale);
00059 
00060   virtual
00061   vtkFloatingPointType 
00062   GetScale();
00063   
00064 public:
00065   virtual
00066   void
00067   Init();
00068 
00069   virtual
00070   void
00071   Update();
00072 
00073   virtual
00074   void
00075   SetMapScale(vtkFloatingPointType theMapScale = 1.0);
00076 
00077   static
00078   vtkFloatingPointType
00079   GetScaleFactor(vtkDataSet* theDataSet);
00080 
00081 protected:
00082   virtual
00083   THook* 
00084   DoHook();
00085 
00086   vtkFloatingPointType myScaleFactor;
00087   vtkWarpVector *myWarpVector;
00088   vtkCellDataToPointData* myCellDataToPointData;
00089 };
00090 
00091 
00092 #endif