Simple++
Powerfull and lightning fast C++ Library
Public Member Functions | Protected Attributes | List of all members
Graphic::GradientInterpolation< C, InterFunc > Class Template Reference

base class of an interpolated gradient More...

#include <GradientInterpolated.h>

Inheritance diagram for Graphic::GradientInterpolation< C, InterFunc >:
Graphic::ColorFunc::GradientHorizontal< C, InterFunc > Graphic::ColorFunc::GradientLinear< C, InterFunc > Graphic::ColorFunc::GradientRadial< C, InterFunc > Graphic::ColorFunc::GradientVertical< C, InterFunc >

Public Member Functions

 GradientInterpolation ()
 
 ~GradientInterpolation ()
 destructor More...
 
 GradientInterpolation (const GradientInterpolation< C, InterFunc > &gradient)
 copy constructor More...
 
 GradientInterpolation (GradientInterpolation< C, InterFunc > &&gradient)
 move constructor More...
 
const Math::Rectangle< Size > & getClampedRectangle () const
 get the effective rectangle of this gradient (intersection between the specified rectangle and the specified image) More...
 
size_t getSize () const
 get the size of the interpolations datas More...
 
const C * getInterpolatedDatas () const
 direct access to the interpolated array More...
 
GradientInterpolation< C, InterFunc > & operator= (const GradientInterpolation< C, InterFunc > &gradient)
 copy operator More...
 
GradientInterpolation< C, InterFunc > & operator= (GradientInterpolation< C, InterFunc > &&gradient)
 move operator More...
 

Protected Attributes

C * interpolatedArray
 
Math::Rectangle< SizeclampedRectangle
 
int size
 

Detailed Description

template<typename C, typename InterFunc>
class Graphic::GradientInterpolation< C, InterFunc >

base class of an interpolated gradient

Constructor & Destructor Documentation

template<typename C , typename InterFunc >
Graphic::GradientInterpolation< C, InterFunc >::GradientInterpolation ( )
template<typename C , typename InterFunc >
Graphic::GradientInterpolation< C, InterFunc >::~GradientInterpolation ( )

destructor

template<typename C , typename InterFunc >
Graphic::GradientInterpolation< C, InterFunc >::GradientInterpolation ( const GradientInterpolation< C, InterFunc > &  gradient)

copy constructor

template<typename C , typename InterFunc >
Graphic::GradientInterpolation< C, InterFunc >::GradientInterpolation ( GradientInterpolation< C, InterFunc > &&  gradient)

move constructor

Member Function Documentation

template<typename C , typename InterFunc >
const Math::Rectangle< Size > & Graphic::GradientInterpolation< C, InterFunc >::getClampedRectangle ( ) const

get the effective rectangle of this gradient (intersection between the specified rectangle and the specified image)

Returns
rectangle
template<typename C , typename InterFunc >
const C * Graphic::GradientInterpolation< C, InterFunc >::getInterpolatedDatas ( ) const

direct access to the interpolated array

Parameters
arrayof data interpolated
template<typename C , typename InterFunc >
size_t Graphic::GradientInterpolation< C, InterFunc >::getSize ( ) const

get the size of the interpolations datas

Returns
size of the interpolation array
template<typename C , typename InterFunc >
GradientInterpolation< C, InterFunc > & Graphic::GradientInterpolation< C, InterFunc >::operator= ( const GradientInterpolation< C, InterFunc > &  gradient)

copy operator

template<typename C , typename InterFunc >
GradientInterpolation< C, InterFunc > & Graphic::GradientInterpolation< C, InterFunc >::operator= ( GradientInterpolation< C, InterFunc > &&  gradient)

move operator

Member Data Documentation

template<typename C, typename InterFunc>
Math::Rectangle<Size> Graphic::GradientInterpolation< C, InterFunc >::clampedRectangle
protected
template<typename C, typename InterFunc>
C* Graphic::GradientInterpolation< C, InterFunc >::interpolatedArray
protected
template<typename C, typename InterFunc>
int Graphic::GradientInterpolation< C, InterFunc >::size
protected

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