27 #ifndef vtkTextProperty_h 28 #define vtkTextProperty_h 30 #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);
92 vtkGetMacro(Frame,
int);
102 vtkGetMacro(FrameWidth,
int);
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 );
131 vtkSetStringMacro(FontFile)
139 vtkGetMacro(FontSize,
int);
147 vtkGetMacro(Bold,
int);
156 vtkGetMacro(Italic,
int);
165 vtkGetMacro(Shadow,
int);
174 vtkSetVector2Macro(ShadowOffset,
int);
175 vtkGetVectorMacro(ShadowOffset,
int,2);
181 void GetShadowColor(
double color[3]);
189 vtkGetMacro(Justification,
int);
196 const char *GetJustificationAsString();
205 vtkGetMacro(VerticalJustification,
int);
212 const char *GetVerticalJustificationAsString();
223 vtkGetMacro(UseTightBoundingBox,
int);
232 vtkGetMacro(Orientation,
double);
241 vtkGetMacro(LineSpacing,
double);
249 vtkGetMacro(LineOffset,
double);
263 double BackgroundColor[3];
264 double BackgroundOpacity;
266 double FrameColor[3];
268 char* FontFamilyAsString;
276 int VerticalJustification;
277 int UseTightBoundingBox;
310 this->SetFontFamilyAsString( this->GetFontFamilyAsString( t ) );
330 if ( strcmp( f, GetFontFamilyAsString(
VTK_ARIAL ) ) == 0 )
334 else if ( strcmp( f, GetFontFamilyAsString(
VTK_COURIER ) ) == 0 )
338 else if ( strcmp( f, GetFontFamilyAsString(
VTK_TIMES ) ) == 0 )
342 else if ( strcmp( f, GetFontFamilyAsString(
VTK_FONT_FILE) ) == 0 )
351 return GetFontFamilyFromString( this->FontFamilyAsString );
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.
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
a simple class to control print indentation
int GetFontFamily()
Set/Get the font family.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static int GetFontFamilyFromString(const char *f)
Set/Get the font family.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.