L4T Multimedia API Reference

32.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Argus::RGBTuple< T > Class Template Reference

Detailed Description

template<typename T>
class Argus::RGBTuple< T >

RGBTuple template class.

This is a Tuple specialization containing 3 elements corresponding to the RGB color channels: R, G, and B. Values can be accessed using the named methods or subscript indexing using the Argus::RGBChannel enum.

Definition at line 575 of file Types.h.

Inheritance diagram for Argus::RGBTuple< T >:
Collaboration diagram for Argus::RGBTuple< T >:

Public Member Functions

 RGBTuple ()
 
 RGBTuple (const Tuple< RGB_CHANNEL_COUNT, T > &other)
 
 RGBTuple (T init)
 
 RGBTuple (T _r, T _g, T _b)
 
T & r ()
 
const T & r () const
 
T & g ()
 
const T & g () const
 
T & b ()
 
const T & b () const
 
bool operator== (const Tuple< N, T > &rhs) const
 Returns true when every element in the two tuples are identical. More...
 
bool operator!= (const Tuple< N, T > &rhs) const
 Returns true if there are any differences between the two tuples. More...
 
Tuple< N, T > & operator+= (const Tuple< N, T > &rhs)
 Adds every element of another tuple to the elements of this tuple. More...
 
Tuple< N, T > & operator-= (const Tuple< N, T > &rhs)
 Subtracts every element of another tuple from the elements of this tuple. More...
 
Tuple< N, T > & operator*= (const T &rhs)
 Multiplies every element in the tuple by a single value. More...
 
Tuple< N, T > & operator/= (const T &rhs)
 Divides every element in the tuple by a single value. More...
 
const Tuple< N, T > operator+ (const Tuple< N, T > &rhs) const
 Returns the result of adding another tuple to this tuple. More...
 
const Tuple< N, T > operator- (const Tuple< N, T > &rhs) const
 Returns the result of subtracting another tuple from this tuple. More...
 
const Tuple< N, T > operator* (const T &rhs) const
 Returns the result of multiplying this tuple by a single value. More...
 
const Tuple< N, T > operator/ (const T &rhs) const
 Returns the result of dividing this tuple by a single value. More...
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 

Static Public Member Functions

static unsigned int tupleSize ()
 Returns the number of elements in the tuple. More...
 

Protected Attributes

m_data [N]
 

Constructor & Destructor Documentation

template<typename T >
Argus::RGBTuple< T >::RGBTuple ( )
inline

Definition at line 578 of file Types.h.

template<typename T >
Argus::RGBTuple< T >::RGBTuple ( const Tuple< RGB_CHANNEL_COUNT, T > &  other)
inline

Definition at line 579 of file Types.h.

template<typename T >
Argus::RGBTuple< T >::RGBTuple ( init)
inline
template<typename T >
Argus::RGBTuple< T >::RGBTuple ( _r,
_g,
_b 
)
inline

Member Function Documentation

template<typename T >
T& Argus::RGBTuple< T >::b ( )
inline

Definition at line 597 of file Types.h.

References Argus::RGB_CHANNEL_B.

Referenced by Argus::RGBTuple< T >::RGBTuple().

template<typename T >
const T& Argus::RGBTuple< T >::b ( ) const
inline

Definition at line 598 of file Types.h.

References Argus::RGB_CHANNEL_B.

template<typename T >
T& Argus::RGBTuple< T >::g ( )
inline

Definition at line 595 of file Types.h.

References Argus::RGB_CHANNEL_G.

Referenced by Argus::RGBTuple< T >::RGBTuple().

template<typename T >
const T& Argus::RGBTuple< T >::g ( ) const
inline

Definition at line 596 of file Types.h.

References Argus::RGB_CHANNEL_G.

bool Argus::Tuple< N, T >::operator!= ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns true if there are any differences between the two tuples.

Definition at line 463 of file Types.h.

const Tuple<N, T> Argus::Tuple< N, T >::operator* ( const T &  rhs) const
inlineinherited

Returns the result of multiplying this tuple by a single value.

Definition at line 513 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator*= ( const T &  rhs)
inlineinherited

Multiplies every element in the tuple by a single value.

Definition at line 485 of file Types.h.

const Tuple<N, T> Argus::Tuple< N, T >::operator+ ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns the result of adding another tuple to this tuple.

Definition at line 501 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator+= ( const Tuple< N, T > &  rhs)
inlineinherited

Adds every element of another tuple to the elements of this tuple.

Definition at line 469 of file Types.h.

const Tuple<N, T> Argus::Tuple< N, T >::operator- ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns the result of subtracting another tuple from this tuple.

Definition at line 507 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator-= ( const Tuple< N, T > &  rhs)
inlineinherited

Subtracts every element of another tuple from the elements of this tuple.

Definition at line 477 of file Types.h.

const Tuple<N, T> Argus::Tuple< N, T >::operator/ ( const T &  rhs) const
inlineinherited

Returns the result of dividing this tuple by a single value.

Definition at line 519 of file Types.h.

Tuple<N, T>& Argus::Tuple< N, T >::operator/= ( const T &  rhs)
inlineinherited

Divides every element in the tuple by a single value.

Definition at line 493 of file Types.h.

bool Argus::Tuple< N, T >::operator== ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns true when every element in the two tuples are identical.

Definition at line 457 of file Types.h.

T& Argus::Tuple< N, T >::operator[] ( unsigned int  i)
inlineinherited

Definition at line 524 of file Types.h.

const T& Argus::Tuple< N, T >::operator[] ( unsigned int  i) const
inlineinherited

Definition at line 525 of file Types.h.

template<typename T >
T& Argus::RGBTuple< T >::r ( )
inline

Definition at line 593 of file Types.h.

References Argus::RGB_CHANNEL_R.

Referenced by Argus::RGBTuple< T >::RGBTuple().

template<typename T >
const T& Argus::RGBTuple< T >::r ( ) const
inline

Definition at line 594 of file Types.h.

References Argus::RGB_CHANNEL_R.

static unsigned int Argus::Tuple< N, T >::tupleSize ( )
inlinestaticinherited

Returns the number of elements in the tuple.

Definition at line 528 of file Types.h.

Field Documentation

T Argus::Tuple< N, T >::m_data[N]
protectedinherited

Definition at line 531 of file Types.h.


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