VTK
|
represent text properties. More...
#include <vtkTextProperty.h>
represent text properties.
vtkTextProperty is an object that represents text properties. The primary properties that can be set are color, opacity, font size, font family horizontal and vertical justification, bold/italic/shadow styles.
Definition at line 38 of file vtkTextProperty.h.
typedef vtkObject vtkTextProperty::Superclass |
Reimplemented from vtkObject.
Definition at line 41 of file vtkTextProperty.h.
vtkTextProperty::vtkTextProperty | ( | ) | [protected] |
vtkTextProperty::~vtkTextProperty | ( | ) | [protected] |
static int vtkTextProperty::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
virtual int vtkTextProperty::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
static vtkTextProperty* vtkTextProperty::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkTextProperty::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
vtkTextProperty* vtkTextProperty::NewInstance | ( | ) | const |
Reimplemented from vtkObject.
void vtkTextProperty::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
static vtkTextProperty* vtkTextProperty::New | ( | ) | [static] |
Creates a new text property with font size 12, bold off, italic off, and Arial font.
Reimplemented from vtkObject.
virtual void vtkTextProperty::SetColor | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Set the color of the text.
virtual void vtkTextProperty::SetColor | ( | double | [3] | ) | [virtual] |
Set the color of the text.
virtual double* vtkTextProperty::GetColor | ( | ) | [virtual] |
Set the color of the text.
virtual void vtkTextProperty::GetColor | ( | double & | , |
double & | , | ||
double & | |||
) | [virtual] |
Set the color of the text.
virtual void vtkTextProperty::GetColor | ( | double | [3] | ) | [virtual] |
Set the color of the text.
virtual void vtkTextProperty::SetOpacity | ( | double | ) | [virtual] |
Set/Get the text's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
virtual double vtkTextProperty::GetOpacity | ( | ) | [virtual] |
Set/Get the text's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
virtual char* vtkTextProperty::GetFontFamilyAsString | ( | ) | [virtual] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
virtual void vtkTextProperty::SetFontFamilyAsString | ( | const char * | ) | [virtual] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
void vtkTextProperty::SetFontFamily | ( | int | t | ) | [inline] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 218 of file vtkTextProperty.h.
int vtkTextProperty::GetFontFamily | ( | ) | [inline] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 259 of file vtkTextProperty.h.
int vtkTextProperty::GetFontFamilyMinValue | ( | ) | [inline] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 70 of file vtkTextProperty.h.
void vtkTextProperty::SetFontFamilyToArial | ( | ) | [inline] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 223 of file vtkTextProperty.h.
void vtkTextProperty::SetFontFamilyToCourier | ( | ) | [inline] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 228 of file vtkTextProperty.h.
void vtkTextProperty::SetFontFamilyToTimes | ( | ) | [inline] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 233 of file vtkTextProperty.h.
int vtkTextProperty::GetFontFamilyFromString | ( | const char * | f | ) | [inline, static] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 238 of file vtkTextProperty.h.
const char * vtkTextProperty::GetFontFamilyAsString | ( | int | f | ) | [inline, static] |
Set/Get the font family. Supports legacy three font family system. If the symbolic constant VTK_FONT_FILE is returned by GetFontFamily(), the string returned by GetFontFile() must be an absolute filepath to a local FreeType compatible font.
Definition at line 197 of file vtkTextProperty.h.
virtual char* vtkTextProperty::GetFontFile | ( | ) | [virtual] |
The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return VTK_FONT_FILE. The result is undefined for other values of GetFontFamily().
virtual void vtkTextProperty::SetFontFile | ( | const char * | ) | [virtual] |
The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return VTK_FONT_FILE. The result is undefined for other values of GetFontFamily().
virtual void vtkTextProperty::SetFontSize | ( | int | ) | [virtual] |
Set/Get the font size (in points).
virtual int vtkTextProperty::GetFontSize | ( | ) | [virtual] |
Set/Get the font size (in points).
virtual void vtkTextProperty::SetBold | ( | int | ) | [virtual] |
Enable/disable text bolding.
virtual int vtkTextProperty::GetBold | ( | ) | [virtual] |
Enable/disable text bolding.
virtual void vtkTextProperty::BoldOn | ( | ) | [virtual] |
Enable/disable text bolding.
virtual void vtkTextProperty::BoldOff | ( | ) | [virtual] |
Enable/disable text bolding.
virtual void vtkTextProperty::SetItalic | ( | int | ) | [virtual] |
Enable/disable text italic.
virtual int vtkTextProperty::GetItalic | ( | ) | [virtual] |
Enable/disable text italic.
virtual void vtkTextProperty::ItalicOn | ( | ) | [virtual] |
Enable/disable text italic.
virtual void vtkTextProperty::ItalicOff | ( | ) | [virtual] |
Enable/disable text italic.
virtual void vtkTextProperty::SetShadow | ( | int | ) | [virtual] |
Enable/disable text shadow.
virtual int vtkTextProperty::GetShadow | ( | ) | [virtual] |
Enable/disable text shadow.
virtual void vtkTextProperty::ShadowOn | ( | ) | [virtual] |
Enable/disable text shadow.
virtual void vtkTextProperty::ShadowOff | ( | ) | [virtual] |
Enable/disable text shadow.
virtual void vtkTextProperty::SetShadowOffset | ( | int | , |
int | |||
) | [virtual] |
Set/Get the shadow offset, i.e. the distance from the text to its shadow, in the same unit as FontSize.
void vtkTextProperty::SetShadowOffset | ( | int | [2] | ) |
Set/Get the shadow offset, i.e. the distance from the text to its shadow, in the same unit as FontSize.
virtual int* vtkTextProperty::GetShadowOffset | ( | ) | [virtual] |
Set/Get the shadow offset, i.e. the distance from the text to its shadow, in the same unit as FontSize.
virtual void vtkTextProperty::GetShadowOffset | ( | int | data[2] | ) | [virtual] |
Set/Get the shadow offset, i.e. the distance from the text to its shadow, in the same unit as FontSize.
void vtkTextProperty::GetShadowColor | ( | double | color[3] | ) |
Get the shadow color. It is computed from the Color ivar
virtual void vtkTextProperty::SetJustification | ( | int | ) | [virtual] |
Set/Get the horizontal justification to left (default), centered, or right.
virtual int vtkTextProperty::GetJustification | ( | ) | [virtual] |
Set/Get the horizontal justification to left (default), centered, or right.
void vtkTextProperty::SetJustificationToLeft | ( | ) | [inline] |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 128 of file vtkTextProperty.h.
void vtkTextProperty::SetJustificationToCentered | ( | ) | [inline] |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 130 of file vtkTextProperty.h.
void vtkTextProperty::SetJustificationToRight | ( | ) | [inline] |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 132 of file vtkTextProperty.h.
const char * vtkTextProperty::GetJustificationAsString | ( | void | ) | [inline] |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 264 of file vtkTextProperty.h.
virtual void vtkTextProperty::SetVerticalJustification | ( | int | ) | [virtual] |
Set/Get the vertical justification to bottom (default), middle, or top.
virtual int vtkTextProperty::GetVerticalJustification | ( | ) | [virtual] |
Set/Get the vertical justification to bottom (default), middle, or top.
void vtkTextProperty::SetVerticalJustificationToBottom | ( | ) | [inline] |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 142 of file vtkTextProperty.h.
void vtkTextProperty::SetVerticalJustificationToCentered | ( | ) | [inline] |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 144 of file vtkTextProperty.h.
void vtkTextProperty::SetVerticalJustificationToTop | ( | ) | [inline] |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 146 of file vtkTextProperty.h.
const char * vtkTextProperty::GetVerticalJustificationAsString | ( | void | ) | [inline] |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 281 of file vtkTextProperty.h.
virtual void vtkTextProperty::SetOrientation | ( | double | ) | [virtual] |
Set/Get the text's orientation (in degrees).
virtual double vtkTextProperty::GetOrientation | ( | ) | [virtual] |
Set/Get the text's orientation (in degrees).
virtual void vtkTextProperty::SetLineSpacing | ( | double | ) | [virtual] |
Set/Get the (extra) spacing between lines, expressed as a text height multiplication factor.
virtual double vtkTextProperty::GetLineSpacing | ( | ) | [virtual] |
Set/Get the (extra) spacing between lines, expressed as a text height multiplication factor.
virtual void vtkTextProperty::SetLineOffset | ( | double | ) | [virtual] |
Set/Get the vertical offset (measured in pixels).
virtual double vtkTextProperty::GetLineOffset | ( | ) | [virtual] |
Set/Get the vertical offset (measured in pixels).
void vtkTextProperty::ShallowCopy | ( | vtkTextProperty * | tprop | ) |
Shallow copy of a text property.
double vtkTextProperty::Color[3] [protected] |
Definition at line 177 of file vtkTextProperty.h.
double vtkTextProperty::Opacity [protected] |
Definition at line 178 of file vtkTextProperty.h.
char* vtkTextProperty::FontFamilyAsString [protected] |
Definition at line 179 of file vtkTextProperty.h.
char* vtkTextProperty::FontFile [protected] |
Definition at line 180 of file vtkTextProperty.h.
int vtkTextProperty::FontSize [protected] |
Definition at line 181 of file vtkTextProperty.h.
int vtkTextProperty::Bold [protected] |
Definition at line 182 of file vtkTextProperty.h.
int vtkTextProperty::Italic [protected] |
Definition at line 183 of file vtkTextProperty.h.
int vtkTextProperty::Shadow [protected] |
Definition at line 184 of file vtkTextProperty.h.
int vtkTextProperty::ShadowOffset[2] [protected] |
Definition at line 185 of file vtkTextProperty.h.
int vtkTextProperty::Justification [protected] |
Definition at line 186 of file vtkTextProperty.h.
int vtkTextProperty::VerticalJustification [protected] |
Definition at line 187 of file vtkTextProperty.h.
double vtkTextProperty::Orientation [protected] |
Definition at line 188 of file vtkTextProperty.h.
double vtkTextProperty::LineOffset [protected] |
Definition at line 189 of file vtkTextProperty.h.
double vtkTextProperty::LineSpacing [protected] |
Definition at line 190 of file vtkTextProperty.h.