30 #ifndef vtkTextProperty_h
31 #define vtkTextProperty_h
34 #include "vtkRenderingCoreModule.h"
52 vtkSetVector3Macro(
Color,
double);
53 vtkGetVector3Macro(
Color,
double);
61 vtkSetClampMacro(Opacity,
double, 0., 1.);
62 vtkGetMacro(Opacity,
double);
69 vtkSetVector3Macro(BackgroundColor,
double);
70 vtkGetVector3Macro(BackgroundColor,
double);
78 vtkSetClampMacro(BackgroundOpacity,
double, 0., 1.);
79 vtkGetMacro(BackgroundOpacity,
double);
86 void SetBackgroundRGBA(
double rgba[4]);
87 void SetBackgroundRGBA(
double r,
double g,
double b,
double a);
92 void GetBackgroundRGBA(
double rgba[4]);
93 void GetBackgroundRGBA(
double& r,
double& g,
double& b,
double& a);
100 vtkSetVector3Macro(FrameColor,
double);
101 vtkGetVector3Macro(FrameColor,
double);
119 vtkGetMacro(FrameWidth,
int);
129 vtkGetStringMacro(FontFamilyAsString);
130 vtkSetStringMacro(FontFamilyAsString);
131 void SetFontFamily(
int t);
134 void SetFontFamilyToArial();
135 void SetFontFamilyToCourier();
136 void SetFontFamilyToTimes();
137 static int GetFontFamilyFromString(
const char* f);
138 static const char* GetFontFamilyAsString(
int f);
147 vtkGetFilePathMacro(FontFile);
148 vtkSetFilePathMacro(FontFile);
156 vtkGetMacro(FontSize,
int);
191 vtkSetVector2Macro(ShadowOffset,
int);
192 vtkGetVectorMacro(ShadowOffset,
int, 2);
198 void GetShadowColor(
double color[3]);
206 vtkGetMacro(Justification,
int);
210 const char* GetJustificationAsString();
219 vtkGetMacro(VerticalJustification,
int);
223 const char* GetVerticalJustificationAsString();
242 vtkSetMacro(Orientation,
double);
243 vtkGetMacro(Orientation,
double);
251 vtkSetMacro(LineSpacing,
double);
252 vtkGetMacro(LineSpacing,
double);
259 vtkSetMacro(LineOffset,
double);
260 vtkGetMacro(LineOffset,
double);
268 vtkSetMacro(CellOffset,
double);
269 vtkGetMacro(CellOffset,
double);
277 vtkSetMacro(InteriorLinesVisibility,
bool);
278 vtkGetMacro(InteriorLinesVisibility,
bool);
286 vtkSetMacro(InteriorLinesWidth,
int);
287 vtkGetMacro(InteriorLinesWidth,
int);
295 vtkSetVector3Macro(InteriorLinesColor,
double);
296 vtkGetVector3Macro(InteriorLinesColor,
double);
310 double BackgroundColor[3];
313 double FrameColor[3];
329 bool InteriorLinesVisibility =
false;
330 int InteriorLinesWidth = 1;
331 double InteriorLinesColor[3] = { 0.0, 0.0, 0.0 };
void SetFontFamilyToArial()
Set/Get the font family.
void SetJustificationToRight()
Set/Get the horizontal justification to left (default), centered, or right.
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetVerticalJustificationToTop()
Set/Get the vertical justification to bottom (default), middle, or top.
char * FontFamilyAsString
void SetVerticalJustificationToBottom()
Set/Get the vertical justification to bottom (default), middle, or top.
void SetVerticalJustificationToCentered()
Set/Get the vertical justification to bottom (default), middle, or top.
#define VTK_TEXT_CENTERED
virtual void SetFontFamilyAsString(const char *)
Set/Get the font family.
a simple class to control print indentation
int GetFontFamily()
Set/Get the font family.
int GetFontFamilyMinValue()
Set/Get the font family.
void SetJustificationToLeft()
Set/Get the horizontal justification to left (default), centered, or right.
represent text properties.
void SetFontFamilyToCourier()
Set/Get the font family.
vtkTypeBool UseTightBoundingBox
static int GetFontFamilyFromString(const char *f)
Set/Get the font family.
virtual char * GetFontFamilyAsString()
Set/Get the font family.
int VerticalJustification
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
const char * GetVerticalJustificationAsString()
Set/Get the vertical justification to bottom (default), middle, or top.
void SetFontFamilyToTimes()
Set/Get the font family.
void SetJustificationToCentered()
Set/Get the horizontal justification to left (default), centered, or right.
void SetFontFamily(int t)
Set/Get the font family.
const char * GetJustificationAsString()
Set/Get the horizontal justification to left (default), centered, or right.