libjbt

jbt_colour Class Reference

An attribute for defining colour on an BlobTree. More...

#include <attribute.h>

Inherits jbt_attribute.

Inherited by jbt_diffuse, jbt_rgbtexturemap and jbt_specular.

List of all members.

Public Members

Protected Members


Detailed Description

An attribute for defining colour on an BlobTree.

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.


Member Function Documentation

jbt_colour::jbt_colour( const jColour& _clr, jbt_attribute::Type _t )

Create a new colour attribute with the given _clr colour and the given type _t.

jbt_colour::jbt_colour( jbt_attribute::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().

jbt_colour::operator const jColour&() const

Convert an instance of the class to a jColour.

const jColour& jbt_colour::getColour() const

Return the colour for this class.

void jbt_colour::setColour( const jColour& _clr )

Set the value of the colour for this class.

void jbt_colour::reset()

Reimplemented from jbt_attribute.

void jbt_colour::add( jbt_attribute*, jFlt, jbt_attributenode* )

virtual const jColour& jbt_colour::colour( jbt_attributenode* ) [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.

jbt_attribute::Type jbt_colour::type() const [protected]

Reimplemented from jbt_attribute.


Member Data Documentation

jColour jbt_colour::clr [protected]


The documentation for this class was generated from the following file:
JSP / libjbt v0.1 mtigges@cpsc.ucalgary.ca