33 #ifndef vtkTextProperty_h
34 #define vtkTextProperty_h
36 #include "vtkRenderingCoreModule.h"
55 vtkSetVector3Macro(
Color,
double);
56 vtkGetVector3Macro(
Color,
double);
64 vtkSetClampMacro(Opacity,
double, 0., 1.);
65 vtkGetMacro(Opacity,
double);
72 vtkSetVector3Macro(BackgroundColor,
double);
73 vtkGetVector3Macro(BackgroundColor,
double);
81 vtkSetClampMacro(BackgroundOpacity,
double, 0., 1.);
82 vtkGetMacro(BackgroundOpacity,
double);
89 vtkSetVector3Macro(FrameColor,
double);
90 vtkGetVector3Macro(FrameColor,
double);
98 vtkGetMacro(Frame,
int);
108 vtkGetMacro(FrameWidth,
int);
119 vtkSetStringMacro(FontFamilyAsString);
120 void SetFontFamily(
int t);
123 void SetFontFamilyToArial();
124 void SetFontFamilyToCourier();
125 void SetFontFamilyToTimes();
126 static int GetFontFamilyFromString(
const char *f );
127 static const char *GetFontFamilyAsString(
int f );
137 vtkSetStringMacro(FontFile)
145 vtkGetMacro(FontSize,
int);
153 vtkGetMacro(Bold,
int);
162 vtkGetMacro(Italic,
int);
171 vtkGetMacro(Shadow,
int);
180 vtkSetVector2Macro(ShadowOffset,
int);
181 vtkGetVectorMacro(ShadowOffset,
int,2);
187 void GetShadowColor(
double color[3]);
195 vtkGetMacro(Justification,
int);
196 void SetJustificationToLeft()
202 const char *GetJustificationAsString();
211 vtkGetMacro(VerticalJustification,
int);
218 const char *GetVerticalJustificationAsString();
229 vtkGetMacro(UseTightBoundingBox,
int);
238 vtkGetMacro(Orientation,
double);
247 vtkGetMacro(LineSpacing,
double);
255 vtkGetMacro(LineOffset,
double);
269 double BackgroundColor[3];
272 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.
int GetFontFamilyMinValue()
const char * GetVerticalJustificationAsString()
void SetJustificationToRight()
void SetVerticalJustificationToTop()
void SetFontFamily(int t)
int VerticalJustification
virtual char * GetFontFamilyAsString()
Set/Get the font family.
void SetVerticalJustificationToBottom()
const char * GetJustificationAsString()
virtual void SetFontFamilyAsString(const char *)
void SetFontFamilyToTimes()
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
#define VTK_TEXT_CENTERED