Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTRGB Class Reference

RGB Implemented in: tvu_geometry.cpp. More...

#include <tvu_typesdef.h>

Inheritance diagram for CTRGB::

CTObject

Public Methods

 CTRGB ()
 CTRGB (TINT _r, TINT _g, TINT _b)
 DEFINE_ID_FUNCTIONS (CTRGB, CTObject, CLASSNAME_TYPE_RGB_ID, CLASSNAME_TYPE_RGB) public
TBOOL Set (TLPCSTR lpStrColor)
 Set color from a string. More...

TBOOL Set (CTString &StrColor)
virtual CTObjectSetValue (CTList pValues)
 For calculation. More...

virtual CTObjectCalculate (TINT iOperator, CTObject *Object)
 Operations Comparing operations Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt. More...

TBOOL operator== (TRGB rgb)
 Comparing operations. More...

TBOOL operator== (CTRGB &rgb)
TBOOL operator!= (TRGB rgb)
TBOOL operator!= (CTRGB &rgb)
CTRGB& operator= (CTRGB &rgb)
TRGB toRGB ()
 Convert. More...


Data Fields

TINT r
 Data. More...

TINT g
 Data. More...

TINT b
 Data. More...


Detailed Description

RGB Implemented in: tvu_geometry.cpp.


Member Function Documentation

CTObject * CTRGB::Calculate ( TINT iOperator,
CTObject * Object ) [virtual]
 

Operations Comparing operations Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt.

Reimplemented from CTObject.

TBOOL CTRGB::Set ( TLPCSTR lpStrColor )
 

Set color from a string.

CTObject * CTRGB::SetValue ( CTList pValues ) [virtual]
 

For calculation.

Reimplemented from CTObject.

TBOOL CTRGB::operator== ( TRGB rgb ) [inline]
 

Comparing operations.

01730 { return (r == rgb.r) && (g == rgb.g) && (b == rgb.b);} ;

TRGB CTRGB::toRGB ( ) [inline]
 

Convert.

01737 { TRGB rgb = {r, g, b}; return rgb; };


Field Documentation

TINT CTRGB::b
 

Data.

TINT CTRGB::g
 

Data.

TINT CTRGB::r
 

Data.


The documentation for this class was generated from the following file:
Generated at Wed Aug 6 15:59:01 2003 for TVU's libraries for video surveillance: by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001