Class for drawing 2D primitives to a graphical context.
Class for drawing 3D primitives to a graphical context.
provides a vtkProp derived object.
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this actor.
static vtkContextActor * New()
vtkNew< vtkContext2D > Context
int RenderOverlay(vtkViewport *viewport) override
We only render in the overlay for the context scene.
vtkGetNewMacro(Context, vtkContext2D)
Get the vtkContext2D for the actor.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextScene * GetScene()
Get the chart object for the actor.
vtkContextDevice2D * ForceDevice
virtual void Initialize(vtkViewport *viewport)
Initialize the actor - right now we just decide which device to initialize.
void SetScene(vtkContextScene *scene)
Set the scene for the actor.
void SetForceDevice(vtkContextDevice2D *dev)
Force rendering to a specific device.
vtkNew< vtkContext3D > Context3D
vtkSmartPointer< vtkContextScene > Scene
~vtkContextActor() override
Abstract class for drawing 2D primitives.
Provides a 2D scene for vtkContextItem objects.