RotatedGridSampleGenerator Class Reference

#include <RotatedGridSampleGenerator.h>

Inherits RegularSampleGenerator.

Inheritance diagram for RotatedGridSampleGenerator:

Inheritance graph
[legend]
Collaboration diagram for RotatedGridSampleGenerator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RotatedGridSampleGenerator (float angle=45.0f)
void samples (int n, float u[], float v[], float weight[]) const

Private Attributes

float mSin
float mCos

Detailed Description

Sample generator generating regular samples rotated by some angle

Author:
Alex Busenius

Definition at line 11 of file RotatedGridSampleGenerator.h.


Constructor & Destructor Documentation

RotatedGridSampleGenerator::RotatedGridSampleGenerator ( float  angle = 45.0f  )  [inline]

Create a sample generator using specific angle

Parameters:
angle Rotation angle in degree

Definition at line 18 of file RotatedGridSampleGenerator.h.


Member Function Documentation

void RotatedGridSampleGenerator::samples ( int  n,
float  u[],
float  v[],
float  weight[] 
) const [inline, virtual]

Create samples by distributing the samples on a rotated grid

Reimplemented from RegularSampleGenerator.

Definition at line 28 of file RotatedGridSampleGenerator.h.

References mCos, mSin, and RegularSampleGenerator::samples().


Member Data Documentation

float RotatedGridSampleGenerator::mSin [private]

Definition at line 51 of file RotatedGridSampleGenerator.h.

Referenced by samples().

float RotatedGridSampleGenerator::mCos [private]

Definition at line 52 of file RotatedGridSampleGenerator.h.

Referenced by samples().


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 00:02:27 2008 for Grayfall by  doxygen 1.5.1