#include <SplatSlicer.h>
Collaboration diagram for SplatSlicer:

Public Member Functions | |
| SplatSlicer () | |
| constructor | |
| ~SplatSlicer () | |
| destructor | |
| bool | buildSplat (float radius, int ysize, int xsize, int slices) |
| builds up preintegrated splats | |
| AlphaMask & | getSpla (float t) |
| returns a part of a splat integrated from 0 to t where t = 1.0 returns the complete splat | |
Protected Member Functions | |
| double | nelsonSplat (double r) |
| Computes splatting values using the Nelson algorithm. */. | |
| float | integrate (float r, float u) |
| integrates the Splat up to a certain slice | |
| bool | createSlices (int nslices, int xsize, int ysize) |
| allocates memory for slices and sets up variables of this class | |
| bool | removeSlices () |
| frees the memory occupied by the slices | |
Protected Attributes | |
| dword | m_NSlices |
| number of slices to prepare | |
| dword | m_XSize |
| dword | m_YSize |
| float | m_Radius |
| radius of a splat | |
| float | m_Diameter |
| diameter of a splat | |
| AlphaMask * | m_Slices |
| collection of preintegrated slices | |
Definition at line 8 of file SplatSlicer.h.
|
|
constructor
Definition at line 18 of file SplatSlicer.cpp. References m_Slices. |
|
|
destructor
Definition at line 23 of file SplatSlicer.cpp. References removeSlices(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
builds up preintegrated splats
Definition at line 61 of file SplatSlicer.cpp. References createSlices(), data, dword, fbtype, FrameBuffer< N >::getData(), integrate(), m_Diameter, m_NSlices, m_Radius, m_Slices, and word. Referenced by main(), and vu1512112::render(). |
Here is the call graph for this function:

|
||||||||||||||||
|
allocates memory for slices and sets up variables of this class
Definition at line 28 of file SplatSlicer.cpp. References AlphaMask, m_NSlices, m_Slices, m_XSize, m_YSize, removeSlices(), and FrameBuffer< N >::setSize(). Referenced by buildSplat(). |
Here is the call graph for this function:

|
|
returns a part of a splat integrated from 0 to t where t = 1.0 returns the complete splat
Definition at line 108 of file SplatSlicer.cpp. References AlphaMask, m_Diameter, m_NSlices, and m_Slices. Referenced by vu1512112::drawSlice(), and main(). |
|
||||||||||||
|
integrates the Splat up to a certain slice
Definition at line 101 of file SplatSlicer.cpp. References M_SQRT2. Referenced by buildSplat(). |
|
|
Computes splatting values using the Nelson algorithm. */.
|
|
|
frees the memory occupied by the slices
Definition at line 46 of file SplatSlicer.cpp. References m_NSlices, and m_Slices. Referenced by createSlices(), and ~SplatSlicer(). |
|
|
diameter of a splat
Definition at line 47 of file SplatSlicer.h. Referenced by buildSplat(), and getSpla(). |
|
|
number of slices to prepare
Definition at line 44 of file SplatSlicer.h. Referenced by buildSplat(), createSlices(), getSpla(), and removeSlices(). |
|
|
radius of a splat
Definition at line 46 of file SplatSlicer.h. Referenced by buildSplat(). |
|
|
collection of preintegrated slices
Definition at line 48 of file SplatSlicer.h. Referenced by buildSplat(), createSlices(), getSpla(), removeSlices(), and SplatSlicer(). |
|
|
Definition at line 45 of file SplatSlicer.h. Referenced by createSlices(). |
|
|
Definition at line 45 of file SplatSlicer.h. Referenced by createSlices(). |
1.3.9.1