sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 10093 - svn://svn.freehep.org/svn / freehep / cvs / aidainclude / tags / AIDA-33-BRANCH-pre-merge-1 / AIDA / IBrushStyle.h
Show File - IBrushStyle.h  [show properties]
Search for Help
spinner
// -*- C++ -*-
// AID-GENERATED
// =========================================================================
// This class was generated by AID - Abstract Interface Definition
// DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
// =========================================================================
#ifndef AIDA_IBRUSHSTYLE_H
#define AIDA_IBRUSHSTYLE_H 1
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 
22  /**
23   * Superclass for anything which can be drawn in different
24   * colours and with (possibly) transparent/opaque/translucent effect.
25   *
26   * @author The AIDA team (http://aida.freehep.org/)
27   */
28 
29  class IBrushStyle : virtual public IBaseStyle {
30 
31  public:
32      /// Destructor.
33      virtual ~IBrushStyle() { /* nop */; }
34 
35    /**
36     * Get a list of the colours supported by this implementation.
37     */
38      virtual std::vector<std::string> availableColors() const = 0;
39 
40    /**
41     * Current colour of this brush style.
42     */
43      virtual std::string color() const = 0;
44 
45    /**
46     * Current opacity (alpha) of this brush style.
47     */
48      virtual double opacity() const = 0;
49 
50    /**
51     * Set current colour, e.g. "darkGreen"
52     * @return false if colour not recognised by the implementation.
53     */
54      virtual bool setColor(const std::string & newColor) = 0;
55 
56    /**
57     * Set opacity (alpha), e.g. 0 (transparent),
58     * 1 (opaque), 0.5 (halfway).
59     * @return false if value not supported by the implementation.
60     */
61      virtual bool setOpacity(double newOpacity) = 0;
62  }; // class
63  } // namespace AIDA
64  #endif /* ifndef AIDA_IBRUSHSTYLE_H */


feed icon

sventon 2.5.1