RAIDA  1.9.0
IBrushStyle.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_IBRUSHSTYLE_H
8 #define AIDA_IBRUSHSTYLE_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 #include <string>
16 #include <vector>
17 
18 #include "AIDA/IBaseStyle.h"
19 
20 namespace AIDA {
21 
29 class IBrushStyle : virtual public IBaseStyle {
30 
31 public:
33  virtual ~IBrushStyle() { /* nop */; }
34 
38  virtual std::vector<std::string> availableColors() const = 0;
39 
43  virtual std::string color() const = 0;
44 
48  virtual double opacity() const = 0;
49 
54  virtual bool setColor(const std::string & newColor) = 0;
55 
61  virtual bool setOpacity(double newOpacity) = 0;
62 }; // class
63 } // namespace AIDA
64 #endif /* ifndef AIDA_IBRUSHSTYLE_H */
virtual std::vector< std::string > availableColors() const =0
Get a list of the colours supported by this implementation.
virtual std::string color() const =0
Current colour of this brush style.
Superclass for all styles in AIDA Plotting package.
Definition: IBaseStyle.h:38
virtual double opacity() const =0
Current opacity (alpha) of this brush style.
Superclass for anything which can be drawn in different colours and with (possibly) transparent/opaqu...
Definition: IBrushStyle.h:29
virtual bool setColor(const std::string &newColor)=0
Set current colour, e.g.
virtual bool setOpacity(double newOpacity)=0
Set opacity (alpha), e.g.
virtual ~IBrushStyle()
Destructor.
Definition: IBrushStyle.h:33