Panda3D
Public Member Functions | Static Public Member Functions | List of all members
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

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...
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 Returns the current reference count. More...
 
WeakReferenceListget_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 ColladaPrimitivefrom_dom (domLines &lines)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
static ColladaPrimitivefrom_dom (domLinestrips &linestrips)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
static ColladaPrimitivefrom_dom (domPolygons &polygons)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
static ColladaPrimitivefrom_dom (domPolylist &polylist)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
static ColladaPrimitivefrom_dom (domTriangles &triangles)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
static ColladaPrimitivefrom_dom (domTrifans &trifans)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
static ColladaPrimitivefrom_dom (domTristrips &tristrips)
 Returns the ColladaPrimitive object that represents the provided DOM input element. More...
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 

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

◆ from_dom() [1/7]

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.

Referenced by ColladaLoader::build_graph(), and from_dom().

◆ from_dom() [2/7]

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.

References from_dom().

◆ from_dom() [3/7]

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.

References from_dom().

◆ from_dom() [4/7]

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 from_dom(), and write_data().

◆ from_dom() [5/7]

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.

References from_dom().

◆ from_dom() [6/7]

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.

References from_dom().

◆ from_dom() [7/7]

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.

References write_data().

◆ write_data()

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: