Panda3D
Public Member Functions | Static Public Member Functions
ColladaPrimitive Class Reference

Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>. More...

#include "colladaPrimitive.h"

Inheritance diagram for ColladaPrimitive:
ReferenceCount MemoryBase

List of all members.

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 ColladaPrimitivefrom_dom (domLines &lines)
 Returns the ColladaPrimitive object that represents the provided DOM input element.
static ColladaPrimitivefrom_dom (domLinestrips &linestrips)
 Returns the ColladaPrimitive object that represents the provided DOM input element.
static ColladaPrimitivefrom_dom (domPolygons &polygons)
 Returns the ColladaPrimitive object that represents the provided DOM input element.
static ColladaPrimitivefrom_dom (domPolylist &polylist)
 Returns the ColladaPrimitive object that represents the provided DOM input element.
static ColladaPrimitivefrom_dom (domTriangles &triangles)
 Returns the ColladaPrimitive object that represents the provided DOM input element.
static ColladaPrimitivefrom_dom (domTrifans &trifans)
 Returns the ColladaPrimitive object that represents the provided DOM input element.
static ColladaPrimitivefrom_dom (domTristrips &tristrips)
 Returns the ColladaPrimitive object that represents the provided DOM input element.

Detailed Description

Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>.

Definition at line 40 of file colladaPrimitive.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations