Intro to vtk.js
Presented by Forrest Li
Scope of this introduction
What is vtk.js
https://kitware.github.io/vtk-js/
Consuming vtk.js
@kitware/vtk.js
vtk.js
When in doubt and using a bundler, use @kitware/vtk.js
Consuming vtk.js
Hello World, Cone!
Architecture: Rendering
Architecture: Rendering
Architecture: Rendering
RenderWindow
Renderer
Renderer
Architecture: Rendering
RenderWindow
Renderer
Renderer
WebGL / WebGPU
Canvas context and
element
Architecture: Interaction
WebGL / WebGPU
Canvas context and
element
User interaction
vtkRenderWindowInteractor
Architecture: Interaction
Example interaction styles
Architecture: Sources and Filters
Cone data
Transformed data
Original data
Architecture: Sources and Filters
Filter input/output
Filter connections
Architecture: Actors and Mappers
Architecture: Actors and Mappers
Architecture: Properties
Architecture: Data types
Architecture: PolyData
Architecture: PolyData
Try it out with the cone!
Architecture: Other data types
Architecture: Summary
data
Filter
Mapper
Mapper
RenderWindow
Renderer
Actor
Actor
Data Processing
Visualization
Property
Property
Interaction
Coloring Geometry
Coloring Geometry
Coloring Geometry: Point Data
Coloring Geometry: Cell Data
Coloring Geometry: Color Transfer Function
Coloring Geometry: Color Transfer Function
Coloring Geometry: Summary
Extending vtk.js functionality
Example filter class: sandbox link
vtk.js Class Structure
Methods and Constructor
Methods and Constructor
Object Construction
Object Construction: macros
newInstance
Extending existing functionality
macro.obj(publicAPI, model)
vtkConeSource.extend(publicAPI, model)
End of introduction