COLLADA 1.4 DOM: domPolygons::domP Class Reference

COLLADA

domPolygons::domP Class Reference

#include <domPolygons.h>

Inheritance diagram for domPolygons::domP:

Inheritance graph
[legend]
Collaboration diagram for domPolygons::domP:

Collaboration graph
[legend]
List of all members.

Detailed Description

Primitive element.All the indices form a polygon.

Each p element contains indices that reference into the source elements. These indices are position dependent and reference the contents of the source elements according to the order of the input elements. Here is an example of this: The first index references the first unique input element; the second index references the second unique input element, and so on. This is a simple form of compression that reduces the number of indices required in each p element. The input elements are uniquely identified by their idx attribute values. A complete sampling of a single vertex is completed by gathering one value from each input using the associated index in the p element.

Public Types

typedef daeSmartRef< domHdomHRef
typedef daeTArray< domHRefdomH_Array

Public Member Functions

domH_ArraygetH_array ()
 Gets the h element array.
const domH_ArraygetH_array () const
 Gets the h element array.
domListOfIntsgetValue ()
 Gets the _value array.
const domListOfIntsgetValue () const
 Gets the _value array.
void setValue (const domListOfInts &val)
 Sets the _value array.

Static Public Member Functions

static daeElementRef create (daeInt bytes)
 Creates an instance of this class and returns a daeElementRef referencing it.
static daeMetaElementregisterElement ()
 Creates a daeMetaElement object that describes this element in the meta object reflection framework.

Static Public Attributes

static daeMetaElement_Meta = NULL
 The daeMetaElement that describes this element in the meta object reflection framework.

Protected Member Functions

 domP ()
 Constructor.
virtual ~domP ()
 Destructor.
 domP (const domP &cpy)
 Copy Constructor.
virtual domPoperator= (const domP &cpy)
 Overloaded assignment operator.

Protected Attributes

domH_Array elemH_array
 Contour Separator.
domListOfInts _value
 The domListOfInts value of the text data of this element.

Classes

class  domH
 Contour Separator. More...

Member Function Documentation

daeElementRef domPolygons::domP::create daeInt  bytes  )  [static]
 

Creates an instance of this class and returns a daeElementRef referencing it.

Parameters:
bytes The size allocated for this instance.
Returns:
a daeElementRef referencing an instance of this object.

const domH_Array& domPolygons::domP::getH_array  )  const [inline]
 

Gets the h element array.

Returns:
Returns a constant reference to the array of h elements.

domH_Array& domPolygons::domP::getH_array  )  [inline]
 

Gets the h element array.

Returns:
Returns a reference to the array of h elements.

const domListOfInts& domPolygons::domP::getValue  )  const [inline]
 

Gets the _value array.

Returns:
Returns a constant domListOfInts reference of the _value array.

domListOfInts& domPolygons::domP::getValue  )  [inline]
 

Gets the _value array.

Returns:
Returns a domListOfInts reference of the _value array.

daeMetaElement * domPolygons::domP::registerElement  )  [static]
 

Creates a daeMetaElement object that describes this element in the meta object reflection framework.

If a daeMetaElement already exists it will return that instead of creating a new one.

Returns:
A daeMetaElement describing this COLLADA element.

void domPolygons::domP::setValue const domListOfInts val  )  [inline]
 

Sets the _value array.

Parameters:
at The new value for the _value array.


Member Data Documentation

domH_Array domPolygons::domP::elemH_array [protected]
 

Contour Separator.

Primitives after this each describe a hole. A hole in the polygon is indicated by an h element that acts as a contour separator. Any indices following the h element describe the hole, up to the next h element, or the close of the p element. Consequently, h elements are the last data inside a p element.

See also:
domH


The documentation for this class was generated from the following files:
  • C:/SVN_wf/COLLADA_DOM/include/1.3/dom/domPolygons.h
  • C:/SVN_wf/COLLADA_DOM/src/1.3/dom/domPolygons.cpp

©2005 Sony Computer Entertainment Inc.. All Rights Reserved.
Generated on Fri Feb 10 16:49:32 2006 for COLLADA 1.4 DOM by doxygen 1.4.3