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