<span style="font-family: Arial; font-size: 13px;"><div>Unfortunately not...</div><div><font color="#000000"><span style="color: rgb(0, 0, 0);"></span></font> </div><div><font color="#000000">
</font></div><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">int vtkTestSource::RequestInformation(vtkInformation *reqInfo, vtkInformationVector **inVector, vtkInformationVector *outVector)<br>{<br> if(this->vtkPolyDataAlgorithm::RequestInformation(reqInfo,inVector,outVector))<br>  return 0;</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    vtkInformation *info = outVector->GetInformationObject(0);</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    double tRange[2] = {stepValues[0], stepValues[steps-1]};<br>    info->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(), tRange, 2);<br>    info->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(), stepValues, steps);<br>    info->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(), -1);</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    return 1;<br>}</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;"> </pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">int vtkTestSource::RequestData(vtkInformation *reqInfo, vtkInformationVector **inVector, vtkInformationVector *outVector)<br>{<br>    vtkInformation *outInfo = outVector->GetInformationObject(0);<br>    vtkPolyData *output = vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    if (!output)<br>        return 0;</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    double time = 0.0;<br>    if (outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))<br>        time = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    output->Initialize();<br>    output->GetInformation()->Set(vtkDataObject::DATA_TIME_STEP(), time);<br>    this->setPolyData(time, output);</pre><pre style="margin: 0px; text-indent: 0px; -qt-block-indent: 0; -qt-paragraph-type: empty;">    return 1;<br>}<br></pre><div>Any other ideas?</div><div>Chris<br><br>On Freitag, 11. April 2014 at 3:09 PM, "Utkarsh Ayachit" <utkarsh.ayachit@kitware.com> wrote:</div><blockquote style="padding-left: 10px; margin-left: 10px; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">Try adding implementations for RequestInformation and RequestData in<br>the testplugin.cpp file. Does that help?<br><br>On Fri, Apr 11, 2014 at 7:49 AM,  <moder22@hush.com> wrote:<br>> Hello,<br>> I have tried to write my own source for ParaView using an plug-in. The code<br>> seems to be correct, the Compile works without errors, but the Linker fails:<br>> "TestSourceInit.obj : error LNK2019: unresolved external symbol "void<br>> __cdecl testplugin_Init(class vtkClientServerInterpreter *)"<br>> (?testplugin_Init@@YAXPAVvtkClientServerInterpreter@@@Z) referenced in<br>> function _TestSource_Initialize"<br>><br>> testplugin.h:<br>><br>> #include ...<br>> class VTK_EXPORT vtkTestSource : public vtkPolyDataAlgorithm<br>> {<br>> public:<br>>     vtkTypeRevisionMacro(vtkTestSource, vtkPolyDataAlgorithm);<br>>     static vtkTestSource* New();<br>>     void PrintSelf(ostream& os, vtkIndent indent);<br>><br>> protected:<br>>     vtkTestSource();<br>>     ~vtkTestSource();<br>>     int RequestInformation(vtkInformation *reqInfo, vtkInformationVector<br>> **inVector, vtkInformationVector *outVector);<br>>     int RequestData (vtkInformation *reqInfo, vtkInformationVector<br>> **inVector, vtkInformationVector *outVector);<br>> private:<br>>     vtkTestSource(const vtkTestSource&);  // Not implemented.<br>>     void operator=(const vtkTestSource&);  // Not implemented.<br>> };<br>><br>><br>> testplugin.cpp:<br>><br>> #include "testplugin.h"<br>> #include <vtkObjectFactory.h><br>> #include <vtkNew.h><br>><br>> vtkStandardNewMacro(vtkTestSource);<br>> vtkCxxRevisionMacro(vtkTestSource, "$Revision$");<br>><br>> vtkTestSource::vtkTestSource() { ... }<br>> vtkTestSource::~vtkTestSource() { ... }<br>> void vtkTestSource::PrintSelf(ostream& os, vtkIndent indent)<br>> {<br>>     this->Superclass::PrintSelf(os,indent);<br>> }<br>><br>> ...<br>><br>> TestPlugin.xml:<br>><br>>  <ServerManagerConfiguration><br>>    <ProxyGroup name="sources"><br>>   <SourceProxy name="TestSource" class="vtkTestSource"<br>>       label="Test"><br>> ...<br>><br>>     <IntVectorProperty<br>>    name="OutputDataSetType"<br>>    command="SetOutputDataSetType"<br>>    number_of_elements="1"<br>>    default_values="0"><br>>    <!-- value of 0 means vtkPolyData --><br>>     </IntVectorProperty><br>>   </SourceProxy><br>>  </ProxyGroup><br>> </ServerManagerConfiguration><br>><br>> CMakeLists.txt:<br>><br>> CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)<br>> IF(NOT ParaView_BINARY_DIR)<br>>   FIND_PACKAGE(ParaView REQUIRED)<br>>   INCLUDE(${PARAVIEW_USE_FILE})<br>> ENDIF(NOT ParaView_BINARY_DIR)<br>><br>> INCLUDE(ParaViewPlugins)<br>><br>> ADD_PARAVIEW_PLUGIN(TestSource "1.0"<br>>   SERVER_MANAGER_XML TestPlugin.xml<br>>   SERVER_MANAGER_SOURCES testplugin.cpp<br>>   REQUIRED_ON_SERVER)<br>><br>> I seek for hours, but I can not find my own mistake... Where is the error?<br>> Chris<br>><br>><br>><br>> _______________________________________________<br>> Paraview-developers mailing list<br>> Paraview-developers@paraview.org<br>> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>></blockquote></span>