31 #ifndef vtkMatplotlibMathTextUtilities_h
32 #define vtkMatplotlibMathTextUtilities_h
34 #include "vtkRenderingMatplotlibModule.h"
41 class vtkPythonInterpreter;
79 int dpi,
int textDims[2] = NULL);
97 vtkGetMacro(ScaleToPowerOfTwo,
bool);
104 bool InitializeMaskParser();
105 bool InitializePathParser();
106 bool InitializeFontPropertiesClass();
108 bool CheckForError();
109 bool CheckForError(
PyObject *
object);
122 void CleanupPythonObjects();
129 static void GetJustifiedBBox(
int rows,
int cols,
vtkTextProperty *tprop,
134 static void RotateCorners(
double angleDeg,
double corners[4][2],
161 static Availability CheckMPLAvailability();
167 static Availability MPLMathTextAvailable;
virtual bool IsAvailable()
Returns true if mathtext rendering is available.
concrete dataset representing a path defined by Bezier curves.
virtual bool RenderString(const char *str, vtkImageData *data, vtkTextProperty *tprop, int dpi, int textDims[2]=NULL)=0
Render the given string str into the vtkImageData data with a resolution of dpi.
virtual bool GetMetrics(vtkTextProperty *tprop, const char *str, int dpi, vtkTextRenderer::Metrics &metrics)=0
Return the metrics for the rendered str, tprop, and dpi.
Access to MatPlotLib MathText rendering.
virtual bool StringToPath(const char *str, vtkPath *path, vtkTextProperty *tprop, int dpi)=0
Parse the MathText expression in str and fill path with a contour of the glyphs.
virtual bool GetBoundingBox(vtkTextProperty *tprop, const char *str, int dpi, int bbox[4])=0
Determine the dimensions of the image that RenderString will produce for a given str, tprop, and dpi.
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
topologically and geometrically regular array of data
represent text properties.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Abstract interface to equation rendering.
static vtkMathTextUtilities * New()
This is a singleton pattern New.
PyObject * FontPropertiesClass
vtkPythonInterpreter * Interpreter