[Paraview] List to select zones in object panel for a custom reader
Paul Edwards
paul.m.edwards at gmail.com
Wed Sep 1 11:19:35 EDT 2010
Ah, it seems the array_list is exactly what I need.
Is there anywhere with documentation for the XML? I've needed to look
through the source code of other filters to realise that using:
<ArraySelectionInformationHelper attribute_name="*NAME*"/>
uses the following methods in the class:
int GetNumberOf*NAME*Arrays()
const char* Get*NAME*ArrayName(int)
int Get*NAME*ArrayStatus(const char*)
void Set*NAME*ArrayStatus(const char*, int)
I've also noticed the SIL stuff too - is there any documentation on that as
it would be quite nice to select by properties for CFD solutions, e.g.
surface types, zone number, rotational speed, etc.
Thanks,
Paul
On 1 September 2010 13:26, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>wrote:
> Paul,
>
> Why is this any different from array-selection already provided by many
> readers?
>
> Utkarsh
>
> On Wed, Sep 1, 2010 at 8:21 AM, Paul Edwards <paul.m.edwards at gmail.com>
> wrote:
> > Hi,
> > I have a reader and would like to have a list box in the object panel to
> > select which zones to read in from the file. The number of zones can
> change
> > depending on the file. Does anyone have any suggestions for how to do
> this?
> > My ideas were:
> >
> > add a new vtkSM*Domain
> >
> > I don't think this is possible in a plugin because pqSMAdaptor needs to
> be
> > updated for any new class (is that right?)
> >
> > create a custom panel and have one information only property to get the
> > number of zones and another property to set the zones
> >
> > would the set property need to be a string that I put comma-separated
> zone
> > indexes or is there a way to change the number of elements in an integer
> > vector?
> >
> > Thanks in advance,
> > Paul
> > _______________________________________________
> > 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
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100901/42b91d58/attachment-0001.htm>
More information about the ParaView
mailing list