--- /dev/null
+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)
+
--- /dev/null
+
+# 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
+)
--- /dev/null
+<ServerManagerConfiguration>
+ <ProxyGroup name="filters">
+ <SourceProxy name="SampleFilter" class="vtkMySampleFilter" label="SampleFilter">
+ <Documentation
+ long_help="Long help"
+ short_help="Short help">
+Documentation text
+ </Documentation>
+ <InputProperty
+ name="Input"
+ command="SetInputConnection">
+ <ProxyGroupDomain name="groups">
+ <Group name="sources"/>
+ <Group name="filters"/>
+ </ProxyGroupDomain>
+ <DataTypeDomain name="input_type">
+ <DataType value="vtkDataSet"/>
+ </DataTypeDomain>
+ </InputProperty>
+ </SourceProxy>
+ </ProxyGroup>
+</ServerManagerConfiguration>
+
--- /dev/null
+#include "vtkMySampleFilter.h"
+
+#include <vtkObjectFactory.h>
+
+vtkCxxRevisionMacro(vtkMySampleFilter, "$Revision$");
+vtkStandardNewMacro(vtkMySampleFilter);
+
+//----------------------------------------------------------------------------
+vtkMySampleFilter::vtkMySampleFilter()
+{
+}
+
+//----------------------------------------------------------------------------
+vtkMySampleFilter::~vtkMySampleFilter()
+{
+}
+
+//----------------------------------------------------------------------------
+void vtkMySampleFilter::PrintSelf(ostream& os, vtkIndent indent)
+{
+ this->Superclass::PrintSelf(os,indent);
+}
+
--- /dev/null
+#ifndef __vtkMySampleFilter_h
+#define __vtkMySampleFilter_h
+
+#include <vtkExtractEdges.h>
+
+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