PhotonMapBehaviour Class Reference

#include <PhotonMapBehaviour.h>

Inheritance diagram for PhotonMapBehaviour:

SGAttribute ESGObject List of all members.

Public Types

enum  Behaviour { NOTHING = 0, MAKE_CAUSTICS, ACCEPT_CAUSTICS, ACCEPT_GLOBAL_PHOTONS }

Public Member Functions

 PhotonMapBehaviour (int b)
virtual void acceptVisitor (Visitor &visitor)
virtual SGAttributeclone () const
void addBehaviour (int b)
void setBehaviour (int b)
void setMakeCaustic (void)
void setAcceptCaustics (void)
void setAcceptGlobalPhotons (void)
void unsetBehaviour (int b)
void unsetMakeCaustic (void)
void unsetAcceptCaustics (void)
void unsetAcceptGlobalPhotons (void)
int getBehaviour (void) const
bool acceptsGlobalPhotons (void) const
bool acceptsCaustics (void) const
bool makesCaustics (void) const
virtual void __debug ()

Protected Member Functions

virtual void _duplicate_attributes (const SGAttribute &src)
 PhotonMapBehaviour ()

Protected Attributes

int _behaviour

Detailed Description

Definition at line 16 of file PhotonMapBehaviour.h.


Member Enumeration Documentation

enum Behaviour
 

Enumerator:
NOTHING 
MAKE_CAUSTICS 
ACCEPT_CAUSTICS 
ACCEPT_GLOBAL_PHOTONS 

Definition at line 18 of file PhotonMapBehaviour.h.


Constructor & Destructor Documentation

PhotonMapBehaviour  )  [inline, protected]
 

Definition at line 34 of file PhotonMapBehaviour.h.

PhotonMapBehaviour int  b  )  [inline]
 

Parameters:
b photon map behaviour

Definition at line 40 of file PhotonMapBehaviour.h.


Member Function Documentation

virtual void __debug void   )  [inline, virtual, inherited]
 

For debugging purposes only

Definition at line 49 of file SGAttribute.h.

virtual void _duplicate_attributes const SGAttribute src  )  [inline, protected, virtual]
 

Reimplemented from SGAttribute.

Definition at line 29 of file PhotonMapBehaviour.h.

References SGAttribute::_duplicate_attributes().

Referenced by PhotonMapBehaviour::clone().

bool acceptsCaustics void   )  const [inline]
 

Returns:
true if caustic photons are catched by surface

Definition at line 128 of file PhotonMapBehaviour.h.

bool acceptsGlobalPhotons void   )  const [inline]
 

Returns:
true if global photons are catched by surface

Definition at line 121 of file PhotonMapBehaviour.h.

virtual void acceptVisitor Visitor visitor  )  [inline, virtual]
 

Parameters:
visitor visitor

Implements SGAttribute.

Definition at line 45 of file PhotonMapBehaviour.h.

References Visitor::visitPhotonMapBehaviour().

void addBehaviour int  b  )  [inline]
 

Adds new behaviour to the existing

Parameters:
b photon map behaviour

Definition at line 63 of file PhotonMapBehaviour.h.

virtual SGAttribute* clone void   )  const [inline, virtual]
 

Returns:
duplicate

Implements SGAttribute.

Definition at line 52 of file PhotonMapBehaviour.h.

References PhotonMapBehaviour::_duplicate_attributes().

int getBehaviour void   )  const [inline]
 

Returns:
actual behaviour

Definition at line 116 of file PhotonMapBehaviour.h.

bool makesCaustics void   )  const [inline]
 

Returns:
true if surface produces caustics

Definition at line 135 of file PhotonMapBehaviour.h.

void setAcceptCaustics void   )  [inline]
 

Enable surface to catch caustic photons

Definition at line 80 of file PhotonMapBehaviour.h.

void setAcceptGlobalPhotons void   )  [inline]
 

Enable surface to catch global photons

Definition at line 85 of file PhotonMapBehaviour.h.

void setBehaviour int  b  )  [inline]
 

Replaces behaviour

Parameters:
b photon map behaviour

Definition at line 70 of file PhotonMapBehaviour.h.

void setMakeCaustic void   )  [inline]
 

Enable surface to generate caustics

Definition at line 75 of file PhotonMapBehaviour.h.

void unsetAcceptCaustics void   )  [inline]
 

Disable catching of caustic photons by the surface

Definition at line 104 of file PhotonMapBehaviour.h.

void unsetAcceptGlobalPhotons void   )  [inline]
 

Disable catching of global photons by the surface

Definition at line 109 of file PhotonMapBehaviour.h.

void unsetBehaviour int  b  )  [inline]
 

Disable concrete behaviour

Parameters:
b photon map behaviour

Definition at line 94 of file PhotonMapBehaviour.h.

void unsetMakeCaustic void   )  [inline]
 

Disable generation of caustics by the surface

Definition at line 99 of file PhotonMapBehaviour.h.


Member Data Documentation

int _behaviour [protected]
 

Definition at line 26 of file PhotonMapBehaviour.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 28 12:24:35 2006 for esg by  doxygen 1.4.6