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.ayac...@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 <nena...@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.ayac...@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 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview