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 : 00025 // Author : 00026 // Module : VISU 00027 // 00028 #ifndef VISU_DATASETACTOR_H 00029 #define VISU_DATASETACTOR_H 00030 00031 #include "VISU_OBJECT.h" 00032 #include "VISU_Actor.h" 00033 00034 class vtkDataSetMapper; 00035 class VTKViewer_DataSetMapper; 00036 class SALOME_ExtractGeometry; 00037 class SALOME_ExtractPolyDataGeometry; 00038 class vtkImplicitBoolean; 00039 class vtkImplicitFunctionCollection; 00040 00041 //---------------------------------------------------------------------------- 00042 class VISU_OBJECT_EXPORT VISU_DataSetActor : public VISU_Actor 00043 { 00044 public: 00045 vtkTypeMacro(VISU_DataSetActor,VISU_Actor); 00046 00047 static 00048 VISU_DataSetActor* 00049 New(); 00050 00051 virtual 00052 void 00053 ShallowCopyPL(VISU_PipeLine* thePipeLine); 00054 00055 virtual 00056 vtkDataSetMapper* 00057 GetDataSetMapper(); 00058 00059 //---------------------------------------------------------------------------- 00060 virtual void RemoveAllClippingPlanes(); 00061 00062 virtual vtkIdType GetNumberOfClippingPlanes(); 00063 00064 virtual bool AddClippingPlane(vtkPlane* thePlane); 00065 00066 virtual vtkPlane* GetClippingPlane(vtkIdType theID); 00067 00068 virtual vtkImplicitFunctionCollection* GetClippingPlanes(); 00069 00070 //---------------------------------------------------------------------------- 00071 protected: 00072 VISU_DataSetActor(); 00073 00074 virtual 00075 ~VISU_DataSetActor(); 00076 00077 virtual 00078 void 00079 SetMapperInput(vtkDataSet* theDataSet); 00080 00081 //---------------------------------------------------------------------------- 00082 vtkSmartPointer<VTKViewer_DataSetMapper> myMapper; 00083 vtkSmartPointer<SALOME_ExtractGeometry> myExtractor; 00084 vtkSmartPointer<SALOME_ExtractPolyDataGeometry> myPolyDataExtractor; 00085 vtkSmartPointer<vtkImplicitBoolean> myFunction; 00086 }; 00087 00088 #endif //VISU_DATASETACTOR_H