src/OBJECT/VISU_MeshAct.h

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 //
00024 //  File   : VISU_MeshAct.h
00025 //  Author : Laurent CORNABE with the help of Nicolas REJNERI
00026 //  Module : VISU
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/OBJECT/VISU_MeshAct.h,v 1.7.2.1 2006/10/25 08:29:48 epa Exp $
00028 
00029 #ifndef VISU_MeshAct_HeaderFile
00030 #define VISU_MeshAct_HeaderFile
00031 
00032 #include "VISU_Actor.h"
00033 
00034 class VTKOCC_EXPORT VISU_MeshAct : public VISU_Actor 
00035 {
00036  public:
00037   vtkTypeMacro(VISU_MeshAct,VISU_Actor);
00038   static VISU_MeshAct* New();
00039 
00041   virtual
00042   void
00043   SetTransform(VTKViewer_Transform* theTransform); 
00044 
00045   virtual
00046   vtkProperty* 
00047   GetSurfaceProperty(); 
00048 
00049   virtual
00050   vtkProperty* 
00051   GetEdgeProperty(); 
00052 
00053   virtual
00054   vtkProperty* 
00055   GetNodeProperty(); 
00056 
00057   virtual
00058   void
00059   SetOpacity(vtkFloatingPointType theValue);
00060 
00061   virtual
00062   vtkFloatingPointType
00063   GetOpacity();
00064 
00065   virtual
00066   void
00067   SetLineWidth(vtkFloatingPointType theLineWidth);
00068 
00069   virtual
00070   vtkFloatingPointType
00071   GetLineWidth();
00072 
00073   virtual
00074   void
00075   SetRepresentation(int theMode);
00076 
00077   virtual
00078   void
00079   SetShrinkable(bool theIsShrinkable);
00080 
00081   virtual
00082   void
00083   SetShrinkFactor(vtkFloatingPointType theFactor = 0.8); 
00084 
00085   virtual
00086   void
00087   SetShrink(); 
00088 
00089   virtual
00090   void
00091   UnShrink(); 
00092 
00093   virtual
00094   int
00095   RenderOpaqueGeometry(vtkViewport *ren);
00096 
00097   virtual
00098   int
00099   RenderTranslucentGeometry(vtkViewport *ren);
00100 
00101  protected:
00102   VISU_MeshAct();
00103   ~VISU_MeshAct();
00104 
00105   virtual 
00106   void
00107   SetMapperInput(vtkDataSet* theDataSet);
00108 
00109   SVTK_DeviceActor *mySurfaceActor;
00110   SVTK_DeviceActor *myEdgeActor;
00111   SVTK_DeviceActor *myNodeActor;
00112 };
00113 
00114 #endif