COLLADA 1.4 DOM: domLinestrips Class Reference

COLLADA

domLinestrips Class Reference

#include <domLinestrips.h>

Inheritance diagram for domLinestrips:

Inheritance graph
[legend]
Collaboration diagram for domLinestrips:

Collaboration graph
[legend]
List of all members.

Detailed Description

The linestrips element declares a binding of geometric primitives and vertex attributes for a mesh element.

The linestrips element provides the information needed to bind vertex attributes together and then organize those vertices into connected line-strips. The vertex information is supplied in distinct attribute arrays of the mesh element that are then indexed by the linestrips element. Each line-strip described by the mesh has an arbitrary number of vertices. Each line segment within the line-strip is formed from the current vertex and the preceding vertex. A linestrips element contains a sequence of p elements, where 'p' stands for primitive. Each p element describes the vertex attributes for an arbitrary number of connected line segments.

Public Types

typedef daeSmartRef< domPdomPRef
typedef daeTArray< domPRefdomP_Array

Public Member Functions

xsNonNegativeInteger getCount () const
 Gets the count attribute.
void setCount (xsNonNegativeInteger atCount)
 Sets the count attribute.
xsAnyURIgetMaterial ()
 Gets the material attribute.
const xsAnyURIgetMaterial () const
 Gets the material attribute.
void setMaterial (const xsAnyURI &atMaterial)
 Sets the material attribute.
domParam_ArraygetParam_array ()
 Gets the param element array.
const domParam_ArraygetParam_array () const
 Gets the param element array.
domInput_ArraygetInput_array ()
 Gets the input element array.
const domInput_ArraygetInput_array () const
 Gets the input element array.
domP_ArraygetP_array ()
 Gets the p element array.
const domP_ArraygetP_array () const
 Gets the p element 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

 domLinestrips ()
 Constructor.
virtual ~domLinestrips ()
 Destructor.
 domLinestrips (const domLinestrips &cpy)
 Copy Constructor.
virtual domLinestripsoperator= (const domLinestrips &cpy)
 Overloaded assignment operator.

Protected Attributes

xsNonNegativeInteger attrCount
 The count attribute indicates the number of linestip primitives.
xsAnyURI attrMaterial
 The material attribute refers to the name of a material element, using a URL expression, bound to the linestrip.
domParam_Array elemParam_array
 The param element may occur zero or more times.
domInput_Array elemInput_array
 The input element may occur zero or more times.
domP_Array elemP_array
 Primitive element.The first two indices form a line.Each subsequent index extends the line from the previous index.

Classes

class  domP
 Primitive element.The first two indices form a line.Each subsequent index extends the line from the previous index. More...

Member Function Documentation

daeElementRef domLinestrips::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.

xsNonNegativeInteger domLinestrips::getCount  )  const [inline]
 

Gets the count attribute.

Returns:
Returns a xsNonNegativeInteger of the count attribute.

const domInput_Array& domLinestrips::getInput_array  )  const [inline]
 

Gets the input element array.

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

domInput_Array& domLinestrips::getInput_array  )  [inline]
 

Gets the input element array.

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

const xsAnyURI& domLinestrips::getMaterial  )  const [inline]
 

Gets the material attribute.

Returns:
Returns a constant xsAnyURI reference of the material attribute.

xsAnyURI& domLinestrips::getMaterial  )  [inline]
 

Gets the material attribute.

Returns:
Returns a xsAnyURI reference of the material attribute.

const domP_Array& domLinestrips::getP_array  )  const [inline]
 

Gets the p element array.

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

domP_Array& domLinestrips::getP_array  )  [inline]
 

Gets the p element array.

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

const domParam_Array& domLinestrips::getParam_array  )  const [inline]
 

Gets the param element array.

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

domParam_Array& domLinestrips::getParam_array  )  [inline]
 

Gets the param element array.

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

daeMetaElement * domLinestrips::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 domLinestrips::setCount xsNonNegativeInteger  atCount  )  [inline]
 

Sets the count attribute.

Parameters:
atCount The new value for the count attribute.

void domLinestrips::setMaterial const xsAnyURI atMaterial  )  [inline]
 

Sets the material attribute.

Parameters:
atMaterial The new value for the material attribute.


Member Data Documentation

xsNonNegativeInteger domLinestrips::attrCount [protected]
 

The count attribute indicates the number of linestip primitives.

Required attribute.

xsAnyURI domLinestrips::attrMaterial [protected]
 

The material attribute refers to the name of a material element, using a URL expression, bound to the linestrip.

If the material attribute is not specified then the lighting and shading results are application defined. Optional attribute.

domInput_Array domLinestrips::elemInput_array [protected]
 

The input element may occur zero or more times.

See also:
domInput

domP_Array domLinestrips::elemP_array [protected]
 

Primitive element.The first two indices form a line.Each subsequent index extends the line from the previous index.

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.

See also:
domP

domParam_Array domLinestrips::elemParam_array [protected]
 

The param element may occur zero or more times.

See also:
domParam


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

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