File indexing completed on 2025-01-18 10:04:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IGESGraph_Color_HeaderFile
0018 #define _IGESGraph_Color_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <Standard_Real.hxx>
0023 #include <IGESData_ColorEntity.hxx>
0024 class TCollection_HAsciiString;
0025
0026
0027 class IGESGraph_Color;
0028 DEFINE_STANDARD_HANDLE(IGESGraph_Color, IGESData_ColorEntity)
0029
0030
0031
0032
0033
0034
0035
0036
0037 class IGESGraph_Color : public IGESData_ColorEntity
0038 {
0039
0040 public:
0041
0042
0043 Standard_EXPORT IGESGraph_Color();
0044
0045
0046
0047
0048
0049
0050 Standard_EXPORT void Init (const Standard_Real red, const Standard_Real green, const Standard_Real blue, const Handle(TCollection_HAsciiString)& aColorName);
0051
0052 Standard_EXPORT void RGBIntensity (Standard_Real& Red, Standard_Real& Green, Standard_Real& Blue) const;
0053
0054 Standard_EXPORT void CMYIntensity (Standard_Real& Cyan, Standard_Real& Magenta, Standard_Real& Yellow) const;
0055
0056 Standard_EXPORT void HLSPercentage (Standard_Real& Hue, Standard_Real& Lightness, Standard_Real& Saturation) const;
0057
0058
0059
0060 Standard_EXPORT Standard_Boolean HasColorName() const;
0061
0062
0063
0064 Standard_EXPORT Handle(TCollection_HAsciiString) ColorName() const;
0065
0066
0067
0068
0069 DEFINE_STANDARD_RTTIEXT(IGESGraph_Color,IGESData_ColorEntity)
0070
0071 protected:
0072
0073
0074
0075
0076 private:
0077
0078
0079 Standard_Real theRed;
0080 Standard_Real theGreen;
0081 Standard_Real theBlue;
0082 Handle(TCollection_HAsciiString) theColorName;
0083
0084
0085 };
0086
0087
0088
0089
0090
0091
0092
0093 #endif