An attribute for defining colour on an BlobTree. More...
#include <attribute.h>
Inherits jbt_attribute.
Inherited by jbt_diffuse, jbt_rgbtexturemap and jbt_specular.
By far the most common attribute. This class can be used to associate an RGB triple with points on an implicit surface. Use the sub-classes jbt_diffuse and jbt_specular, or just pass the appropriate identifier yourself.
Create a new colour attribute with the given _clr colour and the given type _t.
Create a new colour attribute with the given type _t. Use this constructor to create an instance used to query a BlobTree by calling jbt_blobtree::attribute().
Convert an instance of the class to a jColour.
Return the colour for this class.
Set the value of the colour for this class.
Reimplemented from jbt_attribute.
[protected, virtual]Computes the colour, sets the data and returns the value. This is a stub function in this class because it should only be needed for special purpose colour sub-classes, like jbt_rgbtexturemap.
Reimplemented in jbt_rgbtexturemap.
[protected]
Reimplemented from jbt_attribute.
[protected]