Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

HRMeshElem Class Reference

#include <HRMesh.h>

Inheritance diagram for HRMeshElem:

HierElem HRElem NbRadElem RadElem HaarElem

Collaboration diagram for HRMeshElem:

List of all members.


Public Members

 HRMeshElem ()
Void Reset ()
Void Print (ostream &s)
Void CreatePatches (PatchList &patches)
Split Elem into patches s.t. area < maxPatchSize.

Bool IsLeaf ()
Is this a leaf element in the solution?

Void ApplyToChildren (Void (HRElem::*method)(Void*), Void *ref = 0)
Call given method on all children.

Void MakeChildLinks (HRElem *other, HRLink *link, Int which, Int levels)
Create links from children to 'other'.

HRMeshElem* Child (Int i)
Void Draw (Renderer &r)
Void DrawNodeElem (Renderer &r)
Draw the node at this level.

Void DrawLeafElem (Renderer &r)
Draw the node by drawing corresponding leaves.

Void DrawMatrixRec (Void *dmi)
Void EltUpdateBounds (Point &min, Point &max)
update min/max to include element.

GCLReal EltArea ()
Total area of the element.

GCLReal EltProjArea (const Vector &v)
and cluster stuff.

Point EltCentre ()
Centre of element, used mainly for vis. stuff.

Colour EltE ()
Colour EltRho ()
Average reflectance of element.

Void EltSetVisPoints (HRElem *to, Point p[])
return 16 points suitable for vis. sampling.

Void EltGetSamples (Int numSamples, Point pts[])
Void SampleKernel ( const GCLMat &fromU, HRMeshElem *to, const GCLMat &toU, GCLMat &samples, GCLReal *visPtr )
Find form factors between points fromU on source and points toU on the destination (to).

Void SubToSubFormFactor ( Int nFrom, HRMeshElem *to, Int nTo, GCLMat &samples, GCLReal *visPtr )
Form factors between nFrom x nFrom panes on this patch and nTo x nTo panes on 'to'.

Void EstSubFormFactor ( Int nFrom, HRMeshElem *to, const GCLMat &toU, GCLMat &samples, GCLReal *visPtr )
Form factors between nFrom x nFrom panes on this patch and the coordinates toU on 'to'.

Void DrawSampledLeaf (Renderer &r, Int n)
Utility routine to draw leaf patches.

Void HRCorrectLeaves ()
Call CorrectLeaves on leaf elements.

Void SetHighlight (Int h)


Detailed Description

Definition at line 22 of file HRMesh.h.


Constructor & Destructor Documentation

HRMeshElem::HRMeshElem ()

Definition at line 27 of file HRMesh.cc.


Member Function Documentation

Void HRMeshElem::ApplyToChildren (Void(HRElem::* method)(Void *), Void * ref = 0) [virtual]

Call given method on all children.

Reimplemented from HRElem.

Definition at line 39 of file HRMesh.cc.

HRMeshElem * HRMeshElem::Child (Int i) [inline]

Reimplemented in HaarElem.

Definition at line 38 of file HRMesh.h.

Void HRMeshElem::CreatePatches (PatchList & patches) [virtual]

Split Elem into patches s.t. area < maxPatchSize.

Reimplemented from RadElem.

Definition at line 62 of file HRMesh.cc.

Void HRMeshElem::Draw (Renderer & r) [virtual]

Reimplemented from RadElem.

Definition at line 471 of file HRMesh.cc.

Void HRMeshElem::DrawLeafElem (Renderer & r) [virtual]

Draw the node by drawing corresponding leaves.

Reimplemented from HRElem.

Definition at line 656 of file HRMesh.cc.

Void HRMeshElem::DrawMatrixRec (Void * dmi) [virtual]

Reimplemented from HRElem.

Definition at line 565 of file HRMesh.cc.

Void HRMeshElem::DrawNodeElem (Renderer & r) [virtual]

