vtkTextureText Class Reference

#include <vtkTextureText.h>

Inheritance diagram for vtkTextureText:
vtkObject

List of all members.

Public Member Functions

void AddPositionOffset (vtkFloatingPointType x, vtkFloatingPointType y, vtkFloatingPointType z)
void AddPositionOffset (vtkFloatingPointType pos[3])
void ApplyBaselineFunction ()
void buildQuads ()
int CalculateNumberLines ()
void CalculateRangeBox (Vector3D< vtkFloatingPointType > *min, Vector3D< vtkFloatingPointType > *max, int start, int end)
int CreateTextureText ()
void DoPositionOffset ()
short GetDefaultAlignment ()
vtkTextureTextPolysGetPolyDataSource ()
void GetPositionOffset (vtkFloatingPointType pos[3])
void Modified ()
void PrintSelf (ostream &os, vtkIndent indent)
void SetBaselineFunction (vtkFloatingPointType *(*f)(vtkFloatingPointType *vec, void *args), void *args)
void SetBoxSize (vtkFloatingPointType w, vtkFloatingPointType h)
void SetDefaultAlignment (short alignment)
void SetDim (int d)
void SetPositionOffset (vtkFloatingPointType x, vtkFloatingPointType y, vtkFloatingPointType z)
void SetPositionOffset (vtkFloatingPointType pos[3])
void SetText (char *string)
void SetWrapped (bool wrpd)
void UpdateBaseline ()
void UpdateTexture ()
 vtkGetMacro (Error, int)
 vtkGetMacro (Initialized, int)
 vtkGetMacro (Alignment, short)
 vtkGetMacro (CharacterSpace, vtkFloatingPointType)
 vtkGetMacro (Indent, vtkFloatingPointType)
 vtkGetMacro (Leading, vtkFloatingPointType)
 vtkGetMacro (Wrapped, bool)
 vtkGetMacro (BoxHeight, vtkFloatingPointType)
 vtkGetMacro (BoxWidth, vtkFloatingPointType)
 vtkGetObjectMacro (FontParameters, vtkFontParameters)
 vtkGetObjectMacro (TextureFont, vtkTextureFont)
 vtkGetObjectMacro (TextureTextPolys, vtkTextureTextPolys)
 vtkGetObjectMacro (Follower, vtkFollower)
 vtkGetObjectMacro (Texture, vtkTexture)
 vtkGetStringMacro (Text)
 vtkGetStringMacro (CharacterArray)
 vtkSetMacro (Alignment, short)
 vtkSetMacro (CharacterSpace, vtkFloatingPointType)
 vtkSetMacro (Indent, vtkFloatingPointType)
 vtkSetMacro (Leading, vtkFloatingPointType)
 vtkSetMacro (BoxHeight, vtkFloatingPointType)
 vtkSetMacro (BoxWidth, vtkFloatingPointType)
 vtkSetObjectMacro (TextureFont, vtkTextureFont)
 vtkTypeRevisionMacro (vtkTextureText, vtkObject)
void WrappedOff ()
void WrappedOn ()

Static Public Member Functions

static vtkFloatingPointType GetAdvanceWidth (char *string, char *fontname, bool space)
static vtkTextureTextNew ()

Public Attributes

void * baselineArgs
vtkFloatingPointType *(* baselineFunc )(vtkFloatingPointType *vec, void *args)
std::vector< characterPosition * > mCharacterPositions
int mCharCount
Vector3D< vtkFloatingPointType > * mCharGsetCoords
Vector2D< vtkFloatingPointType > * mTexCoords

Protected Member Functions

void deleteAllChars ()
int getCharLine (unsigned int _start)
vtkFloatingPointType getLineLength (unsigned int _start)
vtkFloatingPointType getLinePos (unsigned int _start)
vtkFloatingPointType getLineWordCount (unsigned int _start, vtkFloatingPointType ind=0)
void setCharCoords (Vector3D< vtkFloatingPointType > *char_gset_coords, Vector2D< vtkFloatingPointType > *tex_coords, vtkTextureFont *textureFont, int the_char, Vector3D< vtkFloatingPointType > text_pos)
 vtkTextureText ()
 ~vtkTextureText ()

Protected Attributes

