Cluster Class Reference
#include <Cluster.h>
Inheritance diagram for Cluster:
Collaboration diagram for Cluster:
List of all members.
Public Members
Draw the node at this level.
Draw the node by drawing corresponding leaves.
Is this a leaf element in the solution?
Call given method on all children.
update min/max to include element.
Total area of the element.
find projected area of the cluster in the direction of n.
find max projected area of the cluster in the direction of n.
Centre of element, used mainly for vis. stuff.
Average reflectance of element.
Find coeffs such that coeffs * src_radiosity =
irradiance at p[], n[]. More...
Use EltSampleTransport to find coeffs s.t. More...
Use basis functions to colour underlying mesh/model
for display or saving mesh.
Use basis functions to colour underlying mesh/model
for display or saving mesh.
Returns error of a push/pull traversal.
Add received (gathered) energy R to current irradiance B.
Push accumulated irradiance to children.
Pull up radiosity from children.
Prepare for a push/pull: clear B.
Get ready for a gather: clear R.
transforms irradiance in B to radiosity.
initialise radiosity.
Create links from children to 'other'.
return 16 points suitable for vis. sampling.
radiosity coefficients.
radiosity coefficients.
Static Public Members
Detailed Description
Definition at line 17 of file Cluster.h.
Constructor & Destructor Documentation
Cluster::Cluster ()
Cluster::~Cluster () [virtual]
Member Function Documentation
Void Cluster::Add () [virtual]
Add received (gathered) energy R to current irradiance B.
Reimplemented from HRElem.
Definition at line 307 of file Cluster.cc.
Void Cluster::AddIrradiance (const Colour & srcR, const Vector & r) [virtual]
Void Cluster::ApplyToChildren (Void(HRElem::* method)(Void *), Void * ref = 0) [virtual]
Call given method on all children.
Reimplemented from HRElem.
Definition at line 454 of file Cluster.cc.
Colour * Cluster::B_Coeffs () [inline, virtual]
radiosity coefficients.
Reimplemented from HRElem.
Definition at line 78 of file Cluster.h.
Void Cluster::CalcLeafRadiosity () [virtual]
transforms irradiance in B to radiosity.
Reimplemented from HRElem.
Definition at line 364 of file Cluster.cc.
Void Cluster::ClearB () [virtual]
Prepare for a push/pull: clear B.
Reimplemented from HRElem.
Definition at line 358 of file Cluster.cc.
Void Cluster::ClearR () [virtual]
Get ready for a gather: clear R.
Reimplemented from HRElem.
Definition at line 389 of file Cluster.cc.
Void Cluster::CreateBounds ()
Cluster * Cluster::CreateHierarchy ()
Void Cluster::DistributeColours () [virtual]
Use basis functions to colour underlying mesh/model
for display or saving mesh.
Reimplemented from HRElem.
Definition at line 713 of file Cluster.cc.
Void Cluster::DistributeColoursBest (ShadeInfo & shadeInfo) [virtual]
Use basis functions to colour underlying mesh/model
for display or saving mesh.
Reimplemented from HRElem.
Definition at line 725 of file Cluster.cc.
Void Cluster::DrawLeafElem (Renderer & r) [virtual]
Draw the node by drawing corresponding leaves.
Reimplemented from HRElem.
Definition at line 265 of file Cluster.cc.
Void Cluster::DrawNodeElem (Renderer & r) [virtual]
Draw the node at this level.
Reimplemented from HRElem.
Definition at line 255 of file Cluster.cc.
Void Cluster::DrawPatches (Renderer & r)
GCLReal Cluster::EltArea () [inline, virtual]
Total area of the element.
Reimplemented from HRElem.
Definition at line 42 of file Cluster.h.
GCLReal Cluster::EltCalcTransport (HRElem * from, Matd & coeffs) [virtual]
Use EltSampleTransport to find coeffs s.t.
to->R_Coeffs += from->B_Coeffs * coeffs.
Returns an error estimate.
Reimplemented from HRElem.
Definition at line 545 of file Cluster.cc.
Point Cluster::EltCentre () [inline, virtual]
Centre of element, used mainly for vis. stuff.
Reimplemented from HRElem.
Definition at line 46 of file Cluster.h.
Colour Cluster::EltE () [inline, virtual]
Void Cluster::EltGetSamples (Int numSamples, Point p[]) [virtual]
GCLReal Cluster::EltMaxProjArea (const Vector & n) [virtual]
find max projected area of the cluster in the direction of n.
Reimplemented from HRElem.
Definition at line 682 of file Cluster.cc.
GCLReal Cluster::EltProjArea (const Vector & n) [virtual]
find projected area of the cluster in the direction of n.
Reimplemented from HRElem.
Definition at line 648 of file Cluster.cc.
Colour Cluster::EltRho () [inline, virtual]
Average reflectance of element.
Reimplemented from HRElem.
Definition at line 50 of file Cluster.h.
Void Cluster::EltSampleTransport (Int numSamples, Point p[], Vector n[], Matd & coeffs) [virtual]
Find coeffs such that coeffs * src_radiosity =
irradiance at p[], n[].
If n = 0, calculate
isotropic point irradiance at each point.
Reimplemented from HRElem.
Definition at line 470 of file Cluster.cc.
Void Cluster::EltSetVisPoints (HRElem * to, Point p[]) [virtual]
return 16 points suitable for vis. sampling.
Reimplemented from HRElem.
Void Cluster::EltUpdateBounds (Point & min, Point & max) [inline, virtual]
update min/max to include element.
Reimplemented from HRElem.
Definition at line 40 of file Cluster.h.
GCLReal Cluster::Error () [virtual]
Returns error of a push/pull traversal.
Reimplemented from HRElem.
Definition at line 384 of file Cluster.cc.
Colour Cluster::GetPower (const Vector & m) [virtual]
Void Cluster::InitRad () [virtual]
Bool Cluster::IsLeaf () [virtual]
Is this a leaf element in the solution?
Reimplemented from HRElem.
Definition at line 449 of file Cluster.cc.
Void Cluster::MakeChildLinks (HRElem * other, HRLink * link, Int which, Int levels) [virtual]
Create links from children to 'other'.
Reimplemented from HRElem.
Definition at line 397 of file Cluster.cc.
Int Cluster::NumCoeffs () [inline, virtual]
Void Cluster::Print (ostream & s)
Void Cluster::Pull () [virtual]
Pull up radiosity from children.
Reimplemented from HRElem.
Definition at line 331 of file Cluster.cc.
Void Cluster::Push () [virtual]
Push accumulated irradiance to children.
Reimplemented from HRElem.
Definition at line 314 of file Cluster.cc.
Void Cluster::PushElems ()
Colour * Cluster::R_Coeffs () [inline, virtual]
radiosity coefficients.
Reimplemented from HRElem.
Definition at line 79 of file Cluster.h.
Void Cluster::Reset () [virtual]
Member Data Documentation
Colour Cluster::B
Colour Cluster::E
Colour Cluster::R
Point Cluster::centre
Cluster * Cluster::child[8]
GCLReal Cluster::clusterArea
GCLReal Cluster::clusterVol
Colour Cluster::lastB [static]
Int Cluster::level
Point Cluster::max
Colour Cluster::maxRho
Point Cluster::min
The documentation for this class was generated from the following files:
Generated at Sat Aug 5 00:26:55 2000 for Radiator by
doxygen 1.1.0 written by Dimitri van Heesch,
© 1997-2000