BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Private Attributes
BDSColourWheel Class Reference

Three colours that are supplied sequentially. More...

#include <BDSColourWheel.hh>

Collaboration diagram for BDSColourWheel:
Collaboration graph

Public Member Functions

G4Colour Colour ()
 Return current colour. More...
 
void Spin ()
 Iterate colour choice from RGB. More...
 
void Reset ()
 Start sequence again. More...
 

Private Attributes

std::list< G4Colour > palette
 
std::list< G4Colour >::const_iterator colour_it
 

Detailed Description

Three colours that are supplied sequentially.

Author
Lawrence Deacon.

Definition at line 33 of file BDSColourWheel.hh.

Constructor & Destructor Documentation

◆ BDSColourWheel()

BDSColourWheel::BDSColourWheel ( )

Definition at line 23 of file BDSColourWheel.cc.

◆ ~BDSColourWheel()

BDSColourWheel::~BDSColourWheel ( )

Definition at line 31 of file BDSColourWheel.cc.

Member Function Documentation

◆ Colour()

G4Colour BDSColourWheel::Colour ( )

Return current colour.

Definition at line 46 of file BDSColourWheel.cc.

Referenced by BDSMultilayerScreen::AddScreenLayer().

Here is the caller graph for this function:

◆ Reset()

void BDSColourWheel::Reset ( )

Start sequence again.

Definition at line 41 of file BDSColourWheel.cc.

Referenced by Spin().

Here is the caller graph for this function:

◆ Spin()

void BDSColourWheel::Spin ( )

Iterate colour choice from RGB.

Definition at line 34 of file BDSColourWheel.cc.

References Reset().

Referenced by BDSMultilayerScreen::AddScreenLayer().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ colour_it

std::list<G4Colour>::const_iterator BDSColourWheel::colour_it
private

Definition at line 50 of file BDSColourWheel.hh.

◆ palette

std::list<G4Colour> BDSColourWheel::palette
private

Definition at line 49 of file BDSColourWheel.hh.


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