[Paraview] vtkSmartPointers

Jordi Campos i Miralles jcampos at maia.ub.es
Tue Jun 19 08:20:15 EDT 2007


Ok! thanks! I updated the slides:
http://namaste.maia.ub.es/public/vtk-volume-rendering-tutorial.pdf

BTW, let me check:
     1. I "grep" VTK source files, and I only found vtkSmartPointers in
        a few files, why?
     2. Are there some cases where it is recommended not to use them?
             1. I used them for "temporal" routine vars, but not to
                return as pointers... is this correct?

Regards,

jor;)i

El dt 19 de 06 del 2007 a les 12:38 +1000, en/na Andrew Maclean va
escriure:
> In the slide Using VTL from C++ you may want to consider mentioning
> vtkSmartPointer. This handles reference counting automatically so
> there is no need to remember the Delete() function.
>  
> e.g
>    vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New();
>   //...
>   //use it as normal.
>   // No need to do: actor->Delete();
>   
> Andrew
> 
>  
> On 6/18/07, Jordi Campos i Miralles <jcampos at maia.ub.es> wrote: 
>         OK, thanks!
>         
>         I've already updated the slide according to your
>         explanation ;) It's
>         worth to know somebody from VTK have a look to the material
>         before 
>         presenting it to my research group. Thanks.
>         
>         
>         Now I wait someone else tell me something about KWWidgets and
>         Paraview... to know in which way should I continue the
>         presentation.
>         
>         
>         jor;)i
>         
>         
>         El dv 15 de 06 del 2007 a les 09:30 -0600, en/na Wylie, Brian
>         va
>         escriure:
>         > I'll let someone else answer the question about KWWidgets,
>         but I do want to follow up on one of the 'Check This!'
>         sections in your slides... :) 
>         >
>         >
>         > You wanted a check on the following statement...
>         >
>         > "Data does not "flow" along the pipeline. Each fillter has
>         its
>         > own copy of data, created from its input data. CHECK THIS!" 
>         >
>         > This statement (as you indicated) needs further
>         qualification.
>         >
>         > Most filters actually make a 'shallow copy' of the data and
>         only 'deep copy' parts of the dataset that are modified or
>         added. So if I have 3 filters working on a dataset, the data
>         really does 'flow' from one filter to the other without being
>         copied (most of the time). 
>         >
>         > Hope that's helpful. :)
>         >
>         >   Brian Wylie - Org 1424
>         >   Sandia National Laboratories
>         >   MS 0822 - Building 880/A1-J
>         >   (505)844-2238 FAX(505)845-0833
>         >        _______ __ 
>         >       /_  __(_) /_____ _____
>         >        / / / / __/ __ `/ __ \
>         >       / / / / /_/ /_/ / / / /
>         >      /_/ /_/\__/\__,_/_/ /_/
>         >             VTK Informatics Toolkit
>         >
>         >
>         > > -----Original Message----- 
>         > > From: paraview-bounces+bnwylie=sandia.gov at paraview.org
>         > > [mailto:paraview-bounces+bnwylie=sandia.gov at paraview.org]
>         On
>         > > Behalf Of Jordi Campos i Miralles
>         > > Sent: Friday, June 15, 2007 9:18 AM
>         > > To: ParaView
>         > > Subject: [Paraview] It is worth to learn KWWidgets?
>         > >
>         > > Hi, 
>         > >
>         > > I'm preparing a presentation for my research group
>         partners
>         > > about continuing our research developing on Paraview
>         instead
>         > > of the current platform.
>         > >
>         > > I reviewed basic VTK: 
>         > >
>         http://namaste.maia.ub.es/public/vtk-volume-rendering-tutorial.pdf
>         > >
>         > >
>         > > And now, I would like to talk about the GUI before going
>         "inside" 
>         > > Paraview. But I wonder if it is worth to review KWWidgets.
>         It
>         > > seems ParaViewIII is not using them, is it?
>         > >
>         > > Are the existing KWWidgets widgets going to be translated
>         > > into Qt? Is it possible to combine them, so use them in
>         PVIII? 
>         > >
>         > > What is more, is it worth to learn Qt? I see all the
>         examples
>         > > under ParaView3/Examples/Plugins depending on interface
>         XML
>         > > descriptions.
>         > >
>         > >
>         > > I could only find an old message in the KWWidgets list
>         asking 
>         > > the same, but with no answer:
>         > >
>         > >
>         http://public.kitware.com/pipermail/kwwidgets/2006-October/000264.html
>         > >
>         > >
>         > > Can somebody give me an advice about this topic?
>         > >
>         > > Thanks in advance.
>         > >
>         > >
>         > > jor;)i
>         > >
>         > >
>         > > 
>         > > --
>         > > Jordi Campos i Miralles
>         > > Departament de Matemątica Aplicada i Anąlisi, MAiA
>         Facultat
>         > > de Matemątiques, Universitat de Barcelona Gran Via de les
>         > > Corts Catalanes, 585 
>         > > 08007 Barcelona
>         > > Telf : +34 93 403 93 72
>         > >
>         > > _______________________________________________
>         > > ParaView mailing list
>         > > ParaView at paraview.org
>         > > http://www.paraview.org/mailman/listinfo/paraview
>         > >
>         > >
>         >
>         --
>         Jordi Campos i Miralles
>         Departament de Matemątica Aplicada i Anąlisi, MAiA
>         Facultat de Matemątiques, Universitat de Barcelona
>         Gran Via de les Corts Catalanes, 585
>         08007 Barcelona
>         Telf : +34 93 403 93 72
>         
>         _______________________________________________ 
>         ParaView mailing list
>         ParaView at paraview.org
>         http://www.paraview.org/mailman/listinfo/paraview
> 
> 
> 
> -- 
> 
> ___________________________________________
> Andrew J. P. Maclean
> Centre for Autonomous Systems
> The Rose Street Building J04
> The University of Sydney  2006  NSW
> AUSTRALIA 
> Ph: +61 2 9351 3283
> Fax: +61 2 9351 7474
> URL: http://www.cas.edu.au/
> ___________________________________________
-- 
Jordi Campos i Miralles
Departament de Matemàtica Aplicada i Anàlisi, MAiA
Facultat de Matemàtiques, Universitat de Barcelona
Gran Via de les Corts Catalanes, 585
08007 Barcelona
Telf : +34 93 403 93 72 



More information about the ParaView mailing list