short Alignment
vtkFloatingPointType BoxHeight
vtkFloatingPointType BoxWidth
charCharacterArray
vtkFloatingPointType CharacterSpace
int Dim
int Error
vtkFollower * Follower
vtkFontParametersFontParameters
vtkFloatingPointType Indent
int Initialized
vtkFloatingPointType Leading
int mLineCount
Vector3D< vtkFloatingPointType > PositionOffset
charText
vtkFloatingPointType TextOpacity
vtkTexture * Texture
vtkTextureFontTextureFont
vtkTextureTextPolysTextureTextPolys
vtkFloatingPointType word_space_when_justified
bool Wrapped

Static Protected Attributes

static short sDefaultTextAlignment = VTK_TEXT_ALIGNMENT_FLUSH_LEFT

Constructor & Destructor Documentation

vtkTextureText::vtkTextureText (  )  [protected]
vtkTextureText::~vtkTextureText (  )  [protected]

Member Function Documentation

void vtkTextureText::AddPositionOffset ( vtkFloatingPointType  x,
vtkFloatingPointType  y,
vtkFloatingPointType  z 
)
void vtkTextureText::AddPositionOffset ( vtkFloatingPointType  pos[3]  ) 
void vtkTextureText::ApplyBaselineFunction (  ) 
void vtkTextureText::buildQuads (  ) 
int vtkTextureText::CalculateNumberLines (  ) 
void vtkTextureText::CalculateRangeBox ( Vector3D< vtkFloatingPointType > *  min,
Vector3D< vtkFloatingPointType > *  max,
int  start,
int  end 
)
int vtkTextureText::CreateTextureText (  ) 
void vtkTextureText::deleteAllChars (  )  [protected]
void vtkTextureText::DoPositionOffset (  ) 
static vtkFloatingPointType vtkTextureText::GetAdvanceWidth ( char string,
char fontname,
bool  space 
) [static]
int vtkTextureText::getCharLine ( unsigned int  _start  )  [protected]
short vtkTextureText::GetDefaultAlignment (  ) 

References sDefaultTextAlignment.

vtkFloatingPointType vtkTextureText::getLineLength ( unsigned int  _start  )  [protected]
vtkFloatingPointType vtkTextureText::getLinePos ( unsigned int  _start  )  [protected]
vtkFloatingPointType vtkTextureText::getLineWordCount ( unsigned int  _start,
vtkFloatingPointType  ind = 0 
) [protected]
vtkTextureTextPolys * vtkTextureText::GetPolyDataSource (  ) 

References TextureTextPolys.

void vtkTextureText::GetPositionOffset ( vtkFloatingPointType  pos[3]  ) 

References PositionOffset.

Referenced by AddPositionOffset().

void vtkTextureText::Modified (  ) 
static vtkTextureText* vtkTextureText::New (  )  [static]

Referenced by buildQuads(), and vtkTextureText().

void vtkTextureText::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void vtkTextureText::SetBaselineFunction ( vtkFloatingPointType *(*)(vtkFloatingPointType *vec, void *args)  f,
void *  args 
)
void vtkTextureText::SetBoxSize ( vtkFloatingPointType  w,
vtkFloatingPointType  h 
)

References BoxHeight, BoxWidth, and Modified().

void vtkTextureText::setCharCoords ( Vector3D< vtkFloatingPointType > *  char_gset_coords,
Vector2D< vtkFloatingPointType > *  tex_coords,
vtkTextureFont textureFont,
int  the_char,
Vector3D< vtkFloatingPointType >  text_pos 
) [protected]
void vtkTextureText::SetDefaultAlignment ( short  alignment  ) 

References sDefaultTextAlignment.

void vtkTextureText::SetDim ( int  d  ) 
void vtkTextureText::SetPositionOffset ( vtkFloatingPointType  x,
vtkFloatingPointType  y,
vtkFloatingPointType  z 
)
void vtkTextureText::SetPositionOffset ( vtkFloatingPointType  pos[3]  ) 
void vtkTextureText::SetText ( char string  ) 
void vtkTextureText::SetWrapped ( bool  wrpd  ) 

References WrappedOff(), and WrappedOn().

void vtkTextureText::UpdateBaseline (  ) 

References Modified().

void vtkTextureText::UpdateTexture (  ) 

References Texture, and TextureFont.

Referenced by buildQuads(), and Modified().

vtkTextureText::vtkGetMacro ( Error  ,
int   
)
vtkTextureText::vtkGetMacro ( Initialized  ,
int   
)
vtkTextureText::vtkGetMacro ( Alignment  ,
short   
)
vtkTextureText::vtkGetMacro ( CharacterSpace  ,
vtkFloatingPointType   
)
vtkTextureText::vtkGetMacro ( Indent  ,
vtkFloatingPointType   
)
vtkTextureText::vtkGetMacro ( Leading  ,
vtkFloatingPointType   
)
vtkTextureText::vtkGetMacro ( Wrapped  ,
bool   
)
vtkTextureText::vtkGetMacro ( BoxHeight  ,
vtkFloatingPointType   
)
vtkTextureText::vtkGetMacro ( BoxWidth  ,
vtkFloatingPointType   
)
vtkTextureText::vtkGetObjectMacro ( FontParameters  ,
vtkFontParameters   
)
vtkTextureText::vtkGetObjectMacro ( TextureFont  ,
vtkTextureFont   
)
vtkTextureText::vtkGetObjectMacro ( TextureTextPolys  ,
vtkTextureTextPolys   
)
vtkTextureText::vtkGetObjectMacro ( Follower  ,
vtkFollower   
)
vtkTextureText::vtkGetObjectMacro ( Texture  ,
vtkTexture   
)
vtkTextureText::vtkGetStringMacro ( Text   ) 
vtkTextureText::vtkGetStringMacro ( CharacterArray   ) 
vtkTextureText::vtkSetMacro ( Alignment  ,
short   
)
vtkTextureText::vtkSetMacro ( CharacterSpace  ,
vtkFloatingPointType   
)
vtkTextureText::vtkSetMacro ( Indent  ,
vtkFloatingPointType   
)
vtkTextureText::vtkSetMacro ( Leading  ,
vtkFloatingPointType   
)
vtkTextureText::vtkSetMacro ( BoxHeight  ,
vtkFloatingPointType   
)
vtkTextureText::vtkSetMacro ( BoxWidth  ,
vtkFloatingPointType   
)
vtkTextureText::vtkSetObjectMacro ( TextureFont  ,
vtkTextureFont   
)
vtkTextureText::vtkTypeRevisionMacro ( vtkTextureText  ,
vtkObject   
)
void vtkTextureText::WrappedOff (  ) 

References Modified(), and Wrapped.

Referenced by SetWrapped().

void vtkTextureText::WrappedOn (  ) 

References BoxWidth, Modified(), and Wrapped.

Referenced by vtkBIRNCard::CreateCard(), and SetWrapped().


Member Data Documentation

short vtkTextureText::Alignment [protected]
vtkFloatingPointType*(* vtkTextureText::baselineFunc)(vtkFloatingPointType *vec, void *args)
vtkFloatingPointType vtkTextureText::BoxHeight [protected]
vtkFloatingPointType vtkTextureText::BoxWidth [protected]

Referenced by Modified(), and SetText().

vtkFloatingPointType vtkTextureText::CharacterSpace [protected]
int vtkTextureText::Dim [protected]

Referenced by SetDim(), and vtkTextureText().

vtkFollower* vtkTextureText::Follower [protected]
vtkFloatingPointType vtkTextureText::Indent [protected]

Referenced by Modified(), and vtkTextureText().

vtkFloatingPointType vtkTextureText::Leading [protected]

Referenced by Modified(), and vtkTextureText().

Vector3D<vtkFloatingPointType>* vtkTextureText::mCharGsetCoords
Vector2D<vtkFloatingPointType>* vtkTextureText::mTexCoords
Vector3D<vtkFloatingPointType> vtkTextureText::PositionOffset [protected]
short vtkTextureText::sDefaultTextAlignment = VTK_TEXT_ALIGNMENT_FLUSH_LEFT [static, protected]
char* vtkTextureText::Text [protected]
vtkFloatingPointType vtkTextureText::TextOpacity [protected]

Referenced by buildQuads(), SetDim(), and vtkTextureText().

vtkTexture* vtkTextureText::Texture [protected]
vtkFloatingPointType vtkTextureText::word_space_when_justified [protected]

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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1