Re: [Paraview] Adding custom chart view

2009-01-20 Thread Nehme Bilal

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.ayac...@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 
nbi...@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@paraview.org
http://www.paraview.org/mailman/listinfo/paraview



___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Adding custom chart view

2009-01-20 Thread Nehme Bilal


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 nbi...@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.ayac...@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 
nbi...@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@paraview.org
http://www.paraview.org/mailman/listinfo/paraview





___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Adding custom chart view

2009-01-13 Thread Nehme Bilal

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@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Adding custom chart view

2009-01-13 Thread Utkarsh Ayachit
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 nbi...@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@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Adding custom chart view

2009-01-13 Thread Moreland, Kenneth
Nehme,

It sounds like you do not need to create a custom view.  You should be able to 
create a filter that generates the data and then use the existing bar chart and 
x-y plot views.  You can specify a Hint in the server manager xml for a 
filter to tell it which view to go to.  See the implementation of 
vtkPExtractHistogram and the corresponding ExtractHistogram entry in 
filters.xml for more details.

-Ken


On 1/13/09 8:16 AM, Nehme Bilal nbi...@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@paraview.org
http://www.paraview.org/mailman/listinfo/paraview




     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview