Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.
More...

#include <Materials_Color.hxx>

Inheritance diagram for Materials_Color:
Inheritance graph
[legend]

Public Member Functions

 Materials_Color ()
 Creates an empty instance of Color.
More...
 
 Materials_Color (const Quantity_Color &acolor)
 Creates an instance of Color, with <acolor> as color.
More...
 
void Color (const Quantity_Color &acolor)
 Sets <acolor> into <me>.
More...
 
Quantity_Color Color () const
 Returns a Quantity_Color corresponding to <me>.
More...
 
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
More...
 
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
More...
 
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
More...
 
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
More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual void ShallowDump (Standard_OStream &) const
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Detailed Description

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

Constructor & Destructor Documentation

Materials_Color::Materials_Color ( )

Creates an empty instance of Color.

Materials_Color::Materials_Color ( const Quantity_Color acolor)

Creates an instance of Color, with <acolor> as color.

Member Function Documentation

void Materials_Color::Color ( const Quantity_Color acolor)

Sets <acolor> into <me>.

Quantity_Color Materials_Color::Color ( ) const

Returns a Quantity_Color corresponding to <me>.

void Materials_Color::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 Materials_Color::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 Materials_Color::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 Materials_Color::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


The documentation for this class was generated from the following file: