base class for items that are part of a vtkContextScene.
Class for drawing 2D primitives to a graphical context.
all children of this item are clipped by the specified area.
static vtkContextClip * New()
Creates a vtkContextClip object.
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever the item needs to be drawn.
virtual void GetRect(float rect[4])
Get the clipping rectangle parameters in pixel coordinates:
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetClip(float x, float y, float width, float height)
Set the origin, width and height of the clipping rectangle.
virtual float GetHeight()
~vtkContextClip() override
void Update() override
Perform any updates to the item that may be necessary before rendering.