Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SummedAreaTable Class Reference

This class represents the summed area table. More...

#include <octree.h>

Collaboration diagram for SummedAreaTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SummedAreaTable (void)
 Constructor.
 ~SummedAreaTable ()
 Destructor.
void build (float *transferFunction, float threshold_runlength)
 Build the summed area table.
int transparent (byte min, byte max)
 Given range transparent?

Private Attributes

int * table
 The summed area table itself.

Detailed Description

This class represents the summed area table.

The summed area table deals with summing up the opacities in the transferfunction. This way it can be checked out whether sub-trees of the total octree are transparent or not.

Definition at line 209 of file octree.h.


Constructor & Destructor Documentation

SummedAreaTable::SummedAreaTable void   ) 
 

Constructor.

Constructs the summed area table

Definition at line 275 of file octree.cpp.

References table.

SummedAreaTable::~SummedAreaTable  ) 
 

Destructor.

Removes the summed area table.

Definition at line 283 of file octree.cpp.

References table.


Member Function Documentation

void SummedAreaTable::build float transferFunction,
float  threshold_runlength
 

Build the summed area table.

build up the summed area table (for each voxel-value i compute the sum of all opacities greater than a given threshold from 0 up to i.

Parameters:
transferFunction a pointer to the transferFunction.
threshold_runlength the threshold for summation.

Definition at line 292 of file octree.cpp.

References byte, and table.

Referenced by FastClassification::buildSummedAreaTable().

int SummedAreaTable::transparent byte  min,
byte  max
 

Given range transparent?

Check whether the given range is total transparent (0 = false, 1 = true)

Parameters:
min the lower boundary of the interval
max the upper boundary of the interval
Returns:
1 if the interval is transparent, 0 else

Definition at line 306 of file octree.cpp.

References max, min, and table.

Referenced by Octree::classify().


Member Data Documentation

int* SummedAreaTable::table [private]
 

The summed area table itself.

The summed area table is an array of integers.

Definition at line 252 of file octree.h.

Referenced by build(), SummedAreaTable(), transparent(), and ~SummedAreaTable().


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:21:02 2004 for vuVolume by  doxygen 1.3.9.1