18 #ifndef EQFABRIC_ZOOM_H 19 #define EQFABRIC_ZOOM_H 22 #include <eq/fabric/types.h> 23 #include <eq/fabric/vmmlib.h> 35 class Zoom :
public Vector2f
45 Zoom(
const float x_,
const float y_)
52 bool isValid()
const {
return (x() != 0.f && y() != 0.f); }
63 void invalidate() { x() = y() = 0.f; }
65 void apply(
const Zoom& rhs)
75 inline std::ostream&
operator<<(std::ostream& os,
const Zoom& zoom)
78 os <<
"zoom [ " << zoom.x() <<
' ' << zoom.y() <<
" ]";
84 #endif // EQFABRIC_ZOOM_H A zoom specification with methods for manipulation.
Defines export visibility macros for library EqualizerFabric.
The Equalizer client library.
Zoom()
Construct a new zoom specification set to 1, 1.
std::ostream & operator<<(std::ostream &os, const AxisEvent &event)
Print the axis event to the given output stream.
Zoom(const float x_, const float y_)
Construct a new zoom specification with default values.
static EQFABRIC_API const Zoom NONE
The zoom NONE (1,1) value.