OpenFOAM logo
Open Source CFD Toolkit

colour Class Reference

Collaboration diagram for colour:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 colour ()
 Construct null.
 colour (const word &nam, const scalar r, const scalar g, const scalar b)
 Construct from components.
 colour (Istream &)
 Construct from Istream.
 colour (const colour &)
 Construct as copy.
 ~colour ()
const wordname () const
scalar r () const
scalar g () const
scalar b () const
void operator= (const colour &)

Friends

bool operator== (const colour &, const colour &)
bool operator!= (const colour &, const colour &)
Istreamoperator>> (Istream &, colour &)
Ostreamoperator<< (Ostream &, const colour &)

Constructor & Destructor Documentation

colour  )  [inline]
 

Construct null.

Definition at line 49 of file colourI.H.

colour const word nam,
const scalar  r,
const scalar  g,
const scalar  b
[inline]
 

Construct from components.

Definition at line 60 of file colourI.H.

colour Istream is  )  [inline]
 

Construct from Istream.

Read beginning of colour

Read end of colour

Check state of Istream

Definition at line 75 of file colourI.H.

colour const colour  )  [inline]
 

Construct as copy.

Definition at line 93 of file colourI.H.

~colour  )  [inline]
 

Definition at line 104 of file colourI.H.


Member Function Documentation

scalar b  )  const [inline]
 

Definition at line 125 of file colourI.H.

References colour::g_, colour::name_, and colour::r_.

scalar g  )  const [inline]
 

Definition at line 120 of file colourI.H.

const word & name  )  const [inline]
 

Definition at line 110 of file colourI.H.

void operator= const colour  )  [inline]
 

Definition at line 133 of file colourI.H.

scalar r  )  const [inline]
 

Definition at line 115 of file colourI.H.


Friends And Related Function Documentation

bool operator!= const colour c1,
const colour c2
[friend]
 

Definition at line 156 of file colourI.H.

Ostream& operator<< Ostream os,
const colour c
[friend]
 

Check state of IOstream

Definition at line 183 of file colourI.H.

bool operator== const colour c1,
const colour c2
[friend]
 

Definition at line 144 of file colourI.H.

Istream& operator>> Istream is,
colour c
[friend]
 

Read beginning of colour

Read end of colour

Check state of Istream

Definition at line 164 of file colourI.H.


The documentation for this class was generated from the following files:
For further information go to www.openfoam.org