CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AIDA::IBrushStyle Class Reference

#include <IBrushStyle.h>

Inheritance diagram for AIDA::IBrushStyle::

AIDA::IBaseStyle AIDA::IFillStyle AIDA::ILineStyle AIDA::IMarkerStyle AIDA::ITextStyle List of all members.

Public Methods

virtual ~IBrushStyle ()
 Destructor. More...

virtual std::vector<std::string> availableColors () const=0
virtual std::string color () const=0
virtual double opacity () const=0
virtual bool setColor (const std::string &newColor)=0
virtual bool setOpacity (double newOpacity)=0

Detailed Description

Superclass for anything which can be drawn in different colours and with (possibly) transparent/opaque/translucent effect.

Author:
The AIDA team (http://aida.freehep.org/)

Definition at line 29 of file IBrushStyle.h.


Constructor & Destructor Documentation

AIDA::IBrushStyle::~IBrushStyle ( ) [inline, virtual]
 

Definition at line 33 of file IBrushStyle.h.


Member Function Documentation

std::vector< std::string > AIDA::IBrushStyle::availableColors ( ) const [pure virtual]
 

Get a list of the colours supported by this implementation.

std::string AIDA::IBrushStyle::color ( ) const [pure virtual]
 

Current colour of this brush style.

double AIDA::IBrushStyle::opacity ( ) const [pure virtual]
 

Current opacity (alpha) of this brush style.

bool AIDA::IBrushStyle::setColor ( const std::string & newColor ) [pure virtual]
 

Set current colour, e.g. "darkGreen"

Returns:
false if colour not recognised by the implementation.

bool AIDA::IBrushStyle::setOpacity ( double newOpacity ) [pure virtual]
 

Set opacity (alpha), e.g. 0 (transparent), 1 (opaque), 0.5 (halfway).

Returns:
false if value not supported by the implementation.


The documentation for this class was generated from the following file:
Generated at Tue Feb 18 15:48:24 2003 for AIDA_Interfaces by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001