[Paraview] Applying filters in sample app

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Mar 25 19:54:36 EDT 2011


Guys,

Attached is a patch that demonstrates the use of 3D widgets for
manipulating clip plane.

Utkarsh

On Fri, Mar 25, 2011 at 8:06 AM,  <owen.arnold at stfc.ac.uk> wrote:
> Hi Utkarsh,
>
> I'd also like to see a coded example of this in action. If you have something, could you post it to the list.
>
> Many thanks,
>
> Owen.
>
> -----Original Message-----
> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Reuter, Michael A.
> Sent: 21 March 2011 14:08
> To: Utkarsh Ayachit
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] Applying filters in sample app
>
> Hi Utkarsh,
>
>  Thanks for the response. It would be greatly appreciated if you have the
> time to provide some code for setting up the implicit plane. I have
> continued to try and diagnose things myself without much luck.
>
> Thanks,
> M
>
> On 3/18/11 10:49 AM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com> wrote:
>
>
>>Michael,
>>
>>The interactive-widgets such as implicit plane widget are created by
>>the "Properties" panel to help user change some of the properties for
>>the filter. So yes, if your example, you will not see the implicit
>>plane widget at all. You'll have to manually create it and set it up
>>to update the properties of the "clip" filter as the user moves it. It
>>can be a bit tricky. But maybe I can hack up some code in your example
>>to show the implicit plane if you'd like.
>>
>>Utkarsh
>>
>>On Wed, Mar 16, 2011 at 2:01 PM, Reuter, Michael A. <reuterma at ornl.gov>
>>wrote:
>>> Hi Utkarsh,
>>>
>>>  Thanks, that did the trick. I'm also trying to get an
>>>ImplicitPlaneWidget
>>> (IPW) up at the same time. Is the default behavior for the IPW to be
>>> invisible?
>>>
>>> M
>>>
>>>
>>> On 3/15/11 3:10 PM, "Utkarsh Ayachit" <utkarsh.ayachit at kitware.com>
>>>wrote:
>>>
>>>>You're simply missing a line to hide the previous representation. I
>>>>just added in mpMainWindow::onCutButtonClicked before the render()
>>>>call and the slice shows up.
>>>>
>>>>   this->ActiveSourceRepr->setVisible(false);
>>>>
>>>>Utkarsh
>>>>
>>>>On Tue, Mar 15, 2011 at 12:17 PM, Reuter, Michael A. <reuterma at ornl.gov>
>>>>wrote:
>>>>> Hi,
>>>>>
>>>>> I'm working on a sample application and I've been trying to make a cut
>>>>>appear on the data that is being viewed. I've followed the methodology
>>>>>used in the QuickContour application in my application, but the cut
>>>>>never appears on the data view. I'm using the data file associated with
>>>>>the QuickContour application to test my application. I'm guessing I'm
>>>>>just not understanding the required setup logic for behaviors and
>>>>>reactions in order to get the cut to apply. If anyone can see where I'm
>>>>>being dumb, my code is located here:
>>>>>https://github.com/mareuter/PVMockupGui. The cut is being applied in
>>>>>the
>>>>>mpMainWindow class in mpMainWindow::onCutButtonClicked. I am currently
>>>>>compiling against the ParaView git master on Ubuntu.
>>>>>
>>>>> Thanks,
>>>>> M
>>>>>
>>>>>
>>>>> Dr. Michael Reuter
>>>>>
>>>>> Scientific Data Analysis Group
>>>>>
>>>>> Neutron Scattering Science Division
>>>>>
>>>>> Oak Ridge National Laboratory
>>>>>
>>>>>
>>>>> Office: 1-865-241-7216
>>>>>
>>>>> Fax: 1-865-574-6080
>>>>>
>>>>> Email: reuterma at ornl.gov
>>>>>
>>>>> _______________________________________________
>>>>> 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
> --
> Scanned by iCritical.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solution.patch
Type: application/octet-stream
Size: 3555 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110325/0f1baaea/attachment.obj>


More information about the ParaView mailing list