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

HRLink Class Reference

#include <HRLink.h>

Inheritance diagram for HRLink:

Node VecLink HaarLink GenLink

Collaboration diagram for HRLink:

List of all members.


Public Members

 HRLink ()
virtual HRLink* New () = 0
Create a new link of the same type.

virtual Void FreeLink (HRLink *link)
Free up link.

Bool MakeLink ( HRElem *fromElem, HRElem *toElem, HRLink *parentLink = 0, Bool forceVisReuse = false )
Setup a link. More...

virtual Bool CalcTransport () = 0
Calculate the transport coefficients. More...

virtual Bool CalcVisibility (HRLink *parentLink, Bool forceVisReuse)
Calculate the fractional visibility, and multiply into transport. More...

virtual Void Gather () = 0
Gather radiosity from from->B and accumulate in to->R.

Bool NeedVisibility (HRLink *parentLink)
Return true if we need a new visibility estimate.

virtual RefChoice RefineOracle ()
Decide if and how the link needs to be refined.

virtual GCLReal Error () = 0
virtual GCLReal BFAError () = 0
HRLink* CreateSubLink (HRElem *from, HRElem *to)
Create a new link between from and to, reusing the visibility calcs of the old link if possible.

virtual Void Print (ostream &s)
virtual Void DrawLink (Renderer &r, GCLReal left, GCLReal top, GCLReal right, GCLReal bottom, GCLReal weight)
virtual GCLReal Strength () = 0
virtual Void DebugInfo ()
HRElemfrom
HRElemto
GCLReal visibility
Flags8 flags


Detailed Description

Definition at line 27 of file HRLink.h.


Constructor & Destructor Documentation

HRLink::HRLink ()

Definition at line 32 of file HRLink.cc.


Member Function Documentation

virtual GCLReal HRLink::BFAError () [pure virtual]

Reimplemented in GenLink, HaarLink, and VecLink.

Bool HRLink::CalcTransport () [inline, pure virtual]

Calculate the transport coefficients.

Returns true if the transport is non-zero.

Reimplemented in GenLink, HaarLink, and VecLink.

Bool HRLink::CalcVisibility (HRLink * parent, Bool rv) [inline, virtual]

Calculate the fractional visibility, and multiply into transport.

Return true if the link isn't totally occluded.

Reimplemented in GenLink, HaarLink, and VecLink.

Definition at line 130 of file HRLink.cc.

HRLink * HRLink::CreateSubLink (HRElem * from, HRElem * to)

Create a new link between from and to, reusing the visibility calcs of the old link if possible.

Definition at line 144 of file HRLink.cc.

Void HRLink::DebugInfo () [virtual]

Reimplemented in VecLink.

Definition at line 202 of file HRLink.cc.

Void HRLink::DrawLink (Renderer & r, GCLReal left, GCLReal top, GCLReal right, GCLReal bottom, GCLReal weight) [virtual]

Reimplemented in HaarLink.

Definition at line 176 of file HRLink.cc.

virtual GCLReal HRLink::Error () [pure virtual]

Reimplemented in GenLink, HaarLink, and VecLink.

Void HRLink::FreeLink (HRLink * link) [inline, virtual]

Free up link.

Definition at line 210 of file HRLink.cc.

Void HRLink::Gather () [inline, pure virtual]

Gather radiosity from from->B and accumulate in to->R.

Reimplemented in GenLink, HaarLink, and VecLink.

Bool HRLink::MakeLink (HRElem * fromElem, HRElem * toElem, HRLink * parentLink = 0, Bool forceVisReuse = false)

Setup a link.

Returns true if there is a viable link, false if there is no energy transfer and the link can be discarded.

Definition at line 99 of file HRLink.cc.

Bool HRLink::NeedVisibility (HRLink * parentLink)

Return true if we need a new visibility estimate.

Definition at line 193 of file HRLink.cc.

HRLink * HRLink::New () [inline, pure virtual]

Create a new link of the same type.

Reimplemented in GenLink, HaarLink, and VecLink.

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

Reimplemented in HaarLink.

Definition at line 171 of file HRLink.cc.

RefChoice HRLink::RefineOracle () [inline, virtual]

Decide if and how the link needs to be refined.

Reimplemented in GenLink, and VecLink.

Definition at line 36 of file HRLink.cc.

virtual GCLReal HRLink::Strength () [pure virtual]

Reimplemented in GenLink, HaarLink, and VecLink.


Member Data Documentation

Flags8 HRLink::flags

Definition at line 79 of file HRLink.h.

HRElem * HRLink::from

Definition at line 77 of file HRLink.h.

HRElem * HRLink::to

Definition at line 77 of file HRLink.h.

GCLReal HRLink::visibility

Definition at line 78 of file HRLink.h.


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