ParamValue Class Reference

#include <paramlist.h>

List of all members.

Public Types

enum  Interp { INTERP_CONSTANT = 0, INTERP_PERPIECE = 1, INTERP_LINEAR = 2, INTERP_VERTEX = 3 }

Public Member Functions

 ParamValue (const ustring &_name, TypeDesc _type, int _nvalues, const void *_value, bool _copy=true)
 ParamValue (const std::string &_name, TypeDesc _type, int _nvalues, const void *_value, bool _copy=true)
 ParamValue (const char *_name, TypeDesc _type, int _nvalues, const void *_value, bool _copy=true)
 ParamValue (const ParamValue &p, bool _copy=true)
void init (ustring _name, TypeDesc _type, int _nvalues, const void *_value, bool _copy=true)
void init (std::string _name, TypeDesc _type, int _nvalues, const void *_value, bool _copy=true)
const ParamValueoperator= (const ParamValue &p)
const ustringname () const
TypeDesc type () const
int nvalues () const
const void * data () const
int datasize () const

Friends

void swap (ParamValue &a, ParamValue &b)

Detailed Description

ParamValue holds a parameter and a pointer to its value(s)

Nomenclature: if you have an array of 4 colors for each of 15 points...


Member Enumeration Documentation

Interpolation types

Enumerator:
INTERP_CONSTANT 

Constant for all pieces/faces.

INTERP_PERPIECE 

Piecewise constant per piece/face.

INTERP_LINEAR 

Linearly interpolated across each piece/face.

INTERP_VERTEX 

Interpolated like vertices.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Oct 27 06:30:40 2009 for OpenImageIO by  doxygen 1.6.1