From: san Date: Mon, 15 Dec 2008 16:14:22 +0000 (+0000) Subject: Sample ParaView plugins: Sample filter X-Git-Tag: V2008a~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25635014555128b51321f8b04579e06c4d5bb5ae;p=modules%2Fparavis.git Sample ParaView plugins: Sample filter --- diff --git a/src/Plugins/CMakeLists.txt b/src/Plugins/CMakeLists.txt new file mode 100755 index 00000000..a9aad206 --- /dev/null +++ b/src/Plugins/CMakeLists.txt @@ -0,0 +1,11 @@ +PROJECT(SamplePlugins) +CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5) +IF(COMMAND CMAKE_POLICY) + CMAKE_POLICY(SET CMP0003 NEW) +ENDIF(COMMAND CMAKE_POLICY) + +FIND_PACKAGE(ParaView REQUIRED) +INCLUDE(${PARAVIEW_USE_FILE}) + +SUBDIRS(Filter) + diff --git a/src/Plugins/Filter/CMakeLists.txt b/src/Plugins/Filter/CMakeLists.txt new file mode 100755 index 00000000..16298101 --- /dev/null +++ b/src/Plugins/Filter/CMakeLists.txt @@ -0,0 +1,13 @@ + +# create a paraview plugin containing server manager xml and the server +# manager classes to build +# this plugin can be loaded on the server side + +ADD_PARAVIEW_PLUGIN(SMSampleFilter "1.0" + SERVER_MANAGER_XML SampleFilter.xml + SERVER_MANAGER_SOURCES vtkMySampleFilter.cxx) + +INSTALL( + TARGETS SMSampleFilter + DESTINATION lib/salome +) diff --git a/src/Plugins/Filter/SampleFilter.xml b/src/Plugins/Filter/SampleFilter.xml new file mode 100755 index 00000000..9d7d4ca0 --- /dev/null +++ b/src/Plugins/Filter/SampleFilter.xml @@ -0,0 +1,23 @@ + + + + +Documentation text + + + + + + + + + + + + + + diff --git a/src/Plugins/Filter/vtkMySampleFilter.cxx b/src/Plugins/Filter/vtkMySampleFilter.cxx new file mode 100644 index 00000000..f16d1c23 --- /dev/null +++ b/src/Plugins/Filter/vtkMySampleFilter.cxx @@ -0,0 +1,23 @@ +#include "vtkMySampleFilter.h" + +#include + +vtkCxxRevisionMacro(vtkMySampleFilter, "$Revision$"); +vtkStandardNewMacro(vtkMySampleFilter); + +//---------------------------------------------------------------------------- +vtkMySampleFilter::vtkMySampleFilter() +{ +} + +//---------------------------------------------------------------------------- +vtkMySampleFilter::~vtkMySampleFilter() +{ +} + +//---------------------------------------------------------------------------- +void vtkMySampleFilter::PrintSelf(ostream& os, vtkIndent indent) +{ + this->Superclass::PrintSelf(os,indent); +} + diff --git a/src/Plugins/Filter/vtkMySampleFilter.h b/src/Plugins/Filter/vtkMySampleFilter.h new file mode 100644 index 00000000..94af1e24 --- /dev/null +++ b/src/Plugins/Filter/vtkMySampleFilter.h @@ -0,0 +1,22 @@ +#ifndef __vtkMySampleFilter_h +#define __vtkMySampleFilter_h + +#include + +class vtkMySampleFilter : public vtkExtractEdges +{ +public: + static vtkMySampleFilter* New(); + vtkTypeRevisionMacro(vtkMySampleFilter, vtkExtractEdges); + void PrintSelf(ostream& os, vtkIndent indent); + +protected: + vtkMySampleFilter(); + ~vtkMySampleFilter(); + +private: + vtkMySampleFilter(const vtkMySampleFilter&); // Not implemented. + void operator=(const vtkMySampleFilter&); // Not implemented. +}; + +#endif