[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
Point2D Class Reference | ![]() |
---|
Two dimensional point or position. More...
#include "vigra/diff2d.hxx"
Inheritance diagram for Point2D:
Public Types | |
typedef Point2D | PixelType |
typedef Point2D | value_type |
typedef Point2D const & | reference |
typedef Point2D | index_reference |
typedef Point2D const * | pointer |
Public Methods | |
Point2D () | |
Point2D (int x, int y) | |
Point2D (Point2D const &v) | |
Point2D (Diff2D const &v) | |
int | px () const |
int | py () const |
Point2D & | operator= (Diff2D const &v) |
Point2D | operator- () const |
Point2D & | operator+= (Diff2D const &offset) |
Point2D & | operator-= (Diff2D const &offset) |
reference | operator * () const |
index_reference | operator() (int const &dx, int const &dy) const |
index_reference | operator[] (Diff2D const &offset) const |
pointer | operator-> () const |
Detailed Description |
Specializes Diff2D for the specification of a 2-dimensional point or position, in contrast to an extent (for the latter use Size2D).
// access an image at a point value = image[Point2D(10, 20)];
#include "vigra/utilities.hxx"
Namespace: vigra
|
the iterator's index reference type (return type of Reimplemented from Diff2D. |
|
The iterator's value type: a coordinate. Reimplemented from Diff2D. |
|
the iterator's pointer type (return type of Reimplemented from Diff2D. |
|
the iterator's reference type (return type of Reimplemented from Diff2D. |
|
The iterator's value type: a coordinate. Reimplemented from Diff2D. |
|
Default Constructor. Init point at position (0,0) |
|
Construct point at given position. |
|
Copy Constructor. |
|
Explicit conversion Constructor. |
|
Access current point coordinate. Reimplemented from Diff2D. |
|
Read point coordinate at an offset. Reimplemented from Diff2D. |
|
Increase point coordinates by specified offset. Reimplemented from Diff2D. |
|
Unary negation. Reimplemented from Diff2D. |
|
Decrease point coordinates by specified offset. Reimplemented from Diff2D. |
|
Access current point coordinate. Reimplemented from Diff2D. |
|
Copy Assigment. Reimplemented from Diff2D. |
|
Read point coordinate at an offset. Reimplemented from Diff2D. |
|
Query the points' x coordinate |
|
Query the points' y coordinate |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|