[Paraview] Adding custom chart view

Nehme Bilal nbilal at mirarco.org
Tue Jan 20 13:35:48 EST 2009


Hi Again,

I am able to create the new view, it was some errors in my 
xml file and cmake list.

- How can I send the data from my vtk server class to 
myView class ? is it the same way that we normaly use to 
send data from server to qt custom panel ? is that mean I 
have to fetch all my data to the client side ? if yes, how 
to do that ?

The custom view wiki page does not explain anything about 
the communication between the view and the server.

Thanks,
Nehme


On Tue, 20 Jan 2009 12:09:05 -0500
  "Nehme Bilal" <nbilal at mirarco.org> wrote:
> Thanks Utkarsh and Moreland for your responses.
> 
> I'm creating a totally new view, similar to the 
>histogram view, but I want to use a different way to draw 
>the histogram or the curve.
> 1- Should I create a custom diplay panel for my view or 
>it's optional ? If it's optional, should I specify the 
>display proxy information in my xml file ?
> 
> I did a first try and I got this error:
> ERROR: In 
>..\..\..\trunk\Servers\ServerManager\vtkSMProxyManager.cxx, 
>line 330
> vtkSMProxyManager (07F8C570): No proxy that matches: 
>group=views and proxy=pqPlotPropertiesOverTimeView were 
>found.
> 
> Do I have to add my view name somewhere in Paraview core 
>?
> 
> here are my files:
> https://mail.mirarco.org/~nbilal/PlotPropertiesOverTime.zip
> 
> Thank you,
> 
> Nehme
> 
> 
> 
> On Tue, 13 Jan 2009 11:28:58 -0500
>  "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
>> Are you creating new new view for your filter, or do you 
>>want to
>> simply show the output of the new filter in the current 
>>"BarChart"
>> view used by the Histogram filter?
>> 
>> If you are creating a totally new view, simply start by 
>>subclassing pqView.
>> In the filter's XML you can use a hint as follows to 
>>indicate to
>> ParaView which view to create by default for the filter.
>> 
>>    <Hints>
>>        <!-- View can be used to specify the preferred 
>>view for the proxy -->
>>        <View type="MyViewsXMLName" />
>>     </Hints>
>> 
>> 
>> On Tue, Jan 13, 2009 at 10:16 AM, Nehme Bilal 
>><nbilal at mirarco.org> wrote:
>>> Hello,
>>>
>>> I'm trying yo create a filter to plot a histogram or a 
>>>curve. The output of
>>> this filter will look like the one used for histogram 
>>>filter.
>>> I read the documentation on the wiki about how to create 
>>>a custom view, and
>>> I think this is my start point. Is that true ? if yes, 
>>>from witch class
>>> should myView inherits from ? pqGenericViewModule ? 
>>>pqChartLayer ? pqView ?
>>> pqxxx ?
>>>
>>> How my pqMyView class will be linked to my vtkMyFilter 
>>>Class ? how to pass
>>> my vtkDataArrays from my vtkMyFilter class to my 
>>>pqMyView class ?
>>>
>>> Thank you,
>>>
>>> Nehme
>>> _______________________________________________
>>> ParaView mailing list
>>> ParaView at paraview.org
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
> 



More information about the ParaView mailing list