Open CASCADE Technology 6.6.0
Public Member Functions
Materials_Color Class Reference

This class encapsulates a Quantity_Color in a
Transient object, to be used in an ObjectProperty
from the package Dynamic.

#include <Materials_Color.hxx>

Inheritance diagram for Materials_Color:
Inheritance graph
[legend]

Public Member Functions

 Materials_Color ()
 Creates an empty instance of Color.

 Materials_Color (const Quantity_Color &acolor)
 Creates an instance of Color, with <acolor> as color.

void Color (const Quantity_Color &acolor)
 Sets <acolor> into <me>.

Quantity_Color Color () const
 Returns a Quantity_Color corresponding to <me>.

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 1.0

void Color255 (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

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 1.0

void SetColor255 (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


Constructor & Destructor Documentation

Materials_Color::Materials_Color ( )
Materials_Color::Materials_Color ( const Quantity_Color acolor)

Member Function Documentation

void Materials_Color::Color ( const Quantity_Color acolor)
Quantity_Color Materials_Color::Color ( ) const
void Materials_Color::Color ( const Quantity_TypeOfColor  aTypeOfColor,
Standard_Real Reel1,
Standard_Real Reel2,
Standard_Real Reel3 
) const
void Materials_Color::Color255 ( const Quantity_TypeOfColor  aTypeOfColor,
Standard_Real Reel1,
Standard_Real Reel2,
Standard_Real Reel3 
) const
void Materials_Color::SetColor ( const Quantity_TypeOfColor  aTypeOfColor,
const Standard_Real  Reel1,
const Standard_Real  Reel2,
const Standard_Real  Reel3 
)
void Materials_Color::SetColor255 ( const Quantity_TypeOfColor  aTypeOfColor,
const Standard_Real  Reel1,
const Standard_Real  Reel2,
const Standard_Real  Reel3 
)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines