#include <shader_map.h>
Public Member Functions | |
virtual void | release () const =0 |
deletes the object. | |
virtual Map_status | set_declaration (const Map_declaration &declaration)=0 |
sets the declaration of the element. | |
virtual Map_status | get_position (float *position) const =0 |
retrieves the position of the element. | |
virtual Map_status | get_position (miVector &position) const =0 |
retrieves the position of the element, 3D case. | |
virtual Map_status | get (const Map_field_id field_id, float &value) const =0 |
retrieves the value of the desired field. | |
virtual Map_status | get (const Map_field_id field_id, int &value) const =0 |
retrieves the value of the desired field. | |
virtual Map_status | get (const Map_field_id field_id, miVector &value) const =0 |
retrieves the value of the desired field. | |
virtual Map_status | get (const Map_field_id field_id, miColor &value) const =0 |
retrieves the value of the desired field. | |
virtual Map_status | get (const Map_field_id field_id, miMatrix *value) const =0 |
retrieves the value of the desired field. NOTE: 'value' is a pointer to a miMatrix. | |
virtual Map_status | get (const Map_field_id field_id, float *value) const =0 |
retrieves the value of the desired field. | |
virtual Map_status | get (const Map_field_id field_id, int *value) const =0 |
retrieves the value of the desired field. | |
virtual Map_status | set_position (const float *position)=0 |
sets the position of the element. | |
virtual Map_status | set_position (const miVector &position)=0 |
sets the position of the element, 3D case. | |
virtual Map_status | set (const Map_field_id field_id, const float value)=0 |
sets the value of the desired field. | |
virtual Map_status | set (const Map_field_id field_id, const int value)=0 |
sets the value of the desired field. | |
virtual Map_status | set (const Map_field_id field_id, const miVector &value)=0 |
sets the value of the desired field. | |
virtual Map_status | set (const Map_field_id field_id, const miColor &value)=0 |
sets the value of the desired field. | |
virtual Map_status | set (const Map_field_id field_id, const miMatrix *value)=0 |
sets the value of the desired field. NOTE: 'value' is a pointer to a miMatrix. | |
virtual Map_status | set (const Map_field_id field_id, const float *value)=0 |
sets the value of the desired field. | |
virtual Map_status | set (const Map_field_id field_id, const int *value)=0 |
sets the value of the desired field. |
The Map_element_base class is an interface class that represents a map element, which is an isolated and independent piece of data, made up by a declaration and a set of values for its fields. It provides ways to get/set the values of the fields. There is a wrapper class which provides a convenient way to manage this class, which is the Map_element class. For example, a shader might create and use a map element in the following way:
// creates a map element which has the specified declaration
Map_element element (declaration);
miVector pos = ...;
element->set_position (pos);
miColor color = ...;
element->set (color_field_id, color);
...
|
retrieves the value of the desired field.
|
|
retrieves the value of the desired field.
|
|
retrieves the value of the desired field. NOTE: 'value' is a pointer to a miMatrix.
|
|
retrieves the value of the desired field.
|
|
retrieves the value of the desired field.
|
|
retrieves the value of the desired field.
|
|
retrieves the value of the desired field.
|
|
retrieves the position of the element, 3D case.
|
|
retrieves the position of the element.
|
|
sets the value of the desired field.
|
|
sets the value of the desired field.
|
|
sets the value of the desired field. NOTE: 'value' is a pointer to a miMatrix.
|
|
sets the value of the desired field.
|
|
sets the value of the desired field.
|
|
sets the value of the desired field.
|
|
sets the value of the desired field.
|
|
sets the declaration of the element.
|
|
sets the position of the element, 3D case.
|
|
sets the position of the element.
|
Copyright © 1986-2009 by
mental images GmbH