OTB  6.7.0
Orfeo Toolbox
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | Private Member Functions | Private Attributes | List of all members
mvd::ImageViewWidget Class Reference

#include <mvdImageViewWidget.h>

+ Inheritance diagram for mvd::ImageViewWidget:
+ Collaboration diagram for mvd::ImageViewWidget:

Public Slots

void CenterOn (const PointType &center, double scale)
 
void CenterOnSelected (const IndexType &index)
 
void SaveScreenshot (bool)
 
void UpdateScene ()
 
void ZoomIn ()
 
void ZoomOut ()
 
void ZoomToExtent ()
 
void ZoomToFullResolution ()
 
void ZoomToLayerExtent ()
 

Signals

void CenterChanged (const PointType &center)
 
void CenterRoiRequested (const PointType &center)
 
void ModelUpdated ()
 
void PhysicalCursorPositionChanged (const QPoint &screen, const PointType &view, const PointType &physical, const DefaultImageType::PixelType &)
 
void PixelInfoChanged (const QPoint &screen, const PointType &view, const PixelInfo::Vector &pixels)
 
void ReferenceActorShaderModeChanged (const std::string &mode)
 
void RoiChanged (const PointType &origin, const SizeType &size, const SpacingType &spacing, const PointType &center)
 
void RoiChanged (const PointType &center, double sx, double sy)
 
void ScaleChanged (double sx, double sy)
 

Public Member Functions

const StackedLayerModelGetLayerStack () const
 
StackedLayerModelGetLayerStack ()
 
const
AbstractImageViewManipulator
GetManipulator () const
 
 ImageViewWidget (AbstractImageViewManipulator *manipulator, AbstractImageViewRenderer *renderer, QWidget *p=NULL, const QGLWidget *shareWidget=NULL, Qt::WindowFlags f=0)
 
 ImageViewWidget (AbstractImageViewManipulator *manipulator, AbstractImageViewRenderer *renderer, QGLContext *context, QWidget *p=NULL, const QGLWidget *shareWidget=NULL, Qt::WindowFlags f=0)
 
 ImageViewWidget (AbstractImageViewManipulator *manipulator, AbstractImageViewRenderer *renderer, const QGLFormat &format, QWidget *p=NULL, const QGLWidget *shareWidget=NULL, Qt::WindowFlags f=0)
 
bool IsBypassRenderingEnabled () const
 
bool IsPickingEnabled () const
 
bool SetBypassRenderingEnabled (bool)
 
void SetLayerStack (StackedLayerModel *stackedLayerModel, const PointType &center, double scale)
 
void SetLayerStack (StackedLayerModel *)
 
void SetPickingDefaultStatus (bool)
 
void SetPickingEnabled (bool)
 
 ~ImageViewWidget () override
 
const AbstractImageViewRendererGetRenderer () const
 
AbstractImageViewRendererGetRenderer ()
 

Protected Member Functions

void initializeGL () override
 
void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void paintGL () override
 
void resizeEvent (QResizeEvent *event) override
 
void resizeGL (int widgth, int height) override
 
void wheelEvent (QWheelEvent *event) override
 

Protected Attributes

bool m_IsPickingEnabled: 1
 
bool m_PickingDefaultStatus: 1
 

Private Slots

void OnApplyAllRequested ()
 
void OnClearProjectionRequired ()
 
void OnContentChanged ()
 
void OnContentReset ()
 
void OnDeleteAllRequested ()
 
void OnDeleteSelectedRequested ()
 
void OnLayerAboutToBeDeleted (vcl_size_t)
 
void OnLayerAdded (vcl_size_t)
 
void OnLowerLayerRequested ()
 
void OnRaiseLayerRequested ()
 
void OnReferenceChanged (vcl_size_t)
 
void OnRefreshViewRequested ()
 
void OnReparamShaderRequested (double)
 
void OnResetEffectsRequested ()
 
void OnResetQuantilesRequested (bool)
 
void OnResetViewport ()
 
void OnResizeShaderRequested (double)
 
void OnRoiChanged (const PointType &, const SizeType &, const SpacingType &, const PointType &)
 
void OnScaleDynamicsRequested (double)
 
void OnSelectFirstLayerRequested ()
 
void OnSelectLastLayerRequested ()
 
void OnSelectNextLayerRequested ()
 
void OnSelectPreviousLayerRequested ()
 
void OnSetProjectionRequired ()
 
void OnSetReferenceRequested ()
 
void OnShaderEffectRequested (Effect)
 
void OnShiftAlphaRequested (double)
 
void OnShiftDynamicsRequested (double)
 
void OnToggleLayerVisibilityRequested (bool)
 
void OnUpdateGammaRequested (double)
 
void OnUpdateProjectionRequired ()
 

Private Member Functions

bool ApplyFixedZoomType ()
 
void Center (const PointType &point, double sx, double sy)
 
void Center (ZoomType zoom=ZOOM_TYPE_NONE)
 
void Connect (AbstractLayerModel *)
 
void Disconnect (AbstractLayerModel *)
 
