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 // VISU OBJECT : interactive object for VISU entities implementation 00024 // File : VISU_VectorsAct.h 00025 // Author : Laurent CORNABE with help of Nicolas REJNERI 00026 // Module : VISU 00027 // 00028 #ifndef VISU_VectorsAct_HeaderFile 00029 #define VISU_VectorsAct_HeaderFile 00030 00031 #include "VISU_OBJECT.h" 00032 #include "VISU_ScalarMapAct.h" 00033 00034 #include <vtkSmartPointer.h> 00035 00036 class VTKViewer_Transform; 00037 class VISU_VectorsPL; 00038 00039 class VISU_OBJECT_EXPORT VISU_VectorsAct : public VISU_ScalarMapAct 00040 { 00041 public: 00042 vtkTypeMacro(VISU_VectorsAct,VISU_ScalarMapAct); 00043 00044 static 00045 VISU_VectorsAct* 00046 New(); 00047 00048 virtual 00049 void 00050 SetPipeLine(VISU_PipeLine* thePipeLine); 00051 00052 virtual 00053 vtkDataSet* 00054 GetInput(); 00055 00056 virtual 00057 void 00058 SetTransform(VTKViewer_Transform* theTransform); 00059 00060 virtual 00061 void 00062 SetMapper(vtkMapper* theMapper); 00063 00065 virtual 00066 unsigned long int 00067 GetMemorySize(); 00068 00069 virtual 00070 vtkDataSet* 00071 GetValLabelsInput(); 00072 00073 //---------------------------------------------------------------------------- 00076 virtual vtkDataSet* GetHighlightedDataSet(); 00077 00078 00079 protected: 00080 VISU_VectorsAct(); 00081 ~VISU_VectorsAct(); 00082 00083 vtkSmartPointer<VISU_VectorsPL> myVectorsPL; 00084 }; 00085 00086 #endif