Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::ColorExtension2 Class Reference
[Helper Base Classes for derived GeometricObject 's]

Base class for geometric objects that need two colors. More...

#include <colorExtensions.h>

Inheritance diagram for VIEW::ColorExtension2:

VIEW::TwoColoredLine VIEW::TwoColoredTube List of all members.

Public Member Functions

Constructors
 ColorExtension2 () throw ()
 Default Constructor.
 ColorExtension2 (const ColorExtension2 &color_extension) throw ()
 Copy constructor.
virtual ~ColorExtension2 () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
Assignment methods
void set (const ColorExtension2 &color_extension) throw ()
 Assignment.
const ColorExtension2operator= (const ColorExtension2 &color_extension) throw ()
 Assignment operator.
void swap (ColorExtension2 &color_extension) throw ()
 Swapping of colorExtensions.
Accessors: inspectors and mutators
void setColor2 (const ColorRGBA &color) throw ()
 Change the second color.
ColorRGBAgetColor2 () throw ()
 Mutable inspection of the second color of this colorExtension2.
const ColorRGBAgetColor2 () const throw ()
 Non-mutable inspection of the second color.
void getColor2 (ColorRGBA &color) const throw ()
 Inspection of the second color of this colorExtension2.
debuggers and diagnostics
virtual void dump (std::ostream &s=std::cout, Size depth=0) const throw ()
 Internal value dump.

Detailed Description

Base class for geometric objects that need two colors.

It provides the derived class with methods for accessing these colors.

See also:
ColorRGBA

ColorUnit


Constructor & Destructor Documentation

VIEW::ColorExtension2::ColorExtension2  )  throw ()
 

Default Constructor.

The colors are set to (0.0, 0.0, 0.0, 1.0).

VIEW::ColorExtension2::ColorExtension2 const ColorExtension2 color_extension  )  throw ()
 

Copy constructor.

virtual VIEW::ColorExtension2::~ColorExtension2  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual void VIEW::ColorExtension2::clear  )  throw () [virtual]
 

Explicit default initialization.

Set the colors of this colorExtension2 to the color (0.0, 0.0, 0.0, 1.0). Calls ColorRGBA::clear.

Reimplemented in VIEW::TwoColoredLine, and VIEW::TwoColoredTube.

virtual void VIEW::ColorExtension2::dump std::ostream &  s = std::cout,
Size  depth = 0
const throw () [virtual]
 

Internal value dump.

Dump the current state of this colorExtension2 to the output ostream s with dumping depth depth.

Parameters:
s output stream where to output the state of this colorExtension2
depth the dumping depth
See also:
ColorRGBA::operator <<

Reimplemented in VIEW::TwoColoredLine, and VIEW::TwoColoredTube.

void VIEW::ColorExtension2::getColor2 ColorRGBA color  )  const throw ()
 

Inspection of the second color of this colorExtension2.

ColorRGBA& VIEW::ColorExtension2::getColor2  )  throw ()
 

Mutable inspection of the second color of this colorExtension2.

const ColorExtension2& VIEW::ColorExtension2::operator= const ColorExtension2 color_extension  )  throw ()
 

Assignment operator.

Calls set.

void VIEW::ColorExtension2::set const ColorExtension2 color_extension  )  throw ()
 

Assignment.

void VIEW::ColorExtension2::swap ColorExtension2 color_extension  )  throw ()
 

Swapping of colorExtensions.