void Initialize (AbstractImageViewManipulator *manipulator, AbstractImageViewRenderer *renderer)
 
void ListGlVersions () const
 

Private Attributes

AbstractImageViewManipulatorm_Manipulator
 
AbstractImageViewRendererm_Renderer
 

Detailed Description

Definition at line 79 of file mvdImageViewWidget.h.

Constructor & Destructor Documentation

mvd::ImageViewWidget::ImageViewWidget ( AbstractImageViewManipulator manipulator,
AbstractImageViewRenderer renderer,
QWidget *  p = NULL,
const QGLWidget *  shareWidget = NULL,
Qt::WindowFlags  f = 0 
)

Constructor.

mvd::ImageViewWidget::ImageViewWidget ( AbstractImageViewManipulator manipulator,
AbstractImageViewRenderer renderer,
QGLContext *  context,
QWidget *  p = NULL,
const QGLWidget *  shareWidget = NULL,
Qt::WindowFlags  f = 0 
)

Constructor.

mvd::ImageViewWidget::ImageViewWidget ( AbstractImageViewManipulator manipulator,
AbstractImageViewRenderer renderer,
const QGLFormat &  format,
QWidget *  p = NULL,
const QGLWidget *  shareWidget = NULL,
Qt::WindowFlags  f = 0 
)

Constructor.

mvd::ImageViewWidget::~ImageViewWidget ( )
override

Destructor.

Member Function Documentation

bool mvd::ImageViewWidget::ApplyFixedZoomType ( )
private
void mvd::ImageViewWidget::Center ( const PointType point,
double  sx,
double  sy 
)
private
void mvd::ImageViewWidget::Center ( ZoomType  zoom = ZOOM_TYPE_NONE)
private
void mvd::ImageViewWidget::CenterChanged ( const PointType center)
signal
void mvd::ImageViewWidget::CenterOn ( const PointType center,
double  scale 
)
slot
void mvd::ImageViewWidget::CenterOnSelected ( const IndexType index)
slot
void mvd::ImageViewWidget::CenterRoiRequested ( const PointType center)
signal
void mvd::ImageViewWidget::Connect ( AbstractLayerModel )
private
void mvd::ImageViewWidget::Disconnect ( AbstractLayerModel )
private
const StackedLayerModel * mvd::ImageViewWidget::GetLayerStack ( ) const
inline

Definition at line 531 of file mvdImageViewWidget.h.

StackedLayerModel * mvd::ImageViewWidget::GetLayerStack ( )
inline

Definition at line 542 of file mvdImageViewWidget.h.

const AbstractImageViewManipulator * mvd::ImageViewWidget::GetManipulator ( ) const
inline

Access the abstract view-manipualtor of this image-view.

Returns
A pointer to the abstract view-manipulator of this image-view.

Definition at line 504 of file mvdImageViewWidget.h.

const AbstractImageViewRenderer * mvd::ImageViewWidget::GetRenderer ( ) const
inline

Access the abstract model-renderer of this image-view.

Returns
A pointer to the abstract model-renderer of this image-view.

Definition at line 513 of file mvdImageViewWidget.h.

AbstractImageViewRenderer * mvd::ImageViewWidget::GetRenderer ( )
inline

Access the abstract model-renderer of this image-view.

Returns
A pointer to the abstract model-renderer of this image-view.

Definition at line 522 of file mvdImageViewWidget.h.

void mvd::ImageViewWidget::Initialize ( AbstractImageViewManipulator manipulator,
AbstractImageViewRenderer renderer 
)
private

Construction code (factorizes constructors initializations).

void mvd::ImageViewWidget::initializeGL ( )
overrideprotected
bool mvd::ImageViewWidget::IsBypassRenderingEnabled ( ) const
bool mvd::ImageViewWidget::IsPickingEnabled ( ) const
void mvd::ImageViewWidget::keyPressEvent ( QKeyEvent *  event)
overrideprotected
void mvd::ImageViewWidget::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected
void mvd::ImageViewWidget::ListGlVersions ( ) const
private
void mvd::ImageViewWidget::ModelUpdated ( )
signal
void mvd::ImageViewWidget::mouseDoubleClickEvent ( QMouseEvent *  event)
overrideprotected
void mvd::ImageViewWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected
void mvd::ImageViewWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotected
void mvd::ImageViewWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected
void mvd::ImageViewWidget::OnApplyAllRequested ( )
privateslot
void mvd::ImageViewWidget::OnClearProjectionRequired ( )
privateslot
void mvd::ImageViewWidget::OnContentChanged ( )
privateslot
void mvd::ImageViewWidget::OnContentReset ( )
privateslot
void mvd::ImageViewWidget::OnDeleteAllRequested ( )
privateslot
void mvd::ImageViewWidget::OnDeleteSelectedRequested ( )
privateslot
void mvd::ImageViewWidget::OnLayerAboutToBeDeleted ( vcl_size_t  )
privateslot
void mvd::ImageViewWidget::OnLayerAdded ( vcl_size_t  )
privateslot
void mvd::ImageViewWidget::OnLowerLayerRequested ( )
privateslot
void mvd::ImageViewWidget::OnRaiseLayerRequested ( )
privateslot
void mvd::ImageViewWidget::OnReferenceChanged ( vcl_size_t  )
privateslot
void mvd::ImageViewWidget::OnRefreshViewRequested ( )
privateslot
void mvd::ImageViewWidget::OnReparamShaderRequested ( double  )
privateslot
void mvd::ImageViewWidget::OnResetEffectsRequested ( )
privateslot
void mvd::ImageViewWidget::OnResetQuantilesRequested ( bool  )
privateslot
void mvd::ImageViewWidget::OnResetViewport ( )
privateslot
void mvd::ImageViewWidget::OnResizeShaderRequested ( double  )
privateslot
void mvd::ImageViewWidget::OnRoiChanged ( const PointType ,
const SizeType ,
const SpacingType ,
const PointType  
)
privateslot
void mvd::ImageViewWidget::OnScaleDynamicsRequested ( double  )
privateslot
void mvd::ImageViewWidget::OnSelectFirstLayerRequested ( )
privateslot
void mvd::ImageViewWidget::OnSelectLastLayerRequested ( )
privateslot
void mvd::ImageViewWidget::OnSelectNextLayerRequested ( )
privateslot
void mvd::ImageViewWidget::OnSelectPreviousLayerRequested ( )
privateslot
void mvd::ImageViewWidget::OnSetProjectionRequired ( )
privateslot
void mvd::ImageViewWidget::OnSetReferenceRequested ( )
privateslot
void mvd::ImageViewWidget::OnShaderEffectRequested ( Effect  )
privateslot
void mvd::ImageViewWidget::OnShiftAlphaRequested ( double  )
privateslot
void mvd::ImageViewWidget::OnShiftDynamicsRequested ( double  )
privateslot
void mvd::ImageViewWidget::OnToggleLayerVisibilityRequested ( bool  )
privateslot
void mvd::ImageViewWidget::OnUpdateGammaRequested ( double  )
privateslot
void mvd::ImageViewWidget::OnUpdateProjectionRequired ( )
privateslot
void mvd::ImageViewWidget::paintGL ( )
overrideprotected
void mvd::ImageViewWidget::PhysicalCursorPositionChanged ( const QPoint &  screen,
const PointType view,
const PointType physical,
const DefaultImageType::PixelType  
)
signal
void mvd::ImageViewWidget::PixelInfoChanged ( const QPoint &  screen,
const PointType view,
const PixelInfo::Vector pixels 
)
signal
void mvd::ImageViewWidget::ReferenceActorShaderModeChanged ( const std::string &  mode)
signal
void mvd::ImageViewWidget::resizeEvent ( QResizeEvent *  event)
overrideprotected
void mvd::ImageViewWidget::resizeGL ( int  widgth,
int  height 
)
overrideprotected
void mvd::ImageViewWidget::RoiChanged ( const PointType origin,
const SizeType size,
const SpacingType spacing,
const PointType center 
)
signal
void mvd::ImageViewWidget::RoiChanged ( const PointType center,
double  sx,
double  sy 
)
signal
void mvd::ImageViewWidget::SaveScreenshot ( bool  )
slot
void mvd::ImageViewWidget::ScaleChanged ( double  sx,
double  sy 
)
signal
bool mvd::ImageViewWidget::SetBypassRenderingEnabled ( bool  )
void mvd::ImageViewWidget::SetLayerStack ( StackedLayerModel stackedLayerModel,
const PointType center,
double  scale 
)
void mvd::ImageViewWidget::SetLayerStack ( StackedLayerModel )
void mvd::ImageViewWidget::SetPickingDefaultStatus ( bool  )

This allows setting the fallback behaviour for picking

void mvd::ImageViewWidget::SetPickingEnabled ( bool  )
void mvd::ImageViewWidget::UpdateScene ( )
slot
void mvd::ImageViewWidget::wheelEvent ( QWheelEvent *  event)
overrideprotected
void mvd::ImageViewWidget::ZoomIn ( )
slot
void mvd::ImageViewWidget::ZoomOut ( )
slot
void mvd::ImageViewWidget::ZoomToExtent ( )
slot
void mvd::ImageViewWidget::ZoomToFullResolution ( )
slot
void mvd::ImageViewWidget::ZoomToLayerExtent ( )
slot

Member Data Documentation

bool mvd::ImageViewWidget::m_IsPickingEnabled
protected

Definition at line 299 of file mvdImageViewWidget.h.

AbstractImageViewManipulator* mvd::ImageViewWidget::m_Manipulator
private

Event handler pointer

Definition at line 344 of file mvdImageViewWidget.h.

bool mvd::ImageViewWidget::m_PickingDefaultStatus
protected

Definition at line 300 of file mvdImageViewWidget.h.

AbstractImageViewRenderer* mvd::ImageViewWidget::m_Renderer
private

Model Renderer pointer

Definition at line 347 of file mvdImageViewWidget.h.


The documentation for this class was generated from the following file: