Developer Documentation

Public Member Functions | List of all members
ACG::ColorGenerator Class Referenceabstract

`#include <OpenFlipper/libs_required/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 55 of file ColorGenerator.hh.

## Member Function Documentation

## ◆ generateNextColor()

virtual Vec4f ACG::ColorGenerator::generateNextColor | ( |  | ) |
| pure virtual

Returns
  A new color.

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

## ◆ generateNextNColors()

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 78 of file ColorGenerator.hh.

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

- OpenFlipper/libs_required/ACG/Utils/ColorGenerator.hh