[Paraview] Chart View Question

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Oct 10 14:20:49 EDT 2011


Brian,

The Extension mechanism for adding representation types in only
supported by the SurfaceRepresentation and other representations in
the 3D view. We haven't really provided any support for adding
different representation types if Chart views. For your use-case, I
think the easier option would be to create a filter that extracts the
block of interest from the multiblock dataset that contains the
vtkTable and then directly show that in the chart view. The user will
have to explicitly apply this filter. Alternatively, your source can
have two output port, one producing the data to be shown in the 3D
view and the other a vtkTable that can be directly shown in the chart
views.

Does that help?
Utkarsh

On Mon, Oct 3, 2011 at 9:42 AM, Panneton, Brian C USA CTR (US)
<brian.c.panneton.ctr at mail.mil> wrote:
>>> 2) Have 1 output with a vtktable as part of the multiblockdataset. Add
>>> another representation to view just the vtktable. This way I can plot/graph
>>> the vtktable and add in other data if necessary. The issue I am having with
>>> this option is setting up the Extension and RepresentationType in the xml.
>>> Would I need to create a custom view?
>
>>I don't think I understand what you're trying to do here. Can you elaborate?
>
> This should give a better idea:
> I would end up having two representations for the plugin: 1) inherits from vtkGeometryRepresentation and 2) inherits from vtkXYChartRepresentation. My reader's output would be in the form of a vtkMultiBlockDataSet which would hold information for both representations (polydatas for representation 1 and vtktables for representation 2) The same vtkMultiBlockDataSet would be passed to each representation where the representation would control what would be sent to the view. For 1, the tables would be ignored and for 2, the polydatas would be ignored.
>
> The problem I have run into:
> I'm not sure how I can set up the XML so that I can select the Representation in the GUI. (Or if I should even be trying to do this)
>
> [code]
>  <ProxyGroup name="representations">
>        <!-- 3d representation -->
>        <RepresentationProxy name="MyFirstRepresentation"
>            class="vtkMyFirstRepresentation"
>            processes="client|renderserver|dataserver"
>            base_proxygroup="representations"
>            base_proxyname="SurfaceRepresentation">
>        </RepresentationProxy>
>        <Extension name="GeometryRepresentation">
>            <RepresentationType subproxy="MyFirstRepresentation"
>                text="My Rep" subtype="Surface" />
>            <SubProxy>
>                <Proxy name="MyFirstRepresentation"
>                    proxygroup="representations"
>                    proxyname="MyFirstRepresentation">
>                </Proxy>
>                <ShareProperties subproxy="SurfaceRepresentation">
>                    <Exception name="Input" />
>                    <Exception name="Visibility" />
>                    <Exception name="Representation" />
>                </ShareProperties>
>                <ExposedProperties>
>                </ExposedProperties>
>            </SubProxy>
>        </Extension>
>
>        <!-- Statistical Representation -->
>        <RepresentationProxy name="MyStatisticRepresentation"
>            class="vtkMyStatisticRepresentation"
>            processes="client|renderserver|dataserver"
>            base_proxygroup="representations"
>            base_proxyname="XYChartRepresentation">
>        </RepresentationProxy>
>
>        <Extension name="????">
>            <RepresentationType subproxy="MyStatisticRepresentation"
>                text="My Stat Rep" subtype="?????" />
>             ...
>        </Extension>
>    </ProxyGroup>
> [/code]
>
> If there are any other ways to do this, I would be interested in looking into them.
>
> Thanks,
> Brian Panneton
> ________________________________________
> From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] on behalf of Utkarsh Ayachit [utkarsh.ayachit at kitware.com]
> Sent: Friday, September 30, 2011 7:27 PM
> To: Brian Panneton
> Cc: ParaView
> Subject: Re: [Paraview] Chart View Question
>
> Brian,
>
>> 1) Have multiple outputs for the reader (0 -> multiblockdataset, 1 ->
>> vtktable). My problem with this is that I would have to open the vtktable
>> with the spreadsheet before I can plot/graph it. I would prefer that it just
>> opened the plot.
>
> Although ParaView does support defining default view type in XML,
> currently it's only support for filters with 1 output port. Feel free
> to add a feature request to the bug tracker and we can try to address
> it soon.
>
>> 2) Have 1 output with a vtktable as part of the multiblockdataset. Add
>> another representation to view just the vtktable. This way I can plot/graph
>> the vtktable and add in other data if necessary. The issue I am having with
>> this option is setting up the Extension and RepresentationType in the xml.
>> Would I need to create a custom view?
>
> I don't think I understand what you're trying to do here. Can you elaborate?
>
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list