Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

StaticTextFont Class Reference

#include <staticTextFont.h>

Inheritance diagram for StaticTextFont:

TextFont TypedReferenceCount Namable TypedObject ReferenceCount List of all members.

Public Member Functions

virtual bool get_glyph (int character, const TextGlyph *&glyph)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Private Types

typedef pmap< int, PT(TextGlyphGlyphs )

Private Member Functions

virtual void write (ostream &out, int indent_level) const
void find_character_gsets (PandaNode *root, Geom *&ch, GeomPoint *&dot, const RenderState *&state, const RenderState *net_state)
void find_characters (PandaNode *root, const RenderState *net_state)
 PT (PandaNode) _font

Private Attributes

PUBLISHED __pad0__: StaticTextFont(PandaNode *font_def)
Glyphs _glyphs
float _font_height

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef pmap<int, PT(TextGlyph) StaticTextFont::Glyphs) [private]
 

Definition at line 59 of file staticTextFont.h.


Member Function Documentation

void StaticTextFont::find_character_gsets PandaNode root,
Geom *&  ch,
GeomPoint *&  dot,
const RenderState *&  state,
const RenderState net_state
[private]
 

Definition at line 187 of file staticTextFont.cxx.

References CPT, DCAST, dot(), Geom::get_class_type(), GeomNode::get_geom(), GeomNode::get_geom_state(), TypedObject::is_of_type(), and root.

Referenced by find_characters().

void StaticTextFont::find_characters PandaNode root,
const RenderState net_state
[private]
 

Definition at line 223 of file staticTextFont.cxx.

References _glyphs, TextFont::_line_height, TextFont::_space_advance, CPT, dot(), PointerToArray< unsigned short >::empty(), find_character_gsets(), NULL, p, root, and width.

virtual TypeHandle StaticTextFont::force_init_type void   )  [inline, virtual]
 

Reimplemented from TextFont.

Definition at line 76 of file staticTextFont.h.

References TextFont::get_class_type(), and TextFont::init_type().

TypeHandle StaticTextFont::get_class_type void   )  [inline, static]
 

Reimplemented from TextFont.

Definition at line 65 of file staticTextFont.h.

bool StaticTextFont::get_glyph int  character,
const TextGlyph *&  glyph
[virtual]
 

Implements TextFont.

Definition at line 165 of file staticTextFont.cxx.

References _glyphs, and NULL.

virtual TypeHandle StaticTextFont::get_type void   )  const [inline, virtual]
 

Reimplemented from TextFont.

Definition at line 73 of file staticTextFont.h.

References TextFont::get_class_type().

void StaticTextFont::init_type void   )  [inline, static]
 

Reimplemented from TextFont.

Definition at line 68 of file staticTextFont.h.

References TextFont::get_class_type(), TextFont::init_type(), and register_type().

Referenced by init_libtext().

StaticTextFont::PT PandaNode   )  [private]
 

void StaticTextFont::write ostream &  out,
int  indent_level
const [private, virtual]
 

Reimplemented from TextFont.

Definition at line 55 of file staticTextFont.cxx.

References _glyphs, Namable::get_name(), and indent().


Member Data Documentation

PUBLISHED StaticTextFont::__pad0__ [private]
 

Reimplemented from TextFont.

Definition at line 45 of file staticTextFont.h.

float StaticTextFont::_font_height [private]
 

Definition at line 61 of file staticTextFont.h.

Glyphs StaticTextFont::_glyphs [private]
 

Definition at line 60 of file staticTextFont.h.

Referenced by find_characters(), get_glyph(), and write().

TypeHandle StaticTextFont::_type_handle [static, private]
 

Reimplemented from TextFont.

Definition at line 28 of file staticTextFont.cxx.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:37 2003 for Panda by doxygen1.3