summaryrefslogtreecommitdiff
path: root/inc/Materials_Color.hxx
blob: 04e03d72b945e8796a69447ee57147168d0a38e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Materials_Color_HeaderFile
#define _Materials_Color_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Materials_Color_HeaderFile
#include <Handle_Materials_Color.hxx>
#endif

#ifndef _Quantity_Color_HeaderFile
#include <Quantity_Color.hxx>
#endif
#ifndef _Standard_Transient_HeaderFile
#include <Standard_Transient.hxx>
#endif
#ifndef _Quantity_TypeOfColor_HeaderFile
#include <Quantity_TypeOfColor.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
class Quantity_Color;


//! This class  encapsulates   a Quantity_Color  in  a <br>
//!          Transient object, to be used in an ObjectProperty <br>
//!          from the package Dynamic. <br>
class Materials_Color : public Standard_Transient {

public:

  //! Creates an empty instance of Color. <br>
  Standard_EXPORT   Materials_Color();
  //! Creates an instance of Color, with <acolor> as color. <br>
  Standard_EXPORT   Materials_Color(const Quantity_Color& acolor);
  //! Sets <acolor> into <me>. <br>
  Standard_EXPORT     void Color(const Quantity_Color& acolor) ;
  //! Returns a Quantity_Color corresponding to <me>. <br>
  Standard_EXPORT     Quantity_Color Color() const;
  //! Get the values ( RGB or HLS )  between 0.0 and 1.0 <br>
  Standard_EXPORT     void Color(const Quantity_TypeOfColor aTypeOfColor,Standard_Real& Reel1,Standard_Real& Reel2,Standard_Real& Reel3) const;
  //! Get the values ( RGB or HLS )  between 0.0 and 255.0 <br>
  Standard_EXPORT     void Color255(const Quantity_TypeOfColor aTypeOfColor,Standard_Real& Reel1,Standard_Real& Reel2,Standard_Real& Reel3) const;
  //! Set the values ( RGB or HLS )  between 0.0 and 1.0 <br>
  Standard_EXPORT     void SetColor(const Quantity_TypeOfColor aTypeOfColor,const Standard_Real Reel1,const Standard_Real Reel2,const Standard_Real Reel3) ;
  //! Set the values ( RGB or HLS )  between 0.0 and 255.0 <br>
  Standard_EXPORT     void SetColor255(const Quantity_TypeOfColor aTypeOfColor,const Standard_Real Reel1,const Standard_Real Reel2,const Standard_Real Reel3) ;




  DEFINE_STANDARD_RTTI(Materials_Color)

protected:




private: 


Quantity_Color thecolor;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif