Introdução ao VTK

Introdução ao VTK Introdução ao VTK

paginas.fe.up.pt
from paginas.fe.up.pt More from this publisher
14.04.2013 Views

Pipeline de visualização do VTK Conexões Os elementos do pipeline de visualização são conectados em C ++ com os comandos: Filter->SetInput(Source->GetOutput()); Define a saída de uma fonte como entrada de um filtro. Em tcl: Filter SetInput [Source GetOutput] J. Tavares / J. Barbosa Visualização Cientifíca - Introdução ao VTK 78

Pipeline de visualização do VTK PseudoPrograma Exemplo Main() { create a window; create a renderer; give the renderer to the window; create procedural geometry; create a mapper; give the geometry to the mapper; create an actor; give the mapper to the actor; } give the actor to the renderer; window->render(); Window Renderer Actor Mapper Geometry J. Tavares / J. Barbosa Visualização Cientifíca - Introdução ao VTK 79

Pipeline de visualização do <strong>VTK</strong><br />

PseudoPrograma Exemplo<br />

Main() {<br />

create a window;<br />

create a renderer; give the renderer<br />

to the window;<br />

create procedural geometry;<br />

create a mapper; give the geometry<br />

to the mapper;<br />

create an actor; give the mapper to<br />

the actor;<br />

}<br />

give the actor to the renderer;<br />

window->render();<br />

Window<br />

Renderer<br />

Actor<br />

Mapper<br />

Geometry<br />

J. Tavares / J. Barbosa Visualização Cientifíca - <strong>Introdução</strong> <strong>ao</strong> <strong>VTK</strong> 79

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!