Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::ColorGenerator Class Referenceabstract

#include <ACG/Utils/ColorGenerator.hh>

Inheritance diagram for ACG::ColorGenerator:
ACG::HaltonColors ACG::HuePartitioningColors

Public Member Functions

virtual Vec4f generateNextColor ()=0
 
template<class OUTPUT_ITERATOR >
void generateNextNColors (int n, OUTPUT_ITERATOR oit)
 

Detailed Description

The ColorGenerator interface provides a generic interface for color generators with different strategies.

Definition at line 62 of file ColorGenerator.hh.

Member Function Documentation

virtual Vec4f ACG::ColorGenerator::generateNextColor ( )
pure virtual
Returns
A new color.

Implemented in ACG::HaltonColors, and ACG::HuePartitioningColors.

template<class OUTPUT_ITERATOR >
void ACG::ColorGenerator::generateNextNColors ( int  n,
OUTPUT_ITERATOR  oit 
)
inline

Put a bunch of colors into the output iterator.

Generates the same colors as if calling generateNextColor() n times.

Typically, you would use std::back_inserter(container) as the argument for oit.

Parameters
nHow many colors to generate.
oitAn output iterator. Should support "*oit++ = <Vec4f>;".

Definition at line 85 of file ColorGenerator.hh.


The documentation for this class was generated from the following file: