Panda3D
|
This is a specialization on Geom for containing a primitive intended to represent a TextGlyph. More...
#include <pandadoc.hpp>
Static Public Member Functions | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypedWritableReferenceCount | decodeFromBamStream (VectorUchar data, BamReader reader) |
Reads the bytes created by a previous call to encode_to_bam_stream(), and extracts and returns the single object on those bytes. | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
![]() | |
static TypeHandle | getClassType () |
Additional Inherited Members | |
![]() | |
enum | AnimationType { AT_none = 0 , AT_panda = 1 , AT_hardware = 2 } |
enum | Contents { C_other = 0 , C_point = 1 , C_clip_point = 2 , C_vector = 3 , C_texcoord = 4 , C_color = 5 , C_index = 6 , C_morph_delta = 7 , C_matrix = 8 , C_normal = 9 } |
enum | GeomRendering { GR_indexed_point = 1 , GR_indexed_other = 65536 , GR_indexed_bits = 65537 , GR_point = 2 , GR_point_uniform_size = 4 , GR_per_point_size = 8 , GR_point_perspective = 16 , GR_point_aspect_ratio = 32 , GR_point_scale = 64 , GR_point_rotate = 128 , GR_point_sprite = 256 , GR_point_sprite_tex_matrix = 512 , GR_point_bits = 1022 , GR_triangle_strip = 1024 , GR_triangle_fan = 2048 , GR_line_strip = 4096 , GR_composite_bits = 7168 , GR_strip_cut_index = 131072 , GR_flat_first_vertex = 8192 , GR_flat_last_vertex = 16384 , GR_shade_model_bits = 24576 , GR_render_mode_wireframe = 262144 , GR_render_mode_point = 524288 , GR_adjacency = 1048576 } |
enum | NumericType { NT_uint8 = 0 , NT_uint16 = 1 , NT_uint32 = 2 , NT_packed_dcba = 3 , NT_packed_dabc = 4 , NT_float32 = 5 , NT_float64 = 6 , NT_stdfloat = 7 , NT_int8 = 8 , NT_int16 = 9 , NT_int32 = 10 , NT_packed_ufloat = 11 } |
enum | PrimitiveType { PT_none = 0 , PT_polygons = 1 , PT_lines = 2 , PT_points = 3 , PT_patches = 4 } |
enum | ShadeModel { SM_uniform = 0 , SM_smooth = 1 , SM_flat_first_vertex = 2 , SM_flat_last_vertex = 3 } |
enum | UsageHint { UH_client = 0 , UH_stream = 1 , UH_dynamic = 2 , UH_static = 3 , UH_unspecified = 4 } |
![]() | |
__init__ (const GeomVertexData data) | |
addPrimitive (const GeomPrimitive primitive) | |
Inserts a new GeomPrimitive structure to the Geom object. | |
bool | checkValid () |
Verifies that the all of the primitives within the geom reference vertices that actually exist within the geom's GeomVertexData. | |
bool | checkValid (const GeomVertexData vertex_data) |
Verifies that the all of the primitives within the geom reference vertices that actually exist within the indicated GeomVertexData. | |
clearBounds () | |
Reverses the effect of a previous call to set_bounds(), and allows the bounding volume to be automatically computed once more based on the vertices. | |
clearCache () | |
Removes all of the previously-cached results of munge_geom(). | |
clearCacheStage (Thread current_thread) | |
Removes all of the previously-cached results of munge_geom(), at the current pipeline stage and upstream. | |
clearPrimitives () | |
Removes all the primitives from the Geom object (but keeps the same table of vertices). | |
bool | copyPrimitivesFrom (const Geom other) |
Copies the primitives from the indicated Geom into this one. | |
Geom | decompose () |
Decomposes all of the primitives within this Geom, returning the result. | |
decomposeInPlace () | |
Decomposes all of the primitives within this Geom, leaving the results in place. | |
Geom | doubleside () |
Doublesides all of the primitives within this Geom, returning the result. | |
doublesideInPlace () | |
Doublesides all of the primitives within this Geom, leaving the results in place. | |
const GeomVertexData | getAnimatedVertexData (bool force, Thread current_thread) |
Returns a GeomVertexData that represents the results of computing the vertex animation on the CPU for this Geom's vertex data. | |
const BoundingVolume | getBounds (Thread current_thread) |
Returns the bounding volume for the Geom. | |
BoundingVolume::BoundsType | getBoundsType () |
Returns the bounding volume type set with set_bounds_type(). | |
int | getGeomRendering () |
Returns the set of GeomRendering bits that represent the rendering properties required to properly render this Geom. | |
UpdateSeq | getModified (Thread current_thread) |
Returns a sequence number which is guaranteed to change at least every time any of the primitives in the Geom is modified, or the set of primitives is modified. | |
int | getNestedVertices (Thread current_thread) |
Returns the number of vertices rendered by all primitives within the Geom. | |
int | getNumBytes () |
Returns the number of bytes consumed by the geom and its primitives (but not including its vertex table). | |
int | getNumPrimitives () |
Returns the number of GeomPrimitive objects stored within the Geom, each of which represents a number of primitives of a particular type. | |
const GeomPrimitive | getPrimitive (int i) |
Returns a const pointer to the ith GeomPrimitive object stored within the Geom. | |
list | getPrimitives () |
GeomEnums::PrimitiveType | getPrimitiveType () |
Returns the fundamental primitive type that is common to all GeomPrimitives added within the Geom. | |
GeomEnums::ShadeModel | getShadeModel () |
Returns the shade model common to all of the individual GeomPrimitives that have been added to the geom. | |
GeomEnums::UsageHint | getUsageHint () |
Returns the minimum (i.e. | |
const GeomVertexData | getVertexData (Thread current_thread) |
Returns a const pointer to the GeomVertexData, for application code to directly examine (but not modify) the geom's underlying data. | |
insertPrimitive (int i, const GeomPrimitive primitive) | |
Inserts a new GeomPrimitive structure to the Geom object. | |
bool | isEmpty () |
Returns true if there appear to be no vertices to be rendered by this Geom, false if has some actual data. | |
bool | isPrepared (PreparedGraphicsObjects prepared_objects) |
Returns true if the geom has already been prepared or enqueued for preparation on the indicated GSG, false otherwise. | |
Geom | makeAdjacency () |
Returns a new Geom with each primitive converted into a corresponding version with adjacency information. | |
makeAdjacencyInPlace () | |
Replaces the GeomPrimitives within this Geom with corresponding versions with adjacency information. | |
Geom | makeCopy () |
Returns a newly-allocated Geom that is a shallow copy of this one. | |
Geom | makeLines () |
Returns a new Geom with lines at all the edges. | |
makeLinesInPlace () | |
Replaces the GeomPrimitives within this Geom with corresponding GeomLines, representing a wireframe of the primitives. | |
int | makeNonindexed (bool composite_only) |
Converts the geom from indexed to nonindexed by duplicating vertices as necessary. | |
Geom | makePatches () |
Returns a new Geom with each primitive converted into a patch. | |
makePatchesInPlace () | |
Replaces the GeomPrimitives within this Geom with corresponding GeomPatches. | |
Geom | makePoints () |
Returns a new Geom with points at all the vertices. | |
makePointsInPlace () | |
Replaces the GeomPrimitives within this Geom with corresponding GeomPoints. | |
markBoundsStale () | |
Marks the bounding volume of the Geom as stale so that it should be recomputed. | |
GeomPrimitive | modifyPrimitive (int i) |
Returns a modifiable pointer to the ith GeomPrimitive object stored within the Geom, so application code can directly manipulate the properties of this primitive. | |
GeomVertexData | modifyVertexData () |
Returns a modifiable pointer to the GeomVertexData, so that application code may directly maniuplate the geom's underlying data. | |
offsetVertices (const GeomVertexData data, int offset) | |
Replaces a Geom's vertex table with a new table, and simultaneously adds the indicated offset to all vertex references within the Geom's primitives. | |
operator new (int size) | |
Geom | operator= (const Geom copy) |
output (Ostream out) | |
prepare (PreparedGraphicsObjects prepared_objects) | |
Indicates that the geom should be enqueued to be prepared in the indicated prepared_objects at the beginning of the next frame. | |
GeomContext | prepareNow (PreparedGraphicsObjects prepared_objects, GraphicsStateGuardianBase gsg) |
Creates a context for the geom on the particular GSG, if it does not already exist. | |
bool | release (PreparedGraphicsObjects prepared_objects) |
Frees the geom context only on the indicated object, if it exists there. | |
int | releaseAll () |
Frees the context allocated on all objects for which the geom has been declared. | |
removePrimitive (int i) | |
Removes the ith primitive from the list. | |
bool | requestResident () |
Returns true if all the primitive arrays are currently resident in memory. | |
Geom | reverse () |
Reverses all of the primitives within this Geom, returning the result. | |
reverseInPlace () | |
Reverses all of the primitives within this Geom, leaving the results in place. | |
Geom | rotate () |
Rotates all of the primitives within this Geom, returning the result. | |
rotateInPlace () | |
Rotates all of the primitives within this Geom, leaving the results in place. | |
setBounds (const BoundingVolume volume) | |
Resets the bounding volume so that it is the indicated volume. | |
setBoundsType (BoundingVolume::BoundsType bounds_type) | |
Specifies the desired type of bounding volume that will be created for this Geom. | |
setPrimitive (int i, const GeomPrimitive primitive) | |
Replaces the ith GeomPrimitive object stored within the Geom with the new object. | |
setUsageHint (GeomEnums::UsageHint usage_hint) | |
Changes the UsageHint hint for all of the primitives on this Geom to the same value. | |
setVertexData (const GeomVertexData data) | |
Replaces the Geom's underlying vertex data table with a completely new table. | |
transformVertices (const LMatrix4 mat) | |
Applies the indicated transform to all of the vertices in the Geom. | |
Geom | unify (int max_indices, bool preserve_order) |
Unifies all of the primitives contained within this Geom into a single (or as few as possible, within the constraints of max_indices) primitive objects. | |
unifyInPlace (int max_indices, bool preserve_order) | |
Unifies all of the primitives contained within this Geom into a single (or as few as possible, within the constraints of max_indices) primitive objects. | |
write (Ostream out, int indent_level) | |
![]() | |
cacheRef () | |
bool | cacheUnref () |
![]() | |
cacheRef () | |
Explicitly increments the cache reference count and the normal reference count simultaneously. | |
bool | cacheUnref () |
Explicitly decrements the cache reference count and the normal reference count simultaneously. | |
int | getCacheRefCount () |
Returns the current reference count. | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
![]() | |
object | __reduce__ () |
object | __reduce_persist__ (object pickler) |
VectorUchar | encodeToBamStream () |
Converts the TypedWritable object into a single stream of data using a BamWriter, and returns that data as a bytes object. | |
bool | encodeToBamStream (VectorUchar data, BamWriter writer) |
Converts the TypedWritable object into a single stream of data using a BamWriter, and stores that data in the indicated string. | |
fillin (DatagramIterator scan, BamReader manager) | |
This internal function is intended to be called by each class's make_from_bam() method to read in all of the relevant data from the BamFile for the new object. | |
UpdateSeq | getBamModified () |
Returns the current bam_modified counter. | |
markBamModified () | |
Increments the bam_modified counter, so that this object will be invalidated and retransmitted on any open bam streams. | |
![]() | |
TypeHandle | getType () |
int | getTypeIndex () |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | isExactType (TypeHandle handle) |
Returns true if the current object is the indicated type exactly. | |
bool | isOfType (TypeHandle handle) |
Returns true if the current object is or derives from the indicated type. | |
![]() | |
int | getRefCount () |
Returns the current reference count. | |
ref () | |
Explicitly increments the reference count. | |
bool | testRefCountIntegrity () |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | testRefCountNonzero () |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
bool | unref () |
Explicitly decrements the reference count. | |
![]() | |
__init__ () | |
__init__ (const GeomEnums) | |
![]() | |
BoundingVolume::BoundsType | bounds_type |
Returns the bounding volume type set with set_bounds_type(). | |
int | geom_rendering |
Returns the set of GeomRendering bits that represent the rendering properties required to properly render this Geom. | |
UpdateSeq | modified |
Returns a sequence number which is guaranteed to change at least every time any of the primitives in the Geom is modified, or the set of primitives is modified. | |
int | num_bytes |
Returns the number of bytes consumed by the geom and its primitives (but not including its vertex table). | |
GeomEnums::PrimitiveType | primitive_type |
Returns the fundamental primitive type that is common to all GeomPrimitives added within the Geom. | |
ConstPointerToGeomPrimitive | primitives [] |
Returns a const pointer to the ith GeomPrimitive object stored within the Geom. | |
GeomEnums::ShadeModel | shade_model |
Returns the shade model common to all of the individual GeomPrimitives that have been added to the geom. | |
![]() | |
int | cache_ref_count |
Returns the current reference count. | |
![]() | |
TypeHandle | type |
Returns the TypeHandle representing this object's type. | |
![]() | |
int | ref_count |
The current reference count. | |
This is a specialization on Geom for containing a primitive intended to represent a TextGlyph.
Its sole purpose is to maintain the geom count on the glyph, so we can determine the actual usage count on a dynamic glyph (and thus know when it is safe to recycle the glyph).
|
static |