I'm currently building paraview from sources...
I had errors caused by Qt.
"fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'" in QtGUI4.dll and in QtCore4.dll My computer runs Windows 7 64 bits. I have downloaded and installed (not built) Qt4.7.3 Vs2008.
My compiler is VS2010 64 bits edition.
Do you think it is a building error from Qt or from the compiler version?

I have created a subclass of vtkPVClipDataSet as you adviced me.
If I am right, Data clipping using a box is performed by moving a BoxWidget, getting the vtkPlanes and providing them to vtkPVClipDataSet as implicitFunction. Can you confirm me? If yes, it is not exactly what I was looking for since I need to access to the box widget to retrieve the polydata. In vtkPVClipDataSet i on ly have acces to the implicit function, thus the vtkPlanes. I guess that I need to access to the point in the code where we get the BoxWidget just before passing the vtkPlanes to the clipper. Can you show me where it is (sorry, it is the first time i open the paraview source code, I need help!) ?

Laurent.



Le 7/06/2011 15:05, Utkarsh Ayachit a écrit :
Once you make the VTK filter have two output ports, paraview will
automatically detect it and you will be able to see both output ports
in the pipeline browser.

On Tue, Jun 7, 2011 at 9:03 AM, Laurent Paul<l.p...@uclouvain.be>  wrote:
Hi Utkarsh,

Thanks for your reply!
I'm used to subclass ITK and VTK classes, but I install Paraview using the
binaries.... not yet from the sources.
If I understand you, this could be very easily done subclassing the
PVClipDataSet. What about displaying or saving the second output?
How can I get both output ports?
Thanks again,
Laurent.



Le 7/06/2011 14:59, Utkarsh Ayachit a écrit :
What I'd do is subclass vtkPVClipDataset (the filter paraview uses for
Clip). Make the subclass a two output-port filter (by calling
vtkAlgorithm::SetNumberOfOutputPorts(2)) and producing the polydata
matching the implicit function specified as the clipping function on
the second output port. Now you can save/visualization both the
clipped dataset as well as the clipping box. Are you familiar with
writing vtkAlgorithm subclasses?

Utkarsh

On Tue, Jun 7, 2011 at 8:34 AM, Laurent Paul<l.p...@uclouvain.be>    wrote:
Dear Users,

I usually clip meshes using the clip filter and a box, or a plane. I
would
be interested in exporting the clipping box data, not the clippedData,
but
the box itself. I also would like to get the thickness of the box, eg.
distance between two handles.
I know that VTK allows to do that (using the method GetPolyData), and
that
it doesn't work properly (you have to triangulate the data first). There
is
no option in paraview to retrieve the box.

My solution is to create a filter that do the same job as the clipper
with
the additional ability to export the data and compute the distance. But
I'm
not sure to be able to handle a widget inside my plugin.
Since I've never wrote a plugin for paraview, I prefer ask before!

So, is it possible?
Is there another (simpler) way around? Add a check box to the
"properties"
of the clipper to GetPolyData ?
Thx,
Laurent.

--
Please consider environmental impact before printing documents
_______________________________________________
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


_______________________________________________
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

Reply via email to