Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>. More...
#include "colladaPrimitive.h"
Public Member Functions | |
const string & | get_material () const |
PT (Geom) get_geom() const | |
unsigned int | write_data (GeomVertexData *vdata, int start_row, domP &p) |
Writes the vertex data to the GeomVertexData. More... | |
![]() | |
int | get_ref_count () const |
Returns the current reference count. More... | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. More... | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More... | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More... | |
void | ref () const |
Explicitly increments the reference count. More... | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
virtual bool | unref () const |
Explicitly decrements the reference count. More... | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. More... | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. More... | |
Static Public Member Functions | |
static ColladaPrimitive * | from_dom (domLines &lines) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
static ColladaPrimitive * | from_dom (domLinestrips &linestrips) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
static ColladaPrimitive * | from_dom (domPolygons &polygons) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
static ColladaPrimitive * | from_dom (domPolylist &polylist) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
static ColladaPrimitive * | from_dom (domTriangles &triangles) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
static ColladaPrimitive * | from_dom (domTrifans &trifans) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
static ColladaPrimitive * | from_dom (domTristrips &tristrips) |
Returns the ColladaPrimitive object that represents the provided DOM input element. More... | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>.
Definition at line 40 of file colladaPrimitive.h.
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 69 of file colladaPrimitive.cxx.
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 96 of file colladaPrimitive.cxx.
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 120 of file colladaPrimitive.cxx.
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 152 of file colladaPrimitive.cxx.
References write_data().
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 193 of file colladaPrimitive.cxx.
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 220 of file colladaPrimitive.cxx.
|
static |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 244 of file colladaPrimitive.cxx.
unsigned int ColladaPrimitive::write_data | ( | GeomVertexData * | vdata, |
int | start_row, | ||
domP & | p | ||
) |
Writes the vertex data to the GeomVertexData.
Returns the number of rows written.
Definition at line 268 of file colladaPrimitive.cxx.
Referenced by from_dom().