SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Public Member Functions | Public Attributes | Related Functions | List of all members
CVD::Rgba< T > Class Template Reference

#include <rgba.h>

Public Member Functions

 Rgba ()
 Default constructor. Does nothing. More...
 
 Rgba (T r, T g, T b, T a)
 
Rgba< T > & operator= (const Rgba< T > &c)
 
template<typename T2 >
Rgba< T > & operator= (const Rgba< T2 > &c)
 
bool operator== (const Rgba< T > &c) const
 
bool operator!= (const Rgba< T > &c) const
 

Public Attributes

red
 The red component. More...
 
green
 The green component. More...
 
blue
 The blue component. More...
 
alpha
 The alpha component. More...
 

Related Functions

(Note that these are not member functions.)

template<typename T >
std::ostream & operator<< (std::ostream &os, const Rgba< T > &x)
 
std::ostream & operator<< (std::ostream &os, const Rgba< unsigned char > &x)
 

Detailed Description

template<typename T>
class CVD::Rgba< T >

A colour consisting of red, green, blue and alpha components

Parameters
TThe datatype of each component

Definition at line 38 of file rgba.h.

Constructor & Destructor Documentation

template<typename T>
CVD::Rgba< T >::Rgba ( )
inline

Default constructor. Does nothing.

Definition at line 42 of file rgba.h.

template<typename T>
CVD::Rgba< T >::Rgba ( r,
g,
b,
a 
)
inline

Constructs a colour as specified

Parameters
rThe red component
gThe green component
bThe blue component
aThe alpha component

Definition at line 48 of file rgba.h.

Member Function Documentation

template<typename T>
bool CVD::Rgba< T >::operator!= ( const Rgba< T > &  c) const
inline

Logical not-equals operator. Returns true unless each component is the same.

Parameters
cRgba to compare with

Definition at line 78 of file rgba.h.

template<typename T>
Rgba<T>& CVD::Rgba< T >::operator= ( const Rgba< T > &  c)
inline

Assignment operator

Parameters
cThe colour to copy from

Definition at line 57 of file rgba.h.

template<typename T>
template<typename T2 >
Rgba<T>& CVD::Rgba< T >::operator= ( const Rgba< T2 > &  c)
inline

Assignment operator between two different storage types, using the standard casts as necessary

Parameters
cThe colour to copy from

Definition at line 63 of file rgba.h.

template<typename T>
bool CVD::Rgba< T >::operator== ( const Rgba< T > &  c) const
inline

Logical equals operator. Returns true if each component is the same.

Parameters
cRgba to compare with

Definition at line 73 of file rgba.h.

Friends And Related Function Documentation

template<typename T >
std::ostream & operator<< ( std::ostream &  os,
const Rgba< T > &  x 
)
related

Write the colour to a stream in the format "(red,green,blue,alpha)"

Parameters
osThe stream
xThe colour object

Definition at line 89 of file rgba.h.

template<typename T>
std::ostream & operator<< ( std::ostream &  os,
const Rgba< unsigned char > &  x 
)
related

Write the colour to a stream in the format "(red,green,blue,alpha)"

Parameters
osThe stream
xThe colour object

Definition at line 99 of file rgba.h.

Member Data Documentation

template<typename T>
T CVD::Rgba< T >::alpha

The alpha component.

Definition at line 53 of file rgba.h.

template<typename T>
T CVD::Rgba< T >::blue

The blue component.

Definition at line 52 of file rgba.h.

template<typename T>
T CVD::Rgba< T >::green

The green component.

Definition at line 51 of file rgba.h.

template<typename T>
T CVD::Rgba< T >::red

The red component.

Definition at line 50 of file rgba.h.


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