127 template<
class Iterator>
134 template<
class Iterator>
142 template<
class Value>
148 template<
class Iterator>
154 inline int getWidth()
const {
return m_size.width; }
202 if(
m_data.use_count() > 1){
const T & operator()(int x, int y) const
returns element at given x,y position (const)
Definition: Array2D.h:176
const_iterator end() const
upper left matrix element iterator
Definition: Array2D.h:189
iterator end()
upper left matrix element iterator
Definition: Array2D.h:186
Array2D(const Size &s)
Creates an uninitialized matrix of given size.
Definition: Array2D.h:85
undocument this line if you encounter any issues!
Definition: Any.h:37
const T & maxElem(Point *pos=0) const
returns the maximum element of the matrix (operator < must be defined on T)
Definition: Array2D.h:227
const Size & getSize() const
returns the matrix size
Definition: Array2D.h:163
void detach()
ensures that the contained data is not shared by other instances
Definition: Array2D.h:201
const_iterator begin() const
upper left matrix element iterator (const)
Definition: Array2D.h:183
T & operator()(int x, int y)
returns element at given x,y position
Definition: Array2D.h:173
void assign(Iterator begin, Iterator end)
Assigns the matrix from given range.
Definition: Array2D.h:149
const T & operator[](int idx) const
returns element at given linear index (const)
Definition: Array2D.h:170
Array2D(int w, int h, T *data, bool deepCopy=false)
Creates a matrix of size w x h, using given (optionally shared) data.
Definition: Array2D.h:103
T * iterator
iterator type (just a T*)
Definition: Array2D.h:72
const T * data() const
returns the data pointer (const version)
Definition: Array2D.h:213
Array2D(int w, int h, const T *data)
Creates a matrix of size w x h, using given const data (always deep copy)
Definition: Array2D.h:115
Array2D(const Size &s, const T *data)
Creates a matrix of given Size using given const data (always deep copy)
Definition: Array2D.h:121
Array2D(int w, int h)
Creates an uninitialized matrix of given size.
Definition: Array2D.h:81
Array2D(const Size &s, Iterator begin, Iterator end)
Creates a matrix of size w x h, initialized with content from given range.
Definition: Array2D.h:135
ICLQt_API void fill(float r, float g=-1, float b=-1, float alpha=255)
sets the current fill color to given r,g,b,alpha value
int getDim() const
returns the matrix dimension (width*height)
Definition: Array2D.h:160
Size m_size
current dimension
Definition: Array2D.h:64
T * data()
returns the data pointer
Definition: Array2D.h:210
Size class of the ICL.
Definition: Size.h:61
const T & minElem(Point *pos=0) const
returns the minumum element of the matrix (operator < must be defined on T)
Definition: Array2D.h:218
Specialization of the SmartPtrBase class for Arrays.
Definition: SmartArray.h:46
T * get()
returns the pointer to the data
Definition: SmartPtrBase.h:345
Array2D(const Size &s, T *data, bool deepCopy=false)
Creates a matrix of given Size, using given (optionally shared) data.
Definition: Array2D.h:109
Array2D(int w, int h, Init init)
Creates an initialized matrix with given initializer.
Definition: Array2D.h:90
Array2D< T > deepCopy() const
returns a deep copy of this matrix
Definition: Array2D.h:192
void setSize(const Size &size, const Init &init)
sets size and fills with new entries
Definition: Array2D.h:246
Array2D(int w, int h, Iterator begin, Iterator end)
Creates a matrix of size w x h, initialized with content from given range.
Definition: Array2D.h:128
SmartArray< T > m_data
current data
Definition: Array2D.h:67
Simple 2D-Array class that provides shallow copy per default.
Definition: Array2D.h:61
void fill(Value val)
fills the matrix with given value
Definition: Array2D.h:143
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
T & operator[](int idx)
returns element at given linear index
Definition: Array2D.h:167
Array2D(const Size &s, Init init)
Creates an initialized matrix with given initializer.
Definition: Array2D.h:97
void setSize(const Size &size)
sets a new size
Definition: Array2D.h:236
int getDim() const
reutrns width*height
Definition: Size.h:211
void copy(const T *src, const T *srcEnd, T *dst)
moves data from source to destination array (no casting possible)
Definition: CoreFunctions.h:216
const T * const_iterator
const iterator type (just a const T*)
Definition: Array2D.h:75
iterator begin()
upper left matrix element iterator
Definition: Array2D.h:180
Array2D()
Creates null instance.
Definition: Array2D.h:78
int getWidth() const
returns the matrix width
Definition: Array2D.h:154
int getHeight() const
returns the matrix height
Definition: Array2D.h:157