27#ifndef vtkTextProperty_h
28#define vtkTextProperty_h
31#include "vtkRenderingCoreModule.h"
49 vtkSetVector3Macro(
Color,
double);
50 vtkGetVector3Macro(
Color,
double);
58 vtkSetClampMacro(
Opacity,
double, 0., 1.);
131 void SetFontFamilyToArial();
132 void SetFontFamilyToCourier();
133 void SetFontFamilyToTimes();
134 static int GetFontFamilyFromString(
const char* f);
135 static const char* GetFontFamilyAsString(
int f);
207 const char* GetJustificationAsString();
220 const char* GetVerticalJustificationAsString();
a simple class to control print indentation
represent text properties.
void SetFontFamilyToArial()
Set/Get the font family.
virtual void SetJustification(int)
Set/Get the horizontal justification to left (default), centered, or right.
double InteriorLinesColor[3]
void ShallowCopy(vtkTextProperty *tprop)
Shallow copy of a text property.
static vtkTextProperty * New()
Creates a new text property with font size 12, bold off, italic off, and Arial font.
static int GetFontFamilyFromString(const char *f)
Set/Get the font family.
char * FontFamilyAsString
virtual char * GetFontFamilyAsString()
Set/Get the font family.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetJustificationToCentered()
Set/Get the horizontal justification to left (default), centered, or right.
void SetFontFamilyToCourier()
Set/Get the font family.
void SetVerticalJustificationToCentered()
Set/Get the vertical justification to bottom (default), middle, or top.
void GetBackgroundRGBA(double rgba[4])
Convenience method to get the background color and the opacity at once.
int GetFontFamily()
Set/Get the font family.
void SetJustificationToLeft()
Set/Get the horizontal justification to left (default), centered, or right.
int GetFontFamilyMinValue()
Set/Get the font family.
const char * GetVerticalJustificationAsString()
Set/Get the vertical justification to bottom (default), middle, or top.
vtkGetFilePathMacro(FontFile)
The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return V...
vtkSetFilePathMacro(FontFile)
The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return V...
vtkTypeBool UseTightBoundingBox
void GetBackgroundRGBA(double &r, double &g, double &b, double &a)
Convenience method to set the background color and the opacity at once.
bool InteriorLinesVisibility
void SetJustificationToRight()
Set/Get the horizontal justification to left (default), centered, or right.
void SetVerticalJustificationToTop()
Set/Get the vertical justification to bottom (default), middle, or top.
~vtkTextProperty() override
void SetBackgroundRGBA(double rgba[4])
Convenience method to set the background color and the opacity at once.
void SetFontFamily(int t)
Set/Get the font family.
void GetShadowColor(double color[3])
Get the shadow color.
double BackgroundColor[3]
int VerticalJustification
void SetVerticalJustificationToBottom()
Set/Get the vertical justification to bottom (default), middle, or top.
const char * GetJustificationAsString()
Set/Get the horizontal justification to left (default), centered, or right.
virtual void SetFontFamilyAsString(const char *)
Set/Get the font family.
void SetBackgroundRGBA(double r, double g, double b, double a)
Convenience method to set the background color and the opacity at once.
void SetFontFamilyToTimes()
Set/Get the font family.
virtual void SetVerticalJustification(int)
Set/Get the vertical justification to bottom (default), middle, or top.
#define VTK_TEXT_CENTERED