[vtkusers] Easy Rendering

Cory Quammen cquammen at cs.unc.edu
Wed Nov 18 10:04:53 EST 2009


Check out vtkRenderView and vtkRenderedSurfaceRepresentation. Using
these classes will lead to something not quite as short as your
example, but they at least relieves you of having to set up a mapper
and actor.

Cory

On Wed, Nov 18, 2009 at 9:39 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
> For times when all the user wants to do is display an object, there
> should be an interface like this:
> http://www.rpi.edu/~doriad/VTK_List/EasyRendering/
>
>  EasyRenderer MyEasyRenderer;
>  MyEasyRenderer.AddObject(Sphere1);
>  MyEasyRenderer.AddObject(Sphere2);
>  MyEasyRenderer.Render();
>
> You can see that I've replaced 50 lines of things that most users
> don't care about/are very confusing with something highly intuitive.
>
> What do you think about something like this?
>
> Thanks,
>
> David
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Cory Quammen
Center for Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen



More information about the vtkusers mailing list