|
VTK
|
represent text properties. More...
#include <vtkTextProperty.h>
Public Types | |
| typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
| typedef vtkObjectBase | Superclass |
Public Member Functions | |
| virtual int | IsA (const char *type) |
| vtkTextProperty * | NewInstance () const |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| void | GetShadowColor (double color[3]) |
| void | ShallowCopy (vtkTextProperty *tprop) |
| virtual void | SetColor (double, double, double) |
| virtual void | SetColor (double[3]) |
| virtual double * | GetColor () |
| virtual void | GetColor (double &, double &, double &) |
| virtual void | GetColor (double[3]) |
| virtual void | SetOpacity (double) |
| virtual double | GetOpacity () |
| virtual void | SetBackgroundColor (double, double, double) |
| virtual void | SetBackgroundColor (double[3]) |
| virtual double * | GetBackgroundColor () |
| virtual void | GetBackgroundColor (double &, double &, double &) |
| virtual void | GetBackgroundColor (double[3]) |
| virtual void | SetBackgroundOpacity (double) |
| virtual double | GetBackgroundOpacity () |
| virtual char * | GetFontFile () |
| virtual void | SetFontFile (const char *) |
| virtual void | SetFontSize (int) |
| virtual int | GetFontSize () |
| virtual void | SetBold (int) |
| virtual int | GetBold () |
| virtual void | BoldOn () |
| virtual void | BoldOff () |
| virtual void | SetItalic (int) |
| virtual int | GetItalic () |
| virtual void | ItalicOn () |
| virtual void | ItalicOff () |
| virtual void | SetShadow (int) |
| virtual int | GetShadow () |
| virtual void | ShadowOn () |
| virtual void | ShadowOff () |
| virtual void | SetShadowOffset (int, int) |
| void | SetShadowOffset (int[2]) |
| virtual int * | GetShadowOffset () |
| virtual void | GetShadowOffset (int data[2]) |
| virtual void | SetJustification (int) |
| virtual int | GetJustification () |
| void | SetJustificationToLeft () |
| void | SetJustificationToCentered () |
| void | SetJustificationToRight () |
| const char * | GetJustificationAsString () |
| virtual void | SetVerticalJustification (int) |
| virtual int | GetVerticalJustification () |
| void | SetVerticalJustificationToBottom () |
| void | SetVerticalJustificationToCentered () |
| void | SetVerticalJustificationToTop () |
| const char * | GetVerticalJustificationAsString () |
| virtual void | SetOrientation (double) |
| virtual double | GetOrientation () |
| virtual void | SetLineSpacing (double) |
| virtual double | GetLineSpacing () |
| virtual void | SetLineOffset (double) |
| virtual double | GetLineOffset () |
Public Member Functions inherited from vtkObject | |
| vtkObject * | NewInstance () const |
| virtual void | DebugOn () |
| virtual void | DebugOff () |
| bool | GetDebug () |
| void | SetDebug (bool debugFlag) |
| virtual void | Modified () |
| virtual unsigned long | GetMTime () |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| vtkCommand * | GetCommand (unsigned long tag) |
| void | RemoveObserver (vtkCommand *) |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| void | RemoveObservers (const char *event, vtkCommand *) |
| int | HasObserver (unsigned long event, vtkCommand *) |
| int | HasObserver (const char *event, vtkCommand *) |
| void | RemoveObserver (unsigned long tag) |
| void | RemoveObservers (unsigned long event) |
| void | RemoveObservers (const char *event) |
| void | RemoveAllObservers () |
| int | HasObserver (unsigned long event) |
| int | HasObserver (const char *event) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| template<class U , class T > | |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| int | InvokeEvent (unsigned long event, void *callData) |
| int | InvokeEvent (const char *event, void *callData) |
| int | InvokeEvent (unsigned long event) |
| int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
| const char * | GetClassName () const |
| virtual void | Delete () |
| virtual void | FastDelete () |
| void | Print (ostream &os) |
| virtual void | Register (vtkObjectBase *o) |
| virtual void | UnRegister (vtkObjectBase *o) |
| void | SetReferenceCount (int) |
| void | PrintRevisions (ostream &) |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| int | GetReferenceCount () |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkTextProperty * | SafeDownCast (vtkObjectBase *o) |
| static vtkTextProperty * | New () |
Static Public Member Functions inherited from vtkObject | |
| static int | IsTypeOf (const char *type) |
| static vtkObject * | SafeDownCast (vtkObjectBase *o) |
| static vtkObject * | New () |
| static void | BreakOnError () |
| static void | SetGlobalWarningDisplay (int val) |
| static void | GlobalWarningDisplayOn () |
| static void | GlobalWarningDisplayOff () |
| static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
| static int | IsTypeOf (const char *name) |
| static vtkObjectBase * | New () |
Protected Member Functions | |
| virtual vtkObjectBase * | NewInstanceInternal () const |
| vtkTextProperty () | |
| ~vtkTextProperty () | |
Protected Member Functions inherited from vtkObject | |
| vtkObject () | |
| virtual | ~vtkObject () |
| virtual void | RegisterInternal (vtkObjectBase *, int check) |
| virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
| vtkObjectBase () | |
| virtual | ~vtkObjectBase () |
| virtual void | CollectRevisions (ostream &) |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| vtkObjectBase (const vtkObjectBase &) | |
| void | operator= (const vtkObjectBase &) |
Protected Attributes | |
| double | Color [3] |
| double | Opacity |
| double | BackgroundColor [3] |
| double | BackgroundOpacity |
| char * | FontFamilyAsString |
| char * | FontFile |
| int | FontSize |
| int | Bold |
| int | Italic |
| int | Shadow |
| int | ShadowOffset [2] |
| int | Justification |
| int | VerticalJustification |
| double | Orientation |
| double | LineOffset |
| double | LineSpacing |
Protected Attributes inherited from vtkObject | |
| bool | Debug |
| vtkTimeStamp | MTime |
| vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
| vtkAtomicInt32 | ReferenceCount |
| vtkWeakPointerBase ** | WeakPointers |
| static int | GetFontFamilyFromString (const char *f) |
| static const char * | GetFontFamilyAsString (int f) |
| virtual char * | GetFontFamilyAsString () |
| virtual void | SetFontFamilyAsString (const char *) |
| void | SetFontFamily (int t) |
| int | GetFontFamily () |
| int | GetFontFamilyMinValue () |
| void | SetFontFamilyToArial () |
| void | SetFontFamilyToCourier () |
| void | SetFontFamilyToTimes () |
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 |
Definition at line 41 of file vtkTextProperty.h.
|
protected |
|
protected |
|
static |
|
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 |
|
protectedvirtual |
Reimplemented from vtkObject.
| vtkTextProperty* vtkTextProperty::NewInstance | ( | ) | const |
|
virtual |
|
static |
Creates a new text property with font size 12, bold off, italic off, and Arial font.
Set the color of the text.
|
virtual |
Set the color of the text.
|
virtual |
Set the color of the text.
Set the color of the text.
|
virtual |
Set the color of the text.
|
virtual |
Set/Get the text's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
|
virtual |
Set/Get the text's opacity. 1.0 is totally opaque and 0.0 is completely transparent.
The background color.
|
virtual |
The background color.
|
virtual |
The background color.
The background color.
|
virtual |
The background color.
|
virtual |
The background opacity. 1.0 is totally opaque and 0.0 is completely transparent.
|
virtual |
The background opacity. 1.0 is totally opaque and 0.0 is completely transparent.
|
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 |
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.
|
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.
|
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 274 of file vtkTextProperty.h.
|
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 83 of file vtkTextProperty.h.
|
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 238 of file vtkTextProperty.h.
|
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 243 of file vtkTextProperty.h.
|
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 248 of file vtkTextProperty.h.
|
inlinestatic |
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 253 of file vtkTextProperty.h.
|
inlinestatic |
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 212 of file vtkTextProperty.h.
|
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 |
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 |
Set/Get the font size (in points).
|
virtual |
Set/Get the font size (in points).
|
virtual |
Enable/disable text bolding.
|
virtual |
Enable/disable text bolding.
|
virtual |
Enable/disable text bolding.
|
virtual |
Enable/disable text bolding.
|
virtual |
Enable/disable text italic.
|
virtual |
Enable/disable text italic.
|
virtual |
Enable/disable text italic.
|
virtual |
Enable/disable text italic.
|
virtual |
Enable/disable text shadow.
|
virtual |
Enable/disable text shadow.
|
virtual |
Enable/disable text shadow.
|
virtual |
Enable/disable text shadow.
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 |
Set/Get the shadow offset, i.e. the distance from the text to its shadow, in the same unit as FontSize.
|
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 |
Set/Get the horizontal justification to left (default), centered, or right.
|
virtual |
Set/Get the horizontal justification to left (default), centered, or right.
|
inline |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 141 of file vtkTextProperty.h.
|
inline |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 143 of file vtkTextProperty.h.
|
inline |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 145 of file vtkTextProperty.h.
|
inline |
Set/Get the horizontal justification to left (default), centered, or right.
Definition at line 279 of file vtkTextProperty.h.
|
virtual |
Set/Get the vertical justification to bottom (default), middle, or top.
|
virtual |
Set/Get the vertical justification to bottom (default), middle, or top.
|
inline |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 155 of file vtkTextProperty.h.
|
inline |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 157 of file vtkTextProperty.h.
|
inline |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 159 of file vtkTextProperty.h.
|
inline |
Set/Get the vertical justification to bottom (default), middle, or top.
Definition at line 296 of file vtkTextProperty.h.
|
virtual |
Set/Get the text's orientation (in degrees).
|
virtual |
Set/Get the text's orientation (in degrees).
|
virtual |
Set/Get the (extra) spacing between lines, expressed as a text height multiplication factor.
|
virtual |
Set/Get the (extra) spacing between lines, expressed as a text height multiplication factor.
|
virtual |
Set/Get the vertical offset (measured in pixels).
|
virtual |
Set/Get the vertical offset (measured in pixels).
| void vtkTextProperty::ShallowCopy | ( | vtkTextProperty * | tprop | ) |
Shallow copy of a text property.
|
protected |
Definition at line 190 of file vtkTextProperty.h.
|
protected |
Definition at line 191 of file vtkTextProperty.h.
|
protected |
Definition at line 192 of file vtkTextProperty.h.
|
protected |
Definition at line 193 of file vtkTextProperty.h.
|
protected |
Definition at line 194 of file vtkTextProperty.h.
|
protected |
Definition at line 195 of file vtkTextProperty.h.
|
protected |
Definition at line 196 of file vtkTextProperty.h.
|
protected |
Definition at line 197 of file vtkTextProperty.h.
|
protected |
Definition at line 198 of file vtkTextProperty.h.
|
protected |
Definition at line 199 of file vtkTextProperty.h.
|
protected |
Definition at line 200 of file vtkTextProperty.h.
|
protected |
Definition at line 201 of file vtkTextProperty.h.
|
protected |
Definition at line 202 of file vtkTextProperty.h.
|
protected |
Definition at line 203 of file vtkTextProperty.h.
|
protected |
Definition at line 204 of file vtkTextProperty.h.
|
protected |
Definition at line 205 of file vtkTextProperty.h.
1.8.9.1