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.);
59 vtkGetMacro(Opacity,
double);
66 vtkSetVector3Macro(BackgroundColor,
double);
67 vtkGetVector3Macro(BackgroundColor,
double);
75 vtkSetClampMacro(BackgroundOpacity,
double, 0., 1.);
76 vtkGetMacro(BackgroundOpacity,
double);
83 vtkSetVector3Macro(FrameColor,
double);
84 vtkGetVector3Macro(FrameColor,
double);
102 vtkGetMacro(FrameWidth,
int);
112 vtkGetStringMacro(FontFamilyAsString);
113 vtkSetStringMacro(FontFamilyAsString);
114 void SetFontFamily(
int t);
117 void SetFontFamilyToArial();
118 void SetFontFamilyToCourier();
119 void SetFontFamilyToTimes();
120 static int GetFontFamilyFromString(
const char* f);
121 static const char* GetFontFamilyAsString(
int f);
130 vtkGetStringMacro(FontFile);
131 vtkSetStringMacro(FontFile);
139 vtkGetMacro(FontSize,
int);
174 vtkSetVector2Macro(ShadowOffset,
int);
175 vtkGetVectorMacro(ShadowOffset,
int, 2);
189 vtkGetMacro(Justification,
int);
193 const char* GetJustificationAsString();
202 vtkGetMacro(VerticalJustification,
int);
206 const char* GetVerticalJustificationAsString();
225 vtkSetMacro(Orientation,
double);
226 vtkGetMacro(Orientation,
double);
234 vtkSetMacro(LineSpacing,
double);
235 vtkGetMacro(LineSpacing,
double);
242 vtkSetMacro(LineOffset,
double);
243 vtkGetMacro(LineOffset,
double);
257 double BackgroundColor[3];
260 double FrameColor[3];
a simple class to control print indentation
abstract base class for most VTK objects
represent text properties.
void SetFontFamilyToArial()
void ShallowCopy(vtkTextProperty *tprop)
Shallow copy of a text property.
static int GetFontFamilyFromString(const char *f)
char * FontFamilyAsString
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetJustificationToCentered()
void SetFontFamilyToCourier()
void SetVerticalJustificationToCentered()
static vtkTextProperty * New()
Creates a new text property with font size 12, bold off, italic off, and Arial font.
void SetJustificationToLeft()
int GetFontFamilyMinValue()
const char * GetVerticalJustificationAsString()
vtkTypeBool UseTightBoundingBox
void SetJustificationToRight()
void SetVerticalJustificationToTop()
~vtkTextProperty() override
void SetFontFamily(int t)
void GetShadowColor(double color[3])
Get the shadow color.
int VerticalJustification
virtual char * GetFontFamilyAsString()
Set/Get the font family.
void SetVerticalJustificationToBottom()
const char * GetJustificationAsString()
virtual void SetFontFamilyAsString(const char *)
void SetFontFamilyToTimes()
#define VTK_TEXT_CENTERED