coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

Function2D Class Reference

This class represents a two dimensional function v=f(x,y). More...

#include <ColorMap.h>

Inheritance diagram for Function2D

Inheritance graph
[legend]
Collaboration diagram for Function2D:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { PROPERTY_COLORMAP = 0x0100 }

Public Methods

 DECLARE_CLASS (Function2D,Object)
 Function2D ()
virtual ~Function2D ()
virtual void setProperty (int nProperty,const Variant &vValue)
virtual void getProperty (int nProperty,Variant &vValue)const
virtual void acceptOperation (Visitor *pVisitor)
virtual Color calculate (double x,double y)
 Calculates the color for the given values. More...


Protected Attributes

<ColorMapcolorMap

Detailed Description

This class represents a two dimensional function v=f(x,y).

The function calculates a value out of the two parameters x and y. The input and output values are in the intervall [0..1]. This class is abstract. The result of this function is then translated by a ColorMap object.

Author(s):
Stefan Michel
See also:
ColorMap2DFunction , ColorMap


Member Function Documentation

Color Function2D::calculate ( double x,
double y ) [virtual]
 

Calculates the color for the given values.

Parameters:
x   The value must be in the intervall of 0..1
y   The value must be in the intervall of 0..1
Returns:
The result is a color value generated by the function an fed through the specified ColorMap object.


The documentation for this class was generated from the following file:
  • ColorMap.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: