Version: 6.3.1

src/PIPELINE/VISU_ImplicitFunctionWidget.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  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 //  SALOME VTKViewer : build VTK viewer into Salome desktop
00024 //  File   : VISU_PlanesWidget.h
00025 //  Author : Peter KURNEV
00026 //  Module : SALOME
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/PIPELINE/VISU_ImplicitFunctionWidget.hxx,v 1.6.16.1.8.1 2011-06-02 06:00:18 vsr Exp $
00028 //
00029 #ifndef __VISU_ImplicitFunctionWidget_h
00030 #define __VISU_ImplicitFunctionWidget_h
00031 
00032 #include <vtkFollower.h>
00033 
00034 #include "VISUPipeline.hxx"
00035 
00036 #include "VTKViewer.h"
00037 
00038 class VISU_UnScaledActor: public vtkFollower
00039 {
00040   
00041 public:
00042   
00043   vtkTypeMacro(VISU_UnScaledActor,vtkFollower);
00044   static VISU_UnScaledActor *New();
00045   
00046   void SetCenter(vtkFloatingPointType *);
00047   virtual void SetSize(int theSize);
00048   virtual void Render(vtkRenderer *theRenderer);
00049   virtual vtkFloatingPointType *GetBounds();
00050 
00051 protected:
00052   VISU_UnScaledActor();
00053   ~VISU_UnScaledActor(){}
00054 
00055   vtkFloatingPointType myCenter[3];
00056   int mySize;
00057 };
00058 
00059 #include <vtk3DWidget.h>
00060 
00061 class vtkImplicitFunction;
00062 
00063 class VISU_PIPELINE_EXPORT VISU_ImplicitFunctionWidget : public vtk3DWidget
00064 {
00065 public:
00066   vtkTypeRevisionMacro(VISU_ImplicitFunctionWidget,vtk3DWidget);
00067 
00068   virtual vtkImplicitFunction* ImplicitFunction()=0;
00069   
00070 protected:
00071   VISU_ImplicitFunctionWidget();
00072   ~VISU_ImplicitFunctionWidget();
00073 
00074 private:
00075   VISU_ImplicitFunctionWidget(const VISU_ImplicitFunctionWidget&);  //Not implemented
00076   void operator=(const VISU_ImplicitFunctionWidget&);  //Not implemented
00077 };
00078 
00079 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS