Introdução ao VTK
Introdução ao VTK
Introdução ao VTK
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 (aplicação de um filtro - C ++ )<br />
// creating a sphere object…<br />
vtkSphereSource * sphere = vtkSphereSource::New();<br />
// and a filter to apply to the sphere…<br />
vtkElevationFilter * elevationFilter = vtkElevationFilter::New();<br />
elevationFilter->SetInput((vtkDataSet *) sphere->GetOutput());<br />
elevationFilter->SetLowPoint(0,0,-1);<br />
elevationFilter->SetHighPoint(0,0,1);<br />
// assign the filter to a mapper…<br />
vtkDataSetMapper * mapper = vtkDataSetMapper::New();<br />
mapper->SetInput(elevationFilter->GetOutput());<br />
// create an actor…<br />
vtkActor * actor = vtkActor::New();<br />
Actor->SetMapper(mapper);<br />
J. Tavares / J. Barbosa Visualização Cientifíca - <strong>Introdução</strong> <strong>ao</strong> <strong>VTK</strong> 88