@acransac/vtk.js
Version:
Visualization Toolkit for the Web
45 lines (29 loc) • 1.25 kB
Markdown
## Introduction
vtkViewport represents part or all of a RenderWindow. It holds a
colleciton of props that will be rendered into the area it represents.
This class also contains methods to convert between coordinate systems
commonly used in rendering.
## See Also
[vtkActor](./Rendering_Core_Actor.html)
[vtkCoordinate](./Rendering_Core_Coordinate.html)
[vtkProp](./Rendering_Core_Prop.html)
[vtkRenderer](./Rendering_Core_Renderer.html)
[vtkRenderWindow](./Rendering_Core_RenderWindow.html)
[vtkVolume](./Rendering_Core_Volume.html)
### addViewProp(prop)
Add a prop to the list of props. Does nothing if the prop is
already present. Prop is the superclass of all actors, volumes,
2D actors, composite props etc.
### getViewProps() : []
Return any props in this viewport.
### hasViewProp(prop) : Boolean
Query if a prop is in the list of props.
### removeViewProp(prop)
Remove a prop from the list of props. Does nothing if the prop
is not already present.
### removeAllViewProps()
Remove all props from the list of props.
### (add/remove/get)Actor2D(actor2d)
Add/Remove different types of props to the renderer.
These methods are all synonyms to AddViewProp and RemoveViewProp.
They are here for convenience and backwards compatibility.