Draw the node at this level.

Reimplemented from HRElem.

Definition at line 635 of file HRMesh.cc.

Void HRMeshElem::DrawSampledLeaf (Renderer & r, Int n)

Utility routine to draw leaf patches.

Definition at line 477 of file HRMesh.cc.

GCLReal HRMeshElem::EltArea () [inline, virtual]

Total area of the element.

Reimplemented from HRElem.

Definition at line 47 of file HRMesh.h.

Point HRMeshElem::EltCentre () [inline, virtual]

Centre of element, used mainly for vis. stuff.

Reimplemented from HRElem.

Definition at line 50 of file HRMesh.h.

Colour HRMeshElem::EltE () [inline, virtual]

Reimplemented from HRElem.

Definition at line 51 of file HRMesh.h.

Void HRMeshElem::EltGetSamples (Int numSamples, Point pts[]) [virtual]

Reimplemented from HRElem.

Definition at line 694 of file HRMesh.cc.

GCLReal HRMeshElem::EltProjArea (const Vector & v) [inline, virtual]

and cluster stuff.

Reimplemented from HRElem.

Definition at line 48 of file HRMesh.h.

Colour HRMeshElem::EltRho () [inline, virtual]

Average reflectance of element.

Reimplemented from HRElem.

Definition at line 52 of file HRMesh.h.

Void HRMeshElem::EltSetVisPoints (HRElem * to, Point p[]) [virtual]

return 16 points suitable for vis. sampling.

Reimplemented from HRElem.

Definition at line 621 of file HRMesh.cc.

Void HRMeshElem::EltUpdateBounds (Point & min, Point & max) [virtual]

update min/max to include element.

Reimplemented from HRElem.

Definition at line 626 of file HRMesh.cc.

Void HRMeshElem::EstSubFormFactor (Int nFrom, HRMeshElem * to, const GCLMat & toU, GCLMat & samples, GCLReal * visPtr)

Form factors between nFrom x nFrom panes on this patch and the coordinates toU on 'to'.

Definition at line 221 of file HRMesh.cc.

Void HRMeshElem::HRCorrectLeaves ()

Call CorrectLeaves on leaf elements.

Definition at line 661 of file HRMesh.cc.

Bool HRMeshElem::IsLeaf () [inline, virtual]

Is this a leaf element in the solution?

Reimplemented from HRElem.

Definition at line 32 of file HRMesh.h.

Void HRMeshElem::MakeChildLinks (HRElem * other, HRLink * link, Int which, Int levels) [virtual]

Create links from children to 'other'.

Reimplemented from HRElem.

Definition at line 71 of file HRMesh.cc.

Void HRMeshElem::Print (ostream & s) [virtual]

Reimplemented from RadElem.

Reimplemented in HaarElem.

Definition at line 48 of file HRMesh.cc.

Void HRMeshElem::Reset () [virtual]

Reimplemented from HRElem.

Definition at line 32 of file HRMesh.cc.

Void HRMeshElem::SampleKernel (const GCLMat & fromU, HRMeshElem * to, const GCLMat & toU, GCLMat & samples, GCLReal * visPtr)

Find form factors between points fromU on source and points toU on the destination (to).

Definition at line 101 of file HRMesh.cc.

Void HRMeshElem::SetHighlight (Int h)

Reimplemented from RadElem.

Definition at line 719 of file HRMesh.cc.

Void HRMeshElem::SubToSubFormFactor (Int nFrom, HRMeshElem * to, Int nTo, GCLMat & samples, GCLReal * visPtr)

Form factors between nFrom x nFrom panes on this patch and nTo x nTo panes on 'to'.

Definition at line 427 of file HRMesh.cc.


The documentation for this class was generated from the following files:
Generated at Sat Aug 5 00:26:56 2000 for Radiator by doxygen 1.1.0 written by Dimitri van Heesch, © 1997-2000