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

Texture Class Reference

This class is the basis class for all texture classes. More...

#include <Texture.h>

Inheritance diagram for Texture

Inheritance graph
[legend]
Collaboration diagram for Texture:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { PROPERTY_TRANSFORM = 0x0100, PROPERTY_NORMAL = 0x0101 }

Public Methods

 DECLARE_ABSTRACT_CLASS (Texture,Object)
 Texture ()
virtual ~Texture ()
virtual void setProperty (int nProperty,const Variant &vValue)
virtual void getProperty (int nProperty,Variant &vValue)const
virtual void acceptOperation (Visitor *pVisitor)
void setNormal (Normal *new_normal)
NormalgetNormal ()
virtual Color getColor (const Vector3 &point)
 this function returns the color of the object at a given point. More...

virtual FinishgetFinish ()
 this function returns the current finish. More...

void setTransform (Transformation *pTransform)
 sets a new Transformation object. More...


Protected Attributes

<Transformation> transform
<Normalnormal

Detailed Description

This class is the basis class for all texture classes.

A texture represents the material a object is made of. In the raytracer this combines the properties which color the object has at a given point and how it reflects or refracts light beams.


Member Function Documentation

Color Texture::getColor ( const Vector3 & point ) [virtual]
 

this function returns the color of the object at a given point.

The raytracer calls this function with the point where the eye-beam intersects the object.

Parameters:
point   point in the object space for which the color to be calculated

Finish * Texture::getFinish ( ) [inline, virtual]
 

this function returns the current finish.

The returned object must not be deleted.

void Texture::setTransform ( Transformation * pTransform )
 

sets a new Transformation object.

Parameters:
pTransform   a instanciated Transformation object.


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

counter

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