// 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 #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Materials_Color_HeaderFile #include #endif #ifndef _Quantity_Color_HeaderFile #include #endif #ifndef _Standard_Transient_HeaderFile #include #endif #ifndef _Quantity_TypeOfColor_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class Quantity_Color; //! This class encapsulates a Quantity_Color in a
//! Transient object, to be used in an ObjectProperty
//! from the package Dynamic.
class Materials_Color : public Standard_Transient { public: //! Creates an empty instance of Color.
Standard_EXPORT Materials_Color(); //! Creates an instance of Color, with as color.
Standard_EXPORT Materials_Color(const Quantity_Color& acolor); //! Sets into .
Standard_EXPORT void Color(const Quantity_Color& acolor) ; //! Returns a Quantity_Color corresponding to .
Standard_EXPORT Quantity_Color Color() const; //! Get the values ( RGB or HLS ) between 0.0 and 1.0
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
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
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
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