[Paraview-developers] Pipelinesource dataset type

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Feb 21 10:37:13 EST 2012


I believe you're missing a call to this->origSrc->updatePipeline()
before calling createDataRepresentation(...).

Utkarsh

On Mon, Feb 20, 2012 at 10:46 AM, Reuter, Michael A. <reuterma at ornl.gov> wrote:
> Hi Utkarsh,
>
>        I'm attaching the source code for the plugin. Our call to create the data
> representation looks like:
>
> <code>
>  // Show the data
> pqDataRepresentation *drep =
> builder->createDataRepresentation(this->origSrc->getOutputPort(0),
> this->view);
>
> </code>
>
> Where this->origSrc is set via the active source after the load call to
> the plugin and this->view is a pointer to our pqRenderView area in our
> application.
>
> Let me know if you need to see anything else.
>
> Thanks,
> M
>
>
>
>
> On 2/20/12 9:54 AM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
>
>>That should have worked, nothing has changed in that regard, as far as
>>I remember. Can you  share the plugin code or any steps to reproduce?
>>
>>Utkarsh
>>
>>On Mon, Feb 20, 2012 at 9:37 AM, Reuter, Michael A. <reuterma at ornl.gov>
>>wrote:
>>> Hi,
>>>
>>>
>>>
>>>                 I have a reader plugin that in 3.10 correctly reports
>>>the
>>> dataset type (VTK_UNSTRUCTURED_GRID) in a call to
>>> pqObjectBuilder::createDataRepresentation via
>>> vtkPVDataInformation::GetDataSetType during the pqView::canDisplay
>>>check,
>>> but in 3.12 that same function call returns ­1. This causes the returned
>>> pqDataRepresentation to be NULL. Is there something special that needs
>>>to be
>>> done by the plugin, either by C++ or XML, to register the correct
>>>dataset
>>> type in 3.12? I tried searching the mail archives, but I guess my search
>>> terms weren't good enough to find anything, so I apologize if I missed
>>> something obvious.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> M
>>>
>>>
>>>
>>> Dr. Michael Reuter
>>>
>>> Data Analysis and Visualization Group
>>>
>>> Neutron Data Analysis and Visualization Division
>>>
>>> Oak Ridge National Laboratory
>>>
>>>
>>>
>>> Office: 1-865-241-7216
>>>
>>> Fax: 1-865-574-6080
>>>
>>> Email: reuterma at ornl.gov
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Paraview-developers mailing list
>>> Paraview-developers at paraview.org
>>> http://public.kitware.com/mailman/listinfo/paraview-developers
>>>
>


More information about the Paraview-developers mailing list