[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
Size2D Class Reference | ![]() |
---|
Two dimensional size object. More...
#include "vigra/diff2d.hxx"
Inheritance diagram for Size2D:
Public Methods | |
Size2D () | |
Size2D (int width, int height) | |
Size2D (Size2D const &v) | |
Size2D (Diff2D const &v) | |
int | width () const |
int | height () const |
Size2D & | operator= (Diff2D const &v) |
Size2D | operator- () const |
Size2D & | operator+= (Diff2D const &offset) |
Size2D & | operator-= (Diff2D const &offset) |
Detailed Description |
Specializes Diff2D for the specification of a 2-dimensional extent, in contrast to a point or position (for the latter use Point2D).
// create an image that is 10 pixels squared Image new_image(Size2D(10,10));
#include "vigra/utilities.hxx"
Namespace: vigra
|
Default Constructor. Init point at position (0,0) |
|
Construct point at given position. |
|
Copy Constructor. |
|
Explicit conversion Constructor. |
|
Query the height |
|
Increase size by specified offset. Reimplemented from Diff2D. |
|
Unary negation. Reimplemented from Diff2D. |
|
Decrease size by specified offset. Reimplemented from Diff2D. |
|
Copy Assigment. Reimplemented from Diff2D. |
|
Query the width |
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|