1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef _LINE_IMAGE_H
- #define _LINE_IMAGE_H
- #include <iostream>
- #include <core/image/Drawable.h>
- #include <core/image/CoordT.h>
- #include <core/image/ColorT.h>
- namespace NICE {
- template<class P>
- class LineT : public Drawable<P>
- {
- private:
- bool steep;
- Coord begin;
- Coord end;
- protected:
- void doDraw(ColorImageT<P> &image, const ColorT<P>& color) const;
- void doDraw(ImageT<P> &image, const P& gray) const;
- public:
-
- inline LineT() {}
-
-
- LineT(const Coord &begin, const Coord &end);
-
-
- LineT(const Coord &begin, const Coord &end, const ColorT<P>& _defaultColor);
-
-
- LineT(const LineT<P>& arg);
-
- virtual ~LineT();
-
-
- LineT<P>& operator=(const LineT<P>& ex);
-
-
- bool operator==(const LineT<P>& ex) const;
-
-
- bool operator!=(const LineT<P>& ex) const;
- };
- typedef LineT<Ipp8u> Line;
- }
- #include "core/image/LineT.tcc"
- #endif
|