14.04.2013 Views

Introdução ao VTK

Introdução ao VTK

Introdução ao VTK

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

...Exemplo: Criação de uma isosuperfície de uma proteína<br />

//Setup the pipeline<br />

vtkContourFilter *iso =<br />

vtkContourFilter::New();<br />

iso->SetInput(reader->GetOutput());<br />

iso->SetValue(0, 128.0f);<br />

C ++ Tcl<br />

vtkPolyDataMapper *isoMapper =<br />

vtkPolyDataMapper::New();<br />

isoMapper->SetInput(iso->GetOutput());<br />

isoMapper->ScalarVisibilityOff();<br />

# Setup the pipeline<br />

vtkContourFilter iso<br />

iso SetInput [reader GetOutput]<br />

iso SetValue 0 128<br />

vtkPolyDataMapper isoMapper<br />

isoMapper SetInput [iso GetOutput]<br />

isoMapper ScalarVisibilityOff<br />

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

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

Saved successfully!

Ooh no, something went wrong!