7 #include "fwRenderQt/data/Viewport.hpp" 9 #include <fwData/registry/macros.hpp> 22 Viewport::csptr other = Viewport::dynamicConstCast(_source);
24 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
30 m_width = other->m_width;
31 m_height = other->m_height;
38 Viewport::csptr other = Viewport::dynamicConstCast(_source);
40 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
46 m_width = other->m_width;
47 m_height = other->m_height;
Implements data exception class.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
FWRENDERQT_API void cachedDeepCopy(const ::fwData::Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
FWDATA_API void fieldShallowCopy(const ::fwData::Object::csptr &source)
A shallow copy of fields (objects in m_children)
Manage the current viewport of the fwRenderQt.
FWRENDERQT_API void shallowCopy(const ::fwData::Object::csptr &_source) override
Defines shallow copy.
The namespace fwRenderQt contains classes for rendering with Qt.