 |
VTK
9.1.0
|
Go to the documentation of this file.
136 #ifndef vtkTextProperty_h
137 #define vtkTextProperty_h
140 #include "vtkRenderingCoreModule.h"
167 vtkSetClampMacro(Opacity,
double, 0., 1.);
168 vtkGetMacro(Opacity,
double);
175 vtkSetVector3Macro(BackgroundColor,
double);
176 vtkGetVector3Macro(BackgroundColor,
double);
184 vtkSetClampMacro(BackgroundOpacity,
double, 0., 1.);
185 vtkGetMacro(BackgroundOpacity,
double);
206 vtkSetVector3Macro(FrameColor,
double);
207 vtkGetVector3Macro(FrameColor,
double);
225 vtkGetMacro(FrameWidth,
int);
235 vtkGetStringMacro(FontFamilyAsString);
236 vtkSetStringMacro(FontFamilyAsString);
237 void SetFontFamily(
int t);
240 void SetFontFamilyToArial();
241 void SetFontFamilyToCourier();
242 void SetFontFamilyToTimes();
243 static int GetFontFamilyFromString(
const char* f);
244 static const char* GetFontFamilyAsString(
int f);
262 vtkGetMacro(FontSize,
int);
297 vtkSetVector2Macro(ShadowOffset,
int);
298 vtkGetVectorMacro(ShadowOffset,
int, 2);
312 vtkGetMacro(Justification,
int);
316 const char* GetJustificationAsString();
325 vtkGetMacro(VerticalJustification,
int);
329 const char* GetVerticalJustificationAsString();
348 vtkSetMacro(Orientation,
double);
349 vtkGetMacro(Orientation,
double);
357 vtkSetMacro(LineSpacing,
double);
358 vtkGetMacro(LineSpacing,
double);
365 vtkSetMacro(LineOffset,
double);
366 vtkGetMacro(LineOffset,
double);
374 vtkSetMacro(CellOffset,
double);
375 vtkGetMacro(CellOffset,
double);
389 double BackgroundColor[3];
392 double FrameColor[3];
virtual char * GetFontFamilyAsString()
Set/Get the font family.
void SetJustificationToCentered()
Set/Get the horizontal justification to left (default), centered, or right.
virtual void SetFontFamilyAsString(const char *)
Set/Get the font family.
void SetBackgroundRGBA(double rgba[4])
Convenience method to set the background color and the opacity at once.
void SetBackgroundRGBA(double r, double g, double b, double a)
Convenience method to set the background color and the opacity at once.
vtkSetFilePathMacro(FontFile)
The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return V...
const char * GetVerticalJustificationAsString()
Set/Get the vertical justification to bottom (default), middle, or top.
vtkTypeBool UseTightBoundingBox
abstract base class for most VTK objects
const char * GetJustificationAsString()
Set/Get the horizontal justification to left (default), centered, or right.
void SetJustificationToLeft()
Set/Get the horizontal justification to left (default), centered, or right.
int GetFontFamily()
Set/Get the font family.
void SetFontFamilyToCourier()
Set/Get the font family.
void SetVerticalJustificationToTop()
Set/Get the vertical justification to bottom (default), middle, or top.
void GetBackgroundRGBA(double &r, double &g, double &b, double &a)
Convenience method to set the background color and the opacity at once.
void SetVerticalJustificationToCentered()
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...
a simple class to control print indentation
int VerticalJustification
void SetJustificationToRight()
Set/Get the horizontal justification to left (default), centered, or right.
void SetFontFamilyToTimes()
Set/Get the font family.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTextProperty * New()
Creates a new text property with font size 12, bold off, italic off, and Arial font.
represent text properties.
void SetFontFamilyToArial()
Set/Get the font family.
char * FontFamilyAsString
#define VTK_TEXT_CENTERED
~vtkTextProperty() override
void ShallowCopy(vtkTextProperty *tprop)
Shallow copy of a text property.
void SetFontFamily(int t)
Set/Get the font family.
int GetFontFamilyMinValue()
Set/Get the font family.
void SetVerticalJustificationToBottom()
Set/Get the vertical justification to bottom (default), middle, or top.
static int GetFontFamilyFromString(const char *f)
Set/Get the font family.
void GetBackgroundRGBA(double rgba[4])
Convenience method to get the background color and the opacity at once.
void GetShadowColor(double color[3])
Get the shadow color.