VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkTextProperty Class Reference

represent text properties. More...

#include <vtkTextProperty.h>

Inheritance diagram for vtkTextProperty:
[legend]
Collaboration diagram for vtkTextProperty:
[legend]

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkTextPropertyNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void GetShadowColor (double color[3])
 Get the shadow color. More...
 
void ShallowCopy (vtkTextProperty *tprop)
 Shallow copy of a text property. More...
 
virtual void SetColor (double, double, double)
 Set the color of the text. More...
 
virtual void SetColor (double[3])
 Set the color of the text. More...
 
virtual doubleGetColor ()
 Set the color of the text. More...
 
virtual void GetColor (double &, double &, double &)
 Set the color of the text. More...
 
virtual void GetColor (double[3])
 Set the color of the text. More...
 
virtual void SetOpacity (double)
 Set/Get the text's opacity. More...
 
virtual double GetOpacity ()
 Set/Get the text's opacity. More...
 
virtual void SetBackgroundColor (double, double, double)
 The background color. More...
 
virtual void SetBackgroundColor (double[3])
 The background color. More...
 
virtual doubleGetBackgroundColor ()
 The background color. More...
 
virtual void GetBackgroundColor (double &, double &, double &)
 The background color. More...
 
virtual void GetBackgroundColor (double[3])
 The background color. More...
 
virtual void SetBackgroundOpacity (double)
 The background opacity. More...
 
virtual double GetBackgroundOpacity ()
 The background opacity. More...
 
virtual void SetFrameColor (double, double, double)
 The frame color. More...
 
virtual void SetFrameColor (double[3])
 The frame color. More...
 
virtual doubleGetFrameColor ()
 The frame color. More...
 
virtual void GetFrameColor (double &, double &, double &)
 The frame color. More...
 
virtual void GetFrameColor (double[3])
 The frame color. More...
 
virtual void SetFrame (int)
 Enable/disable text frame. More...
 
virtual int GetFrame ()
 Enable/disable text frame. More...
 
virtual void FrameOn ()
 Enable/disable text frame. More...
 
virtual void FrameOff ()
 Enable/disable text frame. More...
 
virtual void SetFrameWidth (int)
 Set/Get the width of the frame. More...
 
virtual int GetFrameWidth ()
 Set/Get the width of the frame. More...
 
virtual char * GetFontFile ()
 The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return VTK_FONT_FILE. More...
 
virtual void SetFontFile (const char *)
 The absolute filepath to a local file containing a freetype-readable font if GetFontFamily() return VTK_FONT_FILE. More...
 
virtual void SetFontSize (int)
 Set/Get the font size (in points). More...
 
virtual int GetFontSize ()
 Set/Get the font size (in points). More...
 
virtual void SetBold (int)
 Enable/disable text bolding. More...
 
virtual int GetBold ()
 Enable/disable text bolding. More...
 
virtual void BoldOn ()
 Enable/disable text bolding. More...
 
virtual void BoldOff ()
 Enable/disable text bolding. More...
 
virtual void SetItalic (int)
 Enable/disable text italic. More...
 
virtual int GetItalic ()
 Enable/disable text italic. More...
 
virtual void ItalicOn ()
 Enable/disable text italic. More...
 
virtual void ItalicOff ()
 Enable/disable text italic. More...
 
virtual void SetShadow (int)
 Enable/disable text shadow. More...
 
virtual int GetShadow ()
 Enable/disable text shadow. More...
 
virtual void ShadowOn ()
 Enable/disable text shadow. More...
 
virtual void ShadowOff ()
 Enable/disable text shadow. More...
 
virtual void SetShadowOffset (int, int)
 Set/Get the shadow offset, i.e. More...
 
void SetShadowOffset (int[2])
 Set/Get the shadow offset, i.e. More...
 
virtual intGetShadowOffset ()
 Set/Get the shadow offset, i.e. More...
 
virtual void GetShadowOffset (int data[2])
 Set/Get the shadow offset, i.e. More...
 
virtual void SetJustification (int)
 Set/Get the horizontal justification to left (default), centered, or right. More...
 
virtual int GetJustification ()
 Set/Get the horizontal justification to left (default), centered, or right. More...
 
void SetJustificationToLeft ()
 Set/Get the horizontal justification to left (default), centered, or right. More...
 
void SetJustificationToCentered ()
 Set/Get the horizontal justification to left (default), centered, or right. More...
 
void SetJustificationToRight ()
 Set/Get the horizontal justification to left (default), centered, or right. More...
 
const char * GetJustificationAsString ()
 Set/Get the horizontal justification to left (default), centered, or right. More...
 
virtual void SetVerticalJustification (int)
 Set/Get the vertical justification to bottom (default), middle, or top. More...
 
virtual int GetVerticalJustification ()
 Set/Get the vertical justification to bottom (default), middle, or top. More...
 
void SetVerticalJustificationToBottom ()
 Set/Get the vertical justification to bottom (default), middle, or top. More...
 
void SetVerticalJustificationToCentered ()
 Set/Get the vertical justification to bottom (default), middle, or top. More...
 
void SetVerticalJustificationToTop ()
 Set/Get the vertical justification to bottom (default), middle, or top. More...
 
const char * GetVerticalJustificationAsString ()
 Set/Get the vertical justification to bottom (default), middle, or top. More...
 
virtual void SetUseTightBoundingBox (int)
 If this property is on, text is alligned to drawn pixels not to font metrix. More...
 
virtual int GetUseTightBoundingBox ()
 If this property is on, text is alligned to drawn pixels not to font metrix. More...
 
virtual void UseTightBoundingBoxOn ()
 If this property is on, text is alligned to drawn pixels not to font metrix. More...
 
virtual void UseTightBoundingBoxOff ()
 If this property is on, text is alligned to drawn pixels not to font metrix. More...
 
virtual void SetOrientation (double)
 Set/Get the text's orientation (in degrees). More...
 
virtual double GetOrientation ()
 Set/Get the text's orientation (in degrees). More...
 
virtual void SetLineSpacing (double)
 Set/Get the (extra) spacing between lines, expressed as a text height multiplication factor. More...
 
virtual double GetLineSpacing ()
 Set/Get the (extra) spacing between lines, expressed as a text height multiplication factor. More...
 
virtual void SetLineOffset (double)
 Set/Get the vertical offset (measured in pixels). More...
 
virtual double GetLineOffset ()
 Set/Get the vertical offset (measured in pixels). More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkTextPropertySafeDownCast (vtkObjectBase *o)
 
static vtkTextPropertyNew ()
 Creates a new text property with font size 12, bold off, italic off, and Arial font. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkTextProperty ()
 
 ~vtkTextProperty ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- 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
 
int Frame
 
double FrameColor [3]
 
int FrameWidth
 
char * FontFamilyAsString
 
char * FontFile
 
int FontSize
 
int Bold
 
int Italic
 
int Shadow
 
int ShadowOffset [2]
 
int Justification
 
int VerticalJustification
 
int UseTightBoundingBox
 
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)
 Set/Get the font family. More...
 
static const char * GetFontFamilyAsString (int f)
 Set/Get the font family. More...
 
virtual char * GetFontFamilyAsString ()
 Set/Get the font family. More...
 
virtual void SetFontFamilyAsString (const char *)
 Set/Get the font family. More...
 
void SetFontFamily (int t)
 Set/Get the font family. More...
 
int GetFontFamily ()
 Set/Get the font family. More...
 
int GetFontFamilyMinValue ()
 Set/Get the font family. More...
 
void SetFontFamilyToArial ()
 Set/Get the font family. More...
 
void SetFontFamilyToCourier ()
 Set/Get the font family. More...
 
void SetFontFamilyToTimes ()
 Set/Get the font family. More...
 

Detailed Description

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.

See also
vtkTextMapper vtkTextActor vtkLegendBoxActor vtkCaptionActor2D
Examples:
vtkTextProperty (Examples)
Tests:
vtkTextProperty (Tests)

Definition at line 39 of file vtkTextProperty.h.

Member Typedef Documentation

Definition at line 42 of file vtkTextProperty.h.

Constructor & Destructor Documentation

vtkTextProperty::vtkTextProperty ( )
protected
vtkTextProperty::~vtkTextProperty ( )
protected

Member Function Documentation

static int vtkTextProperty::IsTypeOf ( const char *  type)
static
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 vtkObjectBase.

static vtkTextProperty* vtkTextProperty::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkTextProperty::NewInstanceInternal ( ) const
protectedvirtual
vtkTextProperty* vtkTextProperty::NewInstance ( ) const
void vtkTextProperty::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

static vtkTextProperty* vtkTextProperty::New ( )
static

Creates a new text property with font size 12, bold off, italic off, and Arial font.

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 void vtkTextProperty::SetBackgroundColor ( double  ,
double  ,
double   
)
virtual

The background color.

virtual void vtkTextProperty::SetBackgroundColor ( double  [3])
virtual

The background color.

virtual double* vtkTextProperty::GetBackgroundColor ( )
virtual

The background color.

virtual void vtkTextProperty::GetBackgroundColor ( double ,
double ,
double  
)
virtual

The background color.

virtual void vtkTextProperty::GetBackgroundColor ( double  [3])
virtual

The background color.

virtual void vtkTextProperty::SetBackgroundOpacity ( double  )
virtual

The background opacity.

1.0 is totally opaque and 0.0 is completely transparent.

virtual double vtkTextProperty::GetBackgroundOpacity ( )
virtual

The background opacity.

1.0 is totally opaque and 0.0 is completely transparent.

virtual void vtkTextProperty::SetFrameColor ( double  ,
double  ,
double   
)
virtual

The frame color.

virtual void vtkTextProperty::SetFrameColor ( double  [3])
virtual

The frame color.

virtual double* vtkTextProperty::GetFrameColor ( )
virtual

The frame color.

virtual void vtkTextProperty::GetFrameColor ( double ,
double ,
double  
)
virtual

The frame color.

virtual void vtkTextProperty::GetFrameColor ( double  [3])
virtual

The frame color.

virtual void vtkTextProperty::SetFrame ( int  )
virtual

Enable/disable text frame.

virtual int vtkTextProperty::GetFrame ( )
virtual

Enable/disable text frame.

virtual void vtkTextProperty::FrameOn ( )
virtual

Enable/disable text frame.

virtual void vtkTextProperty::FrameOff ( )
virtual

Enable/disable text frame.

virtual void vtkTextProperty::SetFrameWidth ( int  )
virtual

Set/Get the width of the frame.

The width is expressed in pixels. The default is 1 pixel.

virtual int vtkTextProperty::GetFrameWidth ( )
virtual

Set/Get the width of the frame.

The width is expressed in pixels. The default is 1 pixel.

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 314 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 355 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 122 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 319 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 324 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 329 of file vtkTextProperty.h.

int vtkTextProperty::GetFontFamilyFromString ( const char *  f)
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 334 of file vtkTextProperty.h.

const char * vtkTextProperty::GetFontFamilyAsString ( int  f)
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 293 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 196 of file vtkTextProperty.h.

void vtkTextProperty::SetJustificationToCentered ( )
inline

Set/Get the horizontal justification to left (default), centered, or right.

Definition at line 198 of file vtkTextProperty.h.

void vtkTextProperty::SetJustificationToRight ( )
inline

Set/Get the horizontal justification to left (default), centered, or right.

Definition at line 200 of file vtkTextProperty.h.

const char * vtkTextProperty::GetJustificationAsString ( void  )
inline

Set/Get the horizontal justification to left (default), centered, or right.

Definition at line 360 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 212 of file vtkTextProperty.h.

void vtkTextProperty::SetVerticalJustificationToCentered ( )
inline

Set/Get the vertical justification to bottom (default), middle, or top.

Definition at line 214 of file vtkTextProperty.h.

void vtkTextProperty::SetVerticalJustificationToTop ( )
inline

Set/Get the vertical justification to bottom (default), middle, or top.

Definition at line 216 of file vtkTextProperty.h.

const char * vtkTextProperty::GetVerticalJustificationAsString ( void  )
inline

Set/Get the vertical justification to bottom (default), middle, or top.

Definition at line 377 of file vtkTextProperty.h.

virtual void vtkTextProperty::SetUseTightBoundingBox ( int  )
virtual

If this property is on, text is alligned to drawn pixels not to font metrix.

If the text does not include descents, the bounding box will not extend below the baseline. This option can be used to get centered labels. It does not work well if the string changes as the string position will move around.

virtual int vtkTextProperty::GetUseTightBoundingBox ( )
virtual

If this property is on, text is alligned to drawn pixels not to font metrix.

If the text does not include descents, the bounding box will not extend below the baseline. This option can be used to get centered labels. It does not work well if the string changes as the string position will move around.

virtual void vtkTextProperty::UseTightBoundingBoxOn ( )
virtual

If this property is on, text is alligned to drawn pixels not to font metrix.

If the text does not include descents, the bounding box will not extend below the baseline. This option can be used to get centered labels. It does not work well if the string changes as the string position will move around.

virtual void vtkTextProperty::UseTightBoundingBoxOff ( )
virtual

If this property is on, text is alligned to drawn pixels not to font metrix.

If the text does not include descents, the bounding box will not extend below the baseline. This option can be used to get centered labels. It does not work well if the string changes as the string position will move around.

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.

Member Data Documentation

double vtkTextProperty::Color[3]
protected

Definition at line 267 of file vtkTextProperty.h.

double vtkTextProperty::Opacity
protected

Definition at line 268 of file vtkTextProperty.h.

double vtkTextProperty::BackgroundColor[3]
protected

Definition at line 269 of file vtkTextProperty.h.

double vtkTextProperty::BackgroundOpacity
protected

Definition at line 270 of file vtkTextProperty.h.

int vtkTextProperty::Frame
protected

Definition at line 271 of file vtkTextProperty.h.

double vtkTextProperty::FrameColor[3]
protected

Definition at line 272 of file vtkTextProperty.h.

int vtkTextProperty::FrameWidth
protected

Definition at line 273 of file vtkTextProperty.h.

char* vtkTextProperty::FontFamilyAsString
protected

Definition at line 274 of file vtkTextProperty.h.

char* vtkTextProperty::FontFile
protected

Definition at line 275 of file vtkTextProperty.h.

int vtkTextProperty::FontSize
protected

Definition at line 276 of file vtkTextProperty.h.

int vtkTextProperty::Bold
protected

Definition at line 277 of file vtkTextProperty.h.

int vtkTextProperty::Italic
protected

Definition at line 278 of file vtkTextProperty.h.

int vtkTextProperty::Shadow
protected

Definition at line 279 of file vtkTextProperty.h.

int vtkTextProperty::ShadowOffset[2]
protected

Definition at line 280 of file vtkTextProperty.h.

int vtkTextProperty::Justification
protected

Definition at line 281 of file vtkTextProperty.h.

int vtkTextProperty::VerticalJustification
protected

Definition at line 282 of file vtkTextProperty.h.

int vtkTextProperty::UseTightBoundingBox
protected

Definition at line 283 of file vtkTextProperty.h.

double vtkTextProperty::Orientation
protected

Definition at line 284 of file vtkTextProperty.h.

double vtkTextProperty::LineOffset
protected

Definition at line 285 of file vtkTextProperty.h.

double vtkTextProperty::LineSpacing
protected

Definition at line 286 of file vtkTextProperty.h.


The documentation for this class was generated from the following file: