Panda3D
|
Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>. More...
#include "colladaPrimitive.h"
Public Member Functions | |
const string & | get_material () const |
Returns the name of this primitive's material, or the empty string if none was assigned. | |
PT (Geom) get_geom() const | |
unsigned int | write_data (GeomVertexData *vdata, int start_row, domP &p) |
Writes the vertex data to the GeomVertexData. | |
Static Public Member Functions | |
static ColladaPrimitive * | from_dom (domLines &lines) |
Returns the ColladaPrimitive object that represents the provided DOM input element. | |
static ColladaPrimitive * | from_dom (domLinestrips &linestrips) |
Returns the ColladaPrimitive object that represents the provided DOM input element. | |
static ColladaPrimitive * | from_dom (domPolygons &polygons) |
Returns the ColladaPrimitive object that represents the provided DOM input element. | |
static ColladaPrimitive * | from_dom (domPolylist &polylist) |
Returns the ColladaPrimitive object that represents the provided DOM input element. | |
static ColladaPrimitive * | from_dom (domTriangles &triangles) |
Returns the ColladaPrimitive object that represents the provided DOM input element. | |
static ColladaPrimitive * | from_dom (domTrifans &trifans) |
Returns the ColladaPrimitive object that represents the provided DOM input element. | |
static ColladaPrimitive * | from_dom (domTristrips &tristrips) |
Returns the ColladaPrimitive object that represents the provided DOM input element. |
Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>.
Definition at line 40 of file colladaPrimitive.h.
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domLines & | lines | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 69 of file colladaPrimitive.cxx.
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domLinestrips & | linestrips | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 96 of file colladaPrimitive.cxx.
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domPolygons & | polygons | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 120 of file colladaPrimitive.cxx.
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domPolylist & | polylist | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 152 of file colladaPrimitive.cxx.
References write_data().
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domTriangles & | triangles | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 193 of file colladaPrimitive.cxx.
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domTrifans & | trifans | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 220 of file colladaPrimitive.cxx.
ColladaPrimitive * ColladaPrimitive::from_dom | ( | domTristrips & | tristrips | ) | [static] |
Returns the ColladaPrimitive object that represents the provided DOM input element.
Definition at line 244 of file colladaPrimitive.cxx.
const string & ColladaPrimitive::get_material | ( | ) | const [inline] |
Returns the name of this primitive's material, or the empty string if none was assigned.
Definition at line 43 of file colladaPrimitive.I.
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().