ork::ValueMatrix< U, T, C, R, V > Class Template Reference
[render]

A Value holding a matrix value. More...

#include <Value.h>

Inheritance diagram for ork::ValueMatrix< U, T, C, R, V >:
ork::Value ork::Object

List of all members.

Public Member Functions

 ValueMatrix (const string &name)
 Creates an uninitialized ValueMatrix.
 ValueMatrix (const string &name, const T *value)
 Creates a ValueMatrix.
virtual ~ValueMatrix ()
 Deletes this ValueMatrix.
virtual UniformType getType () const
 Returns the type of this value.
const T * get () const
 Returns the current value of this uniform.
void set (const T *value)
 Sets the value of this uniform.

Protected Attributes

value [C *R]
 The current value of this ValueMatrix.

Detailed Description

template<UniformType U, class T, int C, int R, const char * V>
class ork::ValueMatrix< U, T, C, R, V >

A Value holding a matrix value.


Constructor & Destructor Documentation

template<UniformType U, class T, int C, int R, const char * V>
ork::ValueMatrix< U, T, C, R, V >::ValueMatrix ( const string &  name  )  [inline]

Creates an uninitialized ValueMatrix.

template<UniformType U, class T, int C, int R, const char * V>
ork::ValueMatrix< U, T, C, R, V >::ValueMatrix ( const string &  name,
const T *  value 
) [inline]

Creates a ValueMatrix.

template<UniformType U, class T, int C, int R, const char * V>
virtual ork::ValueMatrix< U, T, C, R, V >::~ValueMatrix (  )  [inline, virtual]

Deletes this ValueMatrix.


Member Function Documentation

template<UniformType U, class T, int C, int R, const char * V>
const T* ork::ValueMatrix< U, T, C, R, V >::get (  )  const [inline]

Returns the current value of this uniform.

Returns:
the matrix coefficients in row major order (i.e. first row, second row, etc).
template<UniformType U, class T, int C, int R, const char * V>
virtual UniformType ork::ValueMatrix< U, T, C, R, V >::getType (  )  const [inline, virtual]

Returns the type of this value.

Implements ork::Value.

template<UniformType U, class T, int C, int R, const char * V>
void ork::ValueMatrix< U, T, C, R, V >::set ( const T *  value  )  [inline]

Sets the value of this uniform.

Parameters:
value the matrix coefficients in row major order (i.e. first row, second row, etc).

Member Data Documentation

template<UniformType U, class T, int C, int R, const char * V>
T ork::ValueMatrix< U, T, C, R, V >::value[C *R] [protected]

The current value of this ValueMatrix.

The matrix coefficients are stored in row major order.


Generated on Mon Oct 18 09:36:10 2010 for ork by  doxygen 1.6.1