7 #ifndef __FWRENDERQT_DATA_VIEWPORT_HPP__ 8 #define __FWRENDERQT_DATA_VIEWPORT_HPP__ 10 #include "fwRenderQt/config.hpp" 12 #include <fwData/Exception.hpp> 13 #include <fwData/Object.hpp> 42 FWRENDERQT_API
void shallowCopy( const ::fwData::Object::csptr& _source )
override;
45 FWRENDERQT_API
void cachedDeepCopy( const ::fwData::Object::csptr& _source, DeepCopyCacheType& cache )
override;
52 float getWidth()
const;
53 void setWidth (
float _width);
54 float getHeight()
const;
55 void setHeight (
float _height);
58 float m_x, m_y, m_width, m_height;
64 inline float Viewport::getX()
const 71 inline void Viewport::setX (
float _x)
78 inline float Viewport::getY()
const 85 inline void Viewport::setY (
float _y)
92 inline float Viewport::getWidth()
const 99 inline void Viewport::setWidth (
float _width)
106 inline float Viewport::getHeight()
const 113 inline void Viewport::setHeight (
float _height)
123 #endif // __FWRENDERQT_DATA_VIEWPORT_HPP__ Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for each data object.
Viewport(::fwData::Object::Key key)
Constructor.
Manage the current viewport of the fwRenderQt.
The namespace fwRenderQt contains classes for rendering with Qt.