Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
ACG::ColorGenerator Class Referenceabstract

`#include <ACG/Utils/ColorGenerator.hh>`

Inheritance diagram for ACG::ColorGenerator:

## 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

  n | How many colors to generate.
  oit | An 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:

- ACG/Utils/ColorGenerator.hh