Oh no, don't need to add a new representation. You'll create a new autostart plugin (http://www.paraview.org/Wiki/Plugin_HowTo#Autostart_Plugins). In this plugin you'll have to create a new subclass for pqDisplayPolicy and then set it on the application core as follows:
pqApplicationCore::instance()->setDisplayPolicy(mypolicy); In your pqDisplayPolicy subclass you can override the behaviour for creating representations when a new source is created. Utkarsh On Fri, Feb 6, 2009 at 7:52 AM, Bryn Lloyd <[email protected]> wrote: > Hi Utkarsh > > Thanks for the answer. I had a look at the wikipage (Adding a new > Representation), but it seemed too complicated for a small issue like this. > > -Bryn > > > > > > > > > > > > Utkarsh Ayachit wrote: >> >> Bryn, >> >> It's not possible to change the default representation. However, it's >> possible by wiring a plugin to do the same, would that help? >> >> Utkarsh >> >> >> On Fri, Feb 6, 2009 at 5:08 AM, Bryn Lloyd <[email protected]> >> wrote: >>> >>> Hi, >>> >>> >>> Is it possible to change the default representation of a given (existing) >>> data type? >>> >>> I would like to set the default representation of vtkImageData to slice. >>> >>> Thanks >>> Bryn >>> >>> >>> >>> _______________________________________________ >>> ParaView mailing list >>> [email protected] >>> http://www.paraview.org/mailman/listinfo/paraview >>> >> > > > -- > ------------------------------------------------- > Bryn Lloyd > Computer Vision Laboratory > ETH Zürich, Sternwartstrasse 7 > CH - 8092 Zürich, Switzerland > Tel: +41 44 63 26668 > Fax: +41 44 63 21199 > ------------------------------------------------- > _______________________________________________ ParaView mailing list [email protected] http://www.paraview.org/mailman/listinfo/paraview
