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
39 Zoom() : Vector2f( 1.f, 1.f ) {}
42 Zoom(
const float x_,
const float y_ ) : Vector2f( x_, y_ ) {}
46 bool isValid()
const {
return ( x() != 0.f && y() != 0.f ); }
51 if( x() == 0.f ) x() = 1.f;
52 if( y() == 0.f ) y() = 1.f;
56 void invalidate() { x() = y() = 0.f; }
59 void apply(
const Zoom& rhs )
72 os <<
"zoom [ " << zoom.x() <<
' ' << zoom.y() <<
" ]";
80 { byteswap< eq::fabric::Vector2f >( value ); }
82 #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.