using handle<value_type>::unique;
using handle<value_type>::operator bool;
using handle<value_type>::get;
- using handle<value_type>::operator *;
- using handle<value_type>::operator ->;
+ using handle<value_type>::operator*;
+ using handle<value_type>::operator->;
/*
operator const handle<value_type>&()const
/* === P R O C E D U R E S ================================================= */
/* === M E T H O D S ======================================================= */
-Point Blur::operator ()(const Point &pos) const
+Point Blur::operator()(const Point &pos) const
{
Point blurpos(pos);
return blurpos;
}
-Point Blur::operator ()(synfig::Real x, synfig::Real y) const
+Point Blur::operator()(synfig::Real x, synfig::Real y) const
{
return (*this)(Point(x,y));
}
}
//THE GOOD ONE!!!!!!!!!
-bool Blur::operator ()(const Surface &surface,
- const Vector &resolution,
- Surface &out) const
+bool Blur::operator()(const Surface &surface,
+ const Vector &resolution,
+ Surface &out) const
{
int w = surface.get_w(),
h = surface.get_h();
return true;
}
-bool Blur::operator ()(const etl::surface<float> &surface,
- const synfig::Vector &resolution,
- etl::surface<float> &out) const
+bool Blur::operator()(const etl::surface<float> &surface,
+ const synfig::Vector &resolution,
+ etl::surface<float> &out) const
{
int w = surface.get_w(),
h = surface.get_h();
Blur(synfig::Real sx, synfig::Real sy, int t, synfig::ProgressCallback *callb = 0): size(sx,sy), type(t), cb(callb) {}
//Parametric Blur
- synfig::Point operator ()(const synfig::Point &p) const;
- synfig::Point operator ()(synfig::Real x, synfig::Real y) const;
+ synfig::Point operator()(const synfig::Point &p) const;
+ synfig::Point operator()(synfig::Real x, synfig::Real y) const;
//Surface based blur
// input surface can be the same as output surface,
// though both have to be the same size
- bool operator ()(const synfig::Surface &surface, const synfig::Vector &resolution, synfig::Surface &out) const;
+ bool operator()(const synfig::Surface &surface, const synfig::Vector &resolution, synfig::Surface &out) const;
- bool operator ()(const etl::surface<float> &surface, const synfig::Vector &resolution, etl::surface<float> &out) const;
- //bool operator ()(const etl::surface<unsigned char> &surface, const synfig::Vector &resolution, etl::surface<unsigned char> &out) const;
+ bool operator()(const etl::surface<float> &surface, const synfig::Vector &resolution, etl::surface<float> &out) const;
+ //bool operator()(const etl::surface<unsigned char> &surface, const synfig::Vector &resolution, etl::surface<unsigned char> &out) const;
};
/* === E N D =============================================================== */
}else return curveindex < rhs.curveindex;
}
- bool operator >(const ipoint &rhs) const
+ bool operator>(const ipoint &rhs) const
{
return rhs < *this;
}
- only works with odd-even rule
*/
-CurveSet CurveSet::operator &(const CurveSet &/*rhs*/) const
+CurveSet CurveSet::operator&(const CurveSet &/*rhs*/) const
{
return *this;
}
-CurveSet CurveSet::operator |(const CurveSet &/*rhs*/) const
+CurveSet CurveSet::operator|(const CurveSet &/*rhs*/) const
{
return *this;
}
-CurveSet CurveSet::operator -(const CurveSet &/*rhs*/) const
+CurveSet CurveSet::operator-(const CurveSet &/*rhs*/) const
{
return *this;
}
CleanUp(invert);
}
- CurveSet operator &(const CurveSet &rhs) const; //intersect
- CurveSet operator |(const CurveSet &rhs) const; //union
- CurveSet operator -(const CurveSet &rhs) const; //subtract
+ CurveSet operator&(const CurveSet &rhs) const; //intersect
+ CurveSet operator|(const CurveSet &rhs) const; //union
+ CurveSet operator-(const CurveSet &rhs) const; //subtract
//Point containment
void setcover(Real c, Real a) { cover = c; area = a; }
void addcover(Real c, Real a) { cover += c; area += a; }
- bool operator < (const PenMark &rhs) const
+ bool operator<(const PenMark &rhs) const
{
return y == rhs.y ? x < rhs.x : y < rhs.y;
}
}
void
-synfigapp::BLineConverter::operator () (std::list<synfig::BLinePoint> &out, const std::list<synfig::Point> &in,const std::list<synfig::Real> &in_w)
+synfigapp::BLineConverter::operator()(std::list<synfig::BLinePoint> &out, const std::list<synfig::Point> &in,const std::list<synfig::Real> &in_w)
{
//Profiling information
/*etl::clock::value_type initialprocess=0, curveval=0, breakeval=0, disteval=0;
:curind(o.curind), tangentscale(o.tangentscale), error(o.error)
{}
- const cpindex & operator = (const cpindex & rhs)
+ const cpindex & operator=(const cpindex & rhs)
{
curind = rhs.curind;
tangentscale = rhs.tangentscale;
return *this;
}
- bool operator < (const cpindex &rhs) const
+ bool operator<(const cpindex &rhs) const
{
return curind < rhs.curind;
}
BLineConverter();
static void EnforceMinWidth(std::list<synfig::BLinePoint> &bline, synfig::Real min_pressure);
- void operator ()(std::list<synfig::BLinePoint> &out, const std::list<synfig::Point> &in,const std::list<synfig::Real> &in_w);
+ void operator()(std::list<synfig::BLinePoint> &out, const std::list<synfig::Point> &in,const std::list<synfig::Real> &in_w);
};
}; // END of namespace synfigapp