GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARColor.h
1 #ifndef ARColor_H
2 #define ARColor_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2002-2017 Grame
8 
9  This Source Code Form is subject to the terms of the Mozilla Public
10  License, v. 2.0. If a copy of the MPL was not distributed with this
11  file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 
13  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
14  research@grame.fr
15 
16 */
17 
18 #include "ARMTParameter.h"
19 
23 class ARColor : public ARMTParameter
24 {
25  public:
26  ARColor();
27  virtual ~ARColor() {}
28 
29  virtual void setTagParameters (const TagParameterMap& params);
30 
31  virtual bool IsStateTag() const { return true; }
32  virtual const char* getParamsStr() const { return kARColorParams; };
33  virtual const char* getTagName() const { return "ARColor"; };
34  virtual std::string getGMNName() const { return "\\color"; };
35 
36  float getColorR() const { return fR; }
37  float getColorG() const { return fG; }
38  float getColorB() const { return fB; }
39  float getColorA() const { return fA; }
40 
41  protected:
42  float fR; // (JB) should be unsigned char components ?
43  float fG;
44  float fB;
45  float fA;
46 };
47 
48 #endif
ARColor::getTagName
virtual const char * getTagName() const
Definition: ARColor.h:33
ARColor::getGMNName
virtual std::string getGMNName() const
Definition: ARColor.h:34
ARMTParameter
not yet documented
Definition: ARMTParameter.h:24
ARColor::fB
float fB
Definition: ARColor.h:44
ARColor::fA
float fA
Definition: ARColor.h:45
ARColor::getColorR
float getColorR() const
Definition: ARColor.h:36
ARColor::ARColor
ARColor()
ARColor::getParamsStr
virtual const char * getParamsStr() const
Definition: ARColor.h:32
ARColor::getColorG
float getColorG() const
Definition: ARColor.h:37
ARColor::IsStateTag
virtual bool IsStateTag() const
Definition: ARColor.h:31
ARColor
The color tag. Ready to support the Alpha componenent for transparency (RGBA).
Definition: ARColor.h:23
ARColor::fR
float fR
Definition: ARColor.h:42
ARColor::~ARColor
virtual ~ARColor()
Definition: ARColor.h:27
ARColor::getColorA
float getColorA() const
Definition: ARColor.h:39
ARColor::getColorB
float getColorB() const
Definition: ARColor.h:38
ARColor::fG
float fG
Definition: ARColor.h:43
TagParameterMap
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
ARColor::setTagParameters
virtual void setTagParameters(const TagParameterMap &params)

Guido Project Copyright © 2019 Grame-CNCM