[ 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:
List of all members.
Two dimensional size object.
Specializes Diff2D for the specification of a 2-dimensional extent, in contrast to a point or position (for the latter use Point2D).
Image new_image(Size2D(10,10));
#include "vigra/utilities.hxx"
Namespace: vigra
Constructor & Destructor Documentation
|
Default Constructor. Init point at position (0,0) |
Size2D |
( |
int |
width, |
|
|
int |
height |
|
) |
[inline] |
|
|
Construct point at given position. |
Size2D |
( |
Size2D const & |
v |
) |
[inline] |
|
Size2D |
( |
Diff2D const & |
v |
) |
[inline, explicit] |
|
|
Explicit conversion Constructor. |
Member Function Documentation
int area |
( |
|
) |
const [inline] |
|
int height |
( |
|
) |
const [inline] |
|
Size2D& operator+= |
( |
Diff2D const & |
offset |
) |
[inline] |
|
|
Increase size by specified offset.
Reimplemented from Diff2D. |
Size2D operator- |
( |
|
) |
const [inline] |
|
|
Unary negation.
Reimplemented from Diff2D. |
Size2D& operator-= |
( |
Diff2D const & |
offset |
) |
[inline] |
|
|
Decrease size by specified offset.
Reimplemented from Diff2D. |
Size2D& operator= |
( |
Diff2D const & |
v |
) |
[inline] |
|
|
Copy Assigment.
Reimplemented from Diff2D. |
void setHeight |
( |
int |
h |
) |
[inline] |
|
void setWidth |
( |
int |
w |
) |
[inline] |
|
int width |
( |
|
) |
const [inline] |
|
The documentation for this class was generated from the following file: