19 #ifndef EQFABRIC_WALL_H
20 #define EQFABRIC_WALL_H
22 #include <eq/fabric/api.h>
23 #include <eq/fabric/types.h>
71 EQFABRIC_API
void resizeLeft(
const float ratio );
87 EQFABRIC_API
void resizeTop(
const float ratio );
127 EQFABRIC_API
void scale(
const float ratio );
142 float getWidth()
const {
return (bottomRight - bottomLeft).length(); }
145 float getHeight()
const {
return (topLeft - bottomLeft).length(); }
148 EQFABRIC_API
bool operator == (
const Wall& rhs )
const;
151 EQFABRIC_API
bool operator != (
const Wall& rhs )
const;
175 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const Wall& );
176 EQFABRIC_API std::ostream& operator << ( std::ostream&,
const Wall::Type& );
184 byteswap( reinterpret_cast< uint32_t& >( value ));
192 byteswap( value.
type );
195 #endif // EQFABRIC_WALL_H
bool operator!=(const Wall &rhs) const
void resizeTop(const float ratio)
Resize the wall on the top side.
Wall()
Construct a new wall description.
void resizeRight(const float ratio)
Resize the wall on the right side.
A wall fixed to the observer (head-mounted display)
void resizeHorizontal(const float ratio)
Resize the wall horizontally.
Vector3f bottomRight
The bottom-right corner.
void moveFocus(const Vector3f &eye, const float ratio)
Resize the wall by the given ratio as observed from the eye position.
void resizeLeft(const float ratio)
Resize the wall on the left side.
void scale(const float ratio)
Move each wall corner by the given ratio.
void resizeVertical(const float ratio)
Resize the wall vertically.
vmml::vector< 3, float > Vector3f
A three-component float vector.
A wall defining a view frustum.
void apply(const Viewport &viewport)
Compute the sub-frustum for a 2D area on the full wall.
void resizeBottom(const float ratio)
Resize the wall on the bottom side.
Vector3f bottomLeft
The bottom-left corner.
vmml::matrix< 4, 4, float > Matrix4f
A 4x4 float matrix.
A projector definition defining a view frustum.
A fractional viewport with methods for manipulation.
Vector3f topLeft
The top-left corner.
void resizeHorizontalToAR(const float aspectRatio)
Resize the wall horizontally to match the given aspect ratio.
bool operator==(const Wall &rhs) const
Wall & operator=(const Projection &projection)
Set the wall parameters from a projection description.
Type
The reference system type of the wall.
A fixed mounted projection wall.