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);
108 vtkGetMacro(FrameWidth,
int);
118 vtkGetStringMacro(FontFamilyAsString);
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 );
136 vtkGetStringMacro(FontFile)
137 vtkSetStringMacro(FontFile)
145 vtkGetMacro(FontSize,
int);
180 vtkSetVector2Macro(ShadowOffset,
int);
181 vtkGetVectorMacro(ShadowOffset,
int,2);
187 void GetShadowColor(
double color[3]);
195 vtkGetMacro(Justification,
int);
202 const char *GetJustificationAsString();
211 vtkGetMacro(VerticalJustification,
int);
218 const char *GetVerticalJustificationAsString();
237 vtkSetMacro(Orientation,
double);
238 vtkGetMacro(Orientation,
double);
246 vtkSetMacro(LineSpacing,
double);
247 vtkGetMacro(LineSpacing,
double);
254 vtkSetMacro(LineOffset,
double);
255 vtkGetMacro(LineOffset,
double);
269 double BackgroundColor[3];
272 double FrameColor[3];
316 this->SetFontFamilyAsString( this->GetFontFamilyAsString( t ) );
336 if ( strcmp( f, GetFontFamilyAsString(
VTK_ARIAL ) ) == 0 )
340 else if ( strcmp( f, GetFontFamilyAsString(
VTK_COURIER ) ) == 0 )
344 else if ( strcmp( f, GetFontFamilyAsString(
VTK_TIMES ) ) == 0 )
348 else if ( strcmp( f, GetFontFamilyAsString(
VTK_FONT_FILE) ) == 0 )
357 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.
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
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.