libjbt

jbt_scalar Class Reference

An attribute for defining a scalar value on an BlobTree. More...

#include <attribute.h>

Inherits jbt_attribute.

List of all members.

Public Members

Protected Members


Detailed Description

An attribute for defining a scalar value on an BlobTree.

Scalar values on implicit surfaces are necessary for placing specular highlight values on the surface, or coefficients for the illumination equation.


Member Function Documentation

jbt_scalar::jbt_scalar( jFlt _val, jbt_attribute::Type _t )

Create a new scalar attribute with the given value and the given type _t.

jbt_scalar::jbt_scalar( jbt_attribute::Type _t )

Create a new scalar attribute with the given type _t. Use this constructor to create an instance used to query a BlobTree by calling jbt_blobtree::attribute().

jbt_scalar::operator const jFlt&() const

Convert an instance of the class to a jFlt.

const jFlt& jbt_scalar::getValue() const

Return the value for this class.

void jbt_scalar::setValue( const jFlt& _val )

Set the value of the scalar for this class.

void jbt_scalar::reset()

Reimplemented from jbt_attribute.

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

virtual const jFlt& jbt_scalar::value( jbt_attributenode* ) [protected, virtual]

Computes the value, 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_ytexturemap.

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

Reimplemented from jbt_attribute.


Member Data Documentation

jFlt jbt_scalar::val [protected]


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