[Paraview] Troubles with exporting selection labels from current ParaView render view

Nenad Vujicic nenadus at gmail.com
Wed May 20 11:18:17 EDT 2015


Utkarsh,

You are right, view is really NULL!! Ok, when I catch signals fired
I'll wait appropriate view is created and then they creating
representation.

Thanks!

On Wed, May 20, 2015 at 5:12 PM, Utkarsh Ayachit
<utkarsh.ayachit at kitware.com> wrote:
> Step into "createDataRepresentation" in a debugger. You'll see one of
> the arguments is NULL. I suspect its the view. The view isn't setup
> yet. Try making the slot connection to a queued connection that way
> ParaView gets the change to setup the representation object.
>
> On Wed, May 20, 2015 at 11:07 AM, Nenad Vujicic <nenadus at gmail.com> wrote:
>> Utkarsh,
>>
>> Thank you very much for help, but, it still doesn't work. At Ln 118 it
>> fails and reports in Output Window 'Missing required attribute.' and
>> returns NULL.
>>
>> Thanks for any help!
>>
>> Nenad.
>>
>> On Wed, May 20, 2015 at 4:10 PM, Utkarsh Ayachit
>> <utkarsh.ayachit at kitware.com> wrote:
>>>> I want to say DataRepresentationCreated is never called! When I create
>>>> instance of my pipeline source with this source code, I get only 3
>>>> messages: "Source Created", and 2 times "Representation Added" after
>>>> pushing Apply button.
>>>
>>> Ah ok. That's because pqObjectBuilder no longer creates the standard
>>> representations for ParaView. A better signal to observe is
>>> pqServerManagerModel::representationAdded(). You're already observer
>>> sourceAdded from the ServerManagerModel. You'll need to qobject_cast<>
>>> to pqDataRepresentation* in your slot, for same effect as before.
>>>
>>> Utkarsh


More information about the ParaView mailing list