COLLADA 1.4 DOM: domLookat Class Reference

COLLADA

domLookat Class Reference

#include <domLookat.h>

Inheritance diagram for domLookat:

Inheritance graph
[legend]
Collaboration diagram for domLookat:

Collaboration graph
[legend]
List of all members.

Detailed Description

The lookat element contains a position and orientation transformation suitable for aiming a camera.

Positioning and orienting a camera or object in the scene is often complicated when using a matrix. A lookat transform is an intuitive way to specify an eye position, interest point, and orientation. The lookat element contains a list of 9 floating-point values. As in the OpenGL® Utilities (GLU) implementation, these values are organized into three vectors as follows: * Eye position is given as Px, Py, Pz. * Interest point is given as Ix, Iy, Iz. * Up-axis direction is given as UPx, UPy, UPz. When computing the equivalent (viewing) matrix the interest point is mapped to the negative Z-axis and the eye position to the origin. The up-axis is mapped to the positive Y-axis of the viewing plane. The values are specified in local, object coordinates.

Public Member Functions

xsNCName getSid () const
 Gets the sid attribute.
void setSid (xsNCName atSid)
 Sets the sid attribute.
domFloat3x3getValue ()
 Gets the _value array.
const domFloat3x3getValue () const
 Gets the _value array.
void setValue (const domFloat3x3 &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

 domLookat ()
 Constructor.
virtual ~domLookat ()
 Destructor.
 domLookat (const domLookat &cpy)
 Copy Constructor.
virtual domLookatoperator= (const domLookat &cpy)
 Overloaded assignment operator.

Protected Attributes

xsNCName attrSid
 The sid attribute is a text string value containing the sub-identifier of this element.
domFloat3x3 _value
 The domFloat3x3 value of the text data of this element.

Member Function Documentation

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

xsNCName domLookat::getSid  )  const [inline]
 

Gets the sid attribute.

Returns:
Returns a xsNCName of the sid attribute.

const domFloat3x3& domLookat::getValue  )  const [inline]
 

Gets the _value array.

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

domFloat3x3& domLookat::getValue  )  [inline]
 

Gets the _value array.

Returns:
Returns a domFloat3x3 reference of the _value array.

daeMetaElement * domLookat::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 domLookat::setSid xsNCName  atSid  )  [inline]
 

Sets the sid attribute.

Parameters:
atSid The new value for the sid attribute.

void domLookat::setValue const domFloat3x3 val  )  [inline]
 

Sets the _value array.

Parameters:
atSid The new value for the _value array.


Member Data Documentation

xsNCName domLookat::attrSid [protected]
 

The sid attribute is a text string value containing the sub-identifier of this element.

This value must be unique within the scope of the parent element. Optional attribute.


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

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