#include <vuFixel.h>
Collaboration diagram for vuFixel< SIZE, TYPE >:

Public Member Functions | |
| vuFixel () | |
| default constructor. | |
| vuFixel (const vuFixel< SIZE, TYPE > &inst) | |
| copy constructor | |
| vuFixel (const TYPE *array) | |
| initialize all components with values from array | |
| vuFixel (const TYPE value) | |
| initialize all values with value | |
| ~vuFixel () | |
| destructor | |
| TYPE & | operator[] (unsigned int index) |
| provides direct random access to the components | |
| TYPE | operator[] (unsigned int index) const |
| provides direct reading access to the components | |
| TYPE * | getBuffer () |
| returns a pointer to the TYPE array containing the data | |
| TYPE const * | getBuffer () const |
| const version of getBuffer() | |
| vuFixel< SIZE, TYPE > & | operator= (const TYPE *rhs) |
| assignment from const TYPE* | |
| vuFixel< SIZE, TYPE > & | operator= (TYPE *rhs) |
| assignment from TYPE* | |
| vuFixel< SIZE, TYPE > & | operator= (const vuFixel< SIZE, TYPE > &rhs) |
| assignment operator | |
| bool | operator== (const vuFixel< SIZE, TYPE > &rhs) const |
| operator ==, This returns true if the two fixels are equivalent. | |
| vuFixel< SIZE, TYPE > | operator+ (const vuFixel< SIZE, TYPE > &rhs) const |
| addition operator, This performs a component wise addition of each component of the 2 fixels and returns the result. | |
| vuFixel< SIZE, TYPE > | operator+ (TYPE a) const |
| addition operator, This will add a to the all components | |
| vuFixel< SIZE, TYPE > | operator- (const vuFixel< SIZE, TYPE > &rhs) const |
| minus operator, This will perform a component wise subtraction on all components | |
| vuFixel< SIZE, TYPE > | operator * (const vuFixel< SIZE, TYPE > &rhs) const |
| multiply operator, This will perform a component wise multiplication on all components | |
| vuFixel< SIZE, TYPE > | operator/ (const vuFixel< SIZE, TYPE > &rhs) const |
| divide operator, This will perform a component wise division on all components | |
| vuFixel< SIZE, TYPE > | operator * (TYPE rhs) const |
| operator multiplication with scalar In comparision to *= this operator creates a copy where the result written to. | |
| vuFixel< SIZE, TYPE > & | operator+= (const vuFixel< SIZE, TYPE > &rhs) |
| operator for component wise addition | |
| vuFixel< SIZE, TYPE > & | operator-= (const vuFixel< SIZE, TYPE > &rhs) |
| operator for component wise subtraction | |
| vuFixel< SIZE, TYPE > & | operator *= (const vuFixel< SIZE, TYPE > &rhs) |
| operator for component wise multiplication | |
| vuFixel< SIZE, TYPE > & | operator/= (const vuFixel< SIZE, TYPE > &rhs) |
| operator for component wise division | |
| vuFixel< SIZE, TYPE > & | operator *= (TYPE rhs) |
| operator for multiplication with scalar | |
| vuFixel< SIZE, TYPE > & | operator/= (TYPE rhs) |
| operator for division by scalar | |
| word | size () const |
| returns the number of components. | |
| TYPE | maxComponent () const |
| returns value of maximal component | |
| TYPE | minComponent () const |
| returns value of minimal component | |
| istream & | read (istream &is) |
| a friend, read fixel from stream | |
| ostream & | write (ostream &os) const |
| a friend, write fixel to stream | |
Protected Attributes | |
| TYPE | m_buffer [SIZE] |
A fixel is an arbitrary FIeld ELement, comparable to a colour, but does not support alpha.
It's a one dimensional vector of length SIZE and basic type TYPE.
Definition at line 19 of file vuFixel.h.
|
|||||||||
|
default constructor. Sets all values to zero. Definition at line 5 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
copy constructor
Definition at line 11 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
initialize all components with values from array
Definition at line 17 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
initialize all values with value
Definition at line 23 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
|||||||||
|
destructor
Definition at line 29 of file vuFixel.cpp. |
|
|||||||||
|
const version of getBuffer()
Definition at line 52 of file vuFixel.cpp. References T. |
|
|||||||||
|
returns a pointer to the TYPE array containing the data
Definition at line 46 of file vuFixel.cpp. References T. |
|
|||||||||
|
returns value of maximal component
Definition at line 197 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer, and T. |
|
|||||||||
|
returns value of minimal component
Definition at line 206 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer, and T. |
|
||||||||||
|
operator multiplication with scalar In comparision to *= this operator creates a copy where the result written to.
Definition at line 134 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
multiply operator, This will perform a component wise multiplication on all components
Definition at line 116 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator for multiplication with scalar
Definition at line 175 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator for component wise multiplication
Definition at line 159 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
addition operator, This will add a to the all components
Definition at line 98 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
addition operator, This performs a component wise addition of each component of the 2 fixels and returns the result.
Definition at line 89 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator for component wise addition
Definition at line 143 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
minus operator, This will perform a component wise subtraction on all components
Definition at line 107 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator for component wise subtraction
Definition at line 151 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
divide operator, This will perform a component wise division on all components
Definition at line 125 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator for division by scalar
Definition at line 183 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator for component wise division
Definition at line 167 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
assignment operator
Definition at line 72 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
assignment from TYPE*
Definition at line 65 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
assignment from const TYPE*
Definition at line 58 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
operator ==, This returns true if the two fixels are equivalent.
Definition at line 81 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer. |
|
||||||||||
|
provides direct reading access to the components
Definition at line 40 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer, and T. |
|
||||||||||
|
provides direct random access to the components
Definition at line 34 of file vuFixel.cpp. References vuFixel< SIZE, TYPE >::m_buffer, and T. |
|
||||||||||
|
a friend, read fixel from stream
|
|
|||||||||
|
returns the number of components. This depends on the SIZE given during creation of the template. Definition at line 191 of file vuFixel.cpp. References word. |
|
||||||||||
|
a friend, write fixel to stream
|
|
|||||
1.3.9.1