31#ifndef vtkMatplotlibMathTextUtilities_h
32#define vtkMatplotlibMathTextUtilities_h
34#include "vtkRenderingMatplotlibModule.h"
41class vtkPythonInterpreter;
79 int dpi,
int textDims[2] = NULL);
97 vtkGetMacro(ScaleToPowerOfTwo,
bool);
161 static Availability CheckMPLAvailability();
162 static void DisableMPL()
164 MPLMathTextAvailable = UNAVAILABLE;
171 static Availability MPLMathTextAvailable;
topologically and geometrically regular array of data
a simple class to control print indentation
Abstract interface to equation rendering.
Access to MatPlotLib MathText rendering.
vtkPythonInterpreter * Interpreter
PyObject * GetFontProperties(vtkTextProperty *tprop)
Returns a matplotlib.font_manager.FontProperties PyObject, initialized from the vtkTextProperty tprop...
bool StringToPath(const char *str, vtkPath *path, vtkTextProperty *tprop, int dpi)
Parse the MathText expression in str and fill path with a contour of the glyphs.
static void GetJustifiedBBox(int rows, int cols, vtkTextProperty *tprop, int bbox[4])
virtual ~vtkMatplotlibMathTextUtilities()
bool InitializePathParser()
bool InitializeFontPropertiesClass()
bool CheckForError(PyObject *object)
void CleanupPythonObjects()
Cleanup and destroy any python objects.
PyObject * FontPropertiesClass
virtual bool IsAvailable()
Returns true if mathtext rendering is available.
bool RenderString(const char *str, vtkImageData *data, vtkTextProperty *tprop, int dpi, int textDims[2]=NULL)
Render the given string str into the vtkImageData data with a resolution of dpi.
static vtkMatplotlibMathTextUtilities * New()
bool GetMetrics(vtkTextProperty *tprop, const char *str, int dpi, vtkTextRenderer::Metrics &metrics)
Return the metrics for the rendered str, tprop, and dpi.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static void RotateCorners(double angleDeg, double corners[4][2], double bbox[4])
vtkMatplotlibMathTextUtilities()
bool GetBoundingBox(vtkTextProperty *tprop, const char *str, int dpi, int bbox[4])
Given a text property and a string, get the bounding box {xmin, xmax, ymin, ymax} of the rendered str...
bool PrepareImageData(vtkImageData *data, int bbox[4])
bool InitializeMaskParser()
concrete dataset representing a path defined by Bezier curves.
represent text properties.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.