14#ifndef GEOMTEXTGLYPH_H
15#define GEOMTEXTGLYPH_H
27class EXPCL_PANDA_TEXT GeomTextGlyph :
public Geom {
31 GeomTextGlyph(
const GeomTextGlyph ©);
32 GeomTextGlyph(
const Geom ©,
const TextGlyph *glyph);
34 virtual ~GeomTextGlyph();
35 ALLOC_DELETED_CHAIN(GeomTextGlyph);
41 virtual void output(std::ostream &out)
const;
42 virtual void write(std::ostream &out,
int indent_level = 0)
const;
46 friend class TextAssembler;
61 static void init_type() {
64 Geom::get_class_type());
67 return get_class_type();
69 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
An instance of this class is passed to the Factory when requesting it to do its business and construc...
void add_glyph(const TextGlyph *glyph)
Adds a glyph to the list of glyphs referenced by this Geom.
static TypedWritable * make_GeomTextGlyph(const FactoryParams ¶ms)
Factory method to generate a GeomTextGlyph object.
void count_geom(const Geom *other)
Records the reference count of the other Geom within this Geom, as if the primitives were copied in v...
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
virtual bool copy_primitives_from(const Geom *other)
Copies the primitives from the indicated Geom into this one.
void operator=(const Geom ©)
The copy assignment operator is not pipeline-safe.
static void register_with_read_factory()
Tells the BamReader how to create objects of type Geom.
virtual Geom * make_copy() const
Returns a newly-allocated Geom that is a shallow copy of this one.
A representation of a single glyph (character) from a font.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.