23#ifndef vtkLabelRenderStrategy_h
24#define vtkLabelRenderStrategy_h
26#include "vtkRenderingLabelModule.h"
105 { this->RenderLabel(x, tprop, label); }
a simple class to control print indentation
Superclass for label rendering implementations.
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkUnicodeString label, double bds[4])=0
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label, int maxWidth)
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label, int vtkNotUsed(maxWidth))
virtual bool SupportsRotation()
Whether the text rendering strategy supports rotation.
virtual void EndFrame()
End a rendering frame.
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkUnicodeString label)=0
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool SupportsBoundedSize()
Whether the text rendering strategy supports bounded size.
virtual void SetRenderer(vtkRenderer *ren)
Set the renderer associated with this strategy.
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this strategy.
virtual void StartFrame()
Start a rendering frame.
vtkTextProperty * DefaultTextProperty
virtual void RenderLabel(int x[2], vtkTextProperty *tprop, vtkStdString label)
Render a label at a location in display coordinates.
virtual void SetDefaultTextProperty(vtkTextProperty *tprop)
Set the default text property for the strategy.
~vtkLabelRenderStrategy()
virtual void ComputeLabelBounds(vtkTextProperty *tprop, vtkStdString label, double bds[4])
Compute the bounds of a label.
abstract base class for most VTK objects
abstract specification for renderers
Wrapper around std::string to keep symbols short.
represent text properties.
String class that stores Unicode text.
static vtkUnicodeString from_utf8(const char *)
Constructs a string from a null-terminated sequence of UTF-8 encoded characters.
window superclass for vtkRenderWindow