Jacques, >> -> flip between the views by just typing a number on the keyboard This should be easy. You need to create a QShortcut that captures come key combination, say Ctrl+Num and then simply changes the active view. Ofcourse the ordering of views is not necessarily obvious but shouldn't be too hard to come up with a convention. Look at Qt/Components/pqActiveView. It's a singleton. Simply call setCurrent() on it to change the active view. Look at pqApplicationCore::loadState to see how to get the list of current views.
The other cases dealing with blocks and views are a bit tricky. Let me get back to you. Utkarsh On Thu, Jan 8, 2009 at 6:51 AM, Jacques Papper <[email protected]> wrote: > Either way. I haven't thought of creating a custom application over ParaView > for the moment. I think I would like most developments to be in ParaView as > a standard. Why? > Jacques > > 2009/1/7 Utkarsh Ayachit <[email protected]> >> >> Jacques, >> >> Is this functionality for a custom application developed over ParaView >> or for a plugin extending standard ParaView? >> >> Utkarsh >> >> On Fri, Dec 19, 2008 at 5:00 AM, Jacques Papper <[email protected]> wrote: >> > Hi All, >> > >> > I have been thinking of a potential improvement for visualization of >> > multipart models in ParaView. >> > I would really like to develop the following functionality : >> > >> > Have support for multiple views where you can : >> > -> Select one or several blocks and move them to another view (maybe >> > with a >> > keyboard shortcut like alt+numberofView) >> > -> flip between the views by just typing a number on the keyboard >> > -> Have a system where blocks can only be present in one view at a time >> > >> > Would the structure of ParaView enable me to do this ? If so - where >> > would I >> > start ? I know that the pipeline and the extract selections offer >> > somewhat a >> > similar capability, but there are still a few things missing ? >> > >> > Jacques >> > >> > -----Original Message----- >> > From: [email protected] >> > [mailto:[email protected]] >> > On Behalf Of Berk Geveci >> > Sent: 18 December 2008 14:23 >> > To: M. Nawijn >> > Cc: [email protected] >> > Subject: Re: [Paraview] How to visualize multipart/multiblock models >> > >> > Hi Marco, >> > >> > Which version of ParaView are you using? In 3.4, you can create a vtm >> > file >> > that points to the individual vtu files. You can then color the blocks >> > separately using the vtkCompositeIndex array (just color by it). You can >> > control the color of each block by editing the color map. >> > Alternatively, you can add a cell-centered, 3 component, unsigned char >> > array >> > (RGB) for each block to the file and then color by that array (make sure >> > to >> > turn off the Map Scalar option). >> > >> > As for turning on/off individual block, I am afraid you have to use the >> > Extract Block filter to achieve that. I hope that we will have that >> > option >> > in the Display page in the future but it is not currently supported. >> > >> > What I described here should also work with Xdmf. >> > >> > -berk >> > >> > On Wed, Dec 17, 2008 at 11:12 AM, M. Nawijn <[email protected]> wrote: >> >> Hello, >> >> >> >> I am trying to find a way to subdivide a structural analysis model in >> >> several parts in such a way that I can post-process the results in >> > Paraview. >> >> The primary objective for me is to be able to hide and show different >> >> parts of the structure. The model itself is not too large (say 50.000 >> >> cells). A bonus for me would be that I can assign a different color >> >> (or different properties in general) to each of the parts. >> >> >> >> I have tried a few things with Paraview: >> >> 1. Create a set of individual .VTU files and combine them in a >> >> .PVD file. This works very nice for building result sequences of the >> >> complete model. >> >> 2. Create a set of individual .VTU files and combine them in a >> >> .PVM file. This works in the sense that I can import a complete model >> >> build up from several pieces, but I cannot assign colors to each of >> >> the parts and are unable to hide and show individual parts (tried by >> >> using the "extract datasets" filter). >> >> 3. Create a XDMF XML file with 2 GRID elements in a single domain. >> >> This again allows me to import the model and show hide individual >> >> parts. I can still assign only 1 color to the complete model. >> >> >> >> Is subdivision into multiple showable/hideable parts, including >> >> individual color assignment, possible with either XDMF or VTK XML >> >> files? >> >> If so, can someone post a minimal example? >> >> >> >> Kind regards, >> >> >> >> Marco >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> ParaView mailing list >> >> [email protected] >> >> http://www.paraview.org/mailman/listinfo/paraview >> >> >> >> >> > _______________________________________________ >> > ParaView mailing list >> > [email protected] >> > http://www.paraview.org/mailman/listinfo/paraview >> > >> > >> > --------------------------- >> > This email contains information that is private and confidential and is >> > intended only for the addressee. If you are not the intended recipient >> > please delete it and notify us immediately by e-mailing the sender. >> > Note: All email sent to or from this address may be accessed by someone >> > other than the recipient, for system management and security reasons. >> > Aircraft Research Association Ltd. Registered in England, Registration >> > No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No >> > GB >> > 196351245 >> > >> > >> > _______________________________________________ >> > ParaView mailing list >> > [email protected] >> > http://www.paraview.org/mailman/listinfo/paraview >> > >> _______________________________________________ >> ParaView mailing list >> [email protected] >> http://www.paraview.org/mailman/listinfo/paraview > > _______________________________________________ ParaView mailing list [email protected] http://www.paraview.org/mailman/listinfo/paraview
