127 #ifndef vtkTextProperty_h
128 #define vtkTextProperty_h
131 #include "vtkRenderingCoreModule.h"
134 VTK_ABI_NAMESPACE_BEGIN
160 vtkSetClampMacro(Opacity,
double, 0., 1.);
161 vtkGetMacro(Opacity,
double);
168 vtkSetVector3Macro(BackgroundColor,
double);
169 vtkGetVector3Macro(BackgroundColor,
double);
177 vtkSetClampMacro(BackgroundOpacity,
double, 0., 1.);
178 vtkGetMacro(BackgroundOpacity,
double);
199 vtkSetVector3Macro(FrameColor,
double);
200 vtkGetVector3Macro(FrameColor,
double);
218 vtkGetMacro(FrameWidth,
int);
228 vtkGetStringMacro(FontFamilyAsString);
229 vtkSetStringMacro(FontFamilyAsString);
230 void SetFontFamily(
int t);
233 void SetFontFamilyToArial();
234 void SetFontFamilyToCourier();
235 void SetFontFamilyToTimes();
236 static int GetFontFamilyFromString(
const char* f);
237 static const char* GetFontFamilyAsString(
int f);
255 vtkGetMacro(FontSize,
int);
290 vtkSetVector2Macro(ShadowOffset,
int);
291 vtkGetVectorMacro(ShadowOffset,
int, 2);
305 vtkGetMacro(Justification,
int);
309 const char* GetJustificationAsString();
318 vtkGetMacro(VerticalJustification,
int);
322 const char* GetVerticalJustificationAsString();
341 vtkSetMacro(Orientation,
double);
342 vtkGetMacro(Orientation,
double);
350 vtkSetMacro(LineSpacing,
double);
351 vtkGetMacro(LineSpacing,
double);
358 vtkSetMacro(LineOffset,
double);
359 vtkGetMacro(LineOffset,
double);
367 vtkSetMacro(CellOffset,
double);
368 vtkGetMacro(CellOffset,
double);
376 vtkSetMacro(InteriorLinesVisibility,
bool);
377 vtkGetMacro(InteriorLinesVisibility,
bool);
385 vtkSetMacro(InteriorLinesWidth,
int);
386 vtkGetMacro(InteriorLinesWidth,
int);
394 vtkSetVector3Macro(InteriorLinesColor,
double);
395 vtkGetVector3Macro(InteriorLinesColor,
double);
409 double BackgroundColor[3];
412 double FrameColor[3];
428 bool InteriorLinesVisibility =
false;
429 int InteriorLinesWidth = 1;
430 double InteriorLinesColor[3] = { 0.0, 0.0, 0.0 };
538 VTK_ABI_NAMESPACE_END
a simple class to control print indentation
abstract base class for most VTK objects
represent text properties.
void SetFontFamilyToArial()
Set/Get the font family.
void ShallowCopy(vtkTextProperty *tprop)
Shallow copy of a text property.
static int GetFontFamilyFromString(const char *f)
Set/Get the font family.
char * FontFamilyAsString
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.
static vtkTextProperty * New()
Creates a new text property with font size 12, bold off, italic off, and Arial font.
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.
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.
int VerticalJustification
virtual char * GetFontFamilyAsString()
Set/Get the font family.
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.
#define VTK_TEXT_CENTERED