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

#include <mvdImageViewManipulator.h>

+ Inheritance diagram for mvd::ImageViewManipulator:
+ Collaboration diagram for mvd::ImageViewManipulator:

Public Slots

void CenterOn (const PointType &point) override
 
void ZoomTo (double scale) override
 
- Public Slots inherited from mvd::AbstractImageViewManipulator
virtual void CenterOn (const PointType &point)=0
 
virtual void ZoomTo (double scale)=0
 

Signals

void ApplyAllRequested ()
 
void DeleteAllRequested ()
 
void DeleteSelectedRequested ()
 
void LayerToBottomRequested ()
 
void LayerToTopRequested ()
 
void LowerLayerRequested ()
 
void RaiseLayerRequested ()
 
void ReparamShaderRequested (double)
 
void ResetQuantilesRequested (bool)
 
void ResizeShaderRequested (double)
 
void RotateLayersRequested (int)
 
void ScaleDynamicsRequested (double)
 
void SelectFirstLayerRequested ()
 
void SelectLastLayerRequested ()
 
void SelectNextLayerRequested ()
 
void SelectPreviousLayerRequested ()
 
void SetReferenceRequested ()
 
void ShaderEffectRequested (Effect)
 
void ShiftAlphaRequested (double)
 
void ShiftDynamicsRequested (double)
 
void TakeScreenshotRequested (bool isQuickMode)
 
void ToggleLayerVisibilityRequested (bool)
 
void UpdateGammaRequested (double)
 
void ZoomToFullExtentRequested ()
 
void ZoomToFullResolutionRequested ()
 
void ZoomToLayerExtentRequested ()
 
- Signals inherited from mvd::AbstractImageViewManipulator
void CenterRoiRequested (const PointType &center)
 
void RefreshViewRequested ()
 
void RoiChanged (const PointType &origin, const SizeType &size, const SpacingType &spacing, const PointType &center)
 
void ZoomToExtentRequested ()
 
void ZoomToFullResolutionRequested ()
 

Public Member Functions

PointType GetCenter () const override
 
ZoomType GetFixedZoomType () const override
 
PointType GetOrigin () const override
 
SpacingType GetSpacing () const override
 
SizeType GetViewportSize () const override
 
 ImageViewManipulator (const otb::ViewSettings::Pointer &viewSettings, QObject *p=NULL)
 
void KeyPressEvent (QKeyEvent *event) override
 
void KeyReleaseEvent (QKeyEvent *event) override
 
void MouseDoubleClickEvent (QMouseEvent *) override
 
void MouseMoveEvent (QMouseEvent *event) override
 
void MousePressEvent (QMouseEvent *event) override
 
void MouseReleaseEvent (QMouseEvent *event) override
 
void ResetViewport () override
 
void ResizeEvent (QResizeEvent *event) override
 
void SetKeywordList (const DefaultImageType::ImageKeywordlistType &kwl) override
 
void SetNativeSpacing (const SpacingType &) override
 
void SetOrigin (const PointType &origin) override
 
void SetSpacing (const SpacingType &spacing) override
 
void SetupRenderingContext (AbstractImageViewRenderer::RenderingContext *const ) const override
 
void SetViewportSize (int width, int height) override
 
void SetWkt (const std::string &wkt) override
 
const PointTypeTransform (PointType &, const QPoint &) const override
 
void WheelEvent (QWheelEvent *event) override
 
void ZoomIn () override
 
void ZoomOut () override
 
 ~ImageViewManipulator () override
 
- Public Member Functions inherited from mvd::AbstractImageViewManipulator
 ~AbstractImageViewManipulator () override
 

Static Public Attributes

static const int DEFAULT_ALPHA_GRANULARITY
 
static const double DEFAULT_DELTA
 
static const double DEFAULT_DYNAMICS_SHIFT_GRANULARITY
 
static const int DEFAULT_GRANULARITY
 
static const int DEFAULT_SCROLL_GRANULARITY
 
static const int DEFAULT_ZOOM_GRANULARITY
 

Static Protected Member Functions

static PointType Translate (const QPoint &vector, const PointType &origin, const SpacingType &spacing)
 

Protected Attributes

QPoint m_MousePressPosition
 
otb::ViewSettings::Pointer m_ViewSettings
 

Private Slots

void OnTimeout ()
 

Private Member Functions

void Scale (const QPoint &center, int degrees, PointType *centerPoint=NULL)
 
void Translate (const QPoint &vector)
 

Private Attributes

int m_AlphaGranularity
 
double m_DynamicsShiftGranularity
 
bool m_IsMouseDragging: 1
 
otb::ViewSettings::PointType m_MousePressOrigin
 
SpacingType m_NativeSpacing
 
AbstractImageViewRenderer::RenderingContext::RenderMode m_RenderMode
 
int m_ScrollGranularity
 
QTimer * m_Timer
 
double m_ZoomFactor
 
int m_ZoomGranularity
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
static double Factor (T1 wheel, T2 degrees, T3 delta, T4 granularity)
 
template<typename T1 , typename T2 >
static double Factor (T1 wheel, T2 degrees)
 
void SetFastRenderMode (bool isEnabled)
 

Additional Inherited Members

- Protected Member Functions inherited from mvd::AbstractImageViewManipulator
 AbstractImageViewManipulator (QObject *p=NULL)
 

Detailed Description

TODO.

Definition at line 81 of file mvdImageViewManipulator.h.

Constructor & Destructor Documentation

mvd::ImageViewManipulator::ImageViewManipulator ( const otb::ViewSettings::Pointer viewSettings,
QObject *  p = NULL 
)

Constructor.

mvd::ImageViewManipulator::~ImageViewManipulator ( )
override

Destructor.

Member Function Documentation

void mvd::ImageViewManipulator::ApplyAllRequested ( )
signal
void mvd::ImageViewManipulator::CenterOn ( const PointType point)
overrideslot
void mvd::ImageViewManipulator::DeleteAllRequested ( )
signal
void mvd::ImageViewManipulator::DeleteSelectedRequested ( )
signal
template<typename T1 , typename T2 , typename T3 , typename T4 >
double mvd::ImageViewManipulator::Factor ( T1  wheel,
T2  degrees,
T3  delta,
T4  granularity 
)
inlinestaticprivate

Definition at line 451 of file mvdImageViewManipulator.h.

References abs().

Referenced by Factor().

template<typename T1 , typename T2 >
double mvd::ImageViewManipulator::Factor ( T1  wheel,
T2  degrees 
)
inlinestaticprivate

Definition at line 475 of file mvdImageViewManipulator.h.

References DEFAULT_DELTA, DEFAULT_GRANULARITY, and Factor().

PointType mvd::ImageViewManipulator::GetCenter ( ) const
overridevirtual
ZoomType mvd::ImageViewManipulator::GetFixedZoomType ( ) const
overridevirtual
PointType mvd::ImageViewManipulator::GetOrigin ( ) const
overridevirtual
SpacingType mvd::ImageViewManipulator::GetSpacing ( ) const
overridevirtual
SizeType mvd::ImageViewManipulator::GetViewportSize ( ) const
overridevirtual
void mvd::ImageViewManipulator::KeyPressEvent ( QKeyEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::KeyReleaseEvent ( QKeyEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::LayerToBottomRequested ( )
signal
void mvd::ImageViewManipulator::LayerToTopRequested ( )
signal
void mvd::ImageViewManipulator::LowerLayerRequested ( )
signal
void mvd::ImageViewManipulator::MouseDoubleClickEvent ( QMouseEvent *  )
overridevirtual
void mvd::ImageViewManipulator::MouseMoveEvent ( QMouseEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::MousePressEvent ( QMouseEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::MouseReleaseEvent ( QMouseEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::OnTimeout ( )
privateslot
void mvd::ImageViewManipulator::RaiseLayerRequested ( )
signal
void mvd::ImageViewManipulator::ReparamShaderRequested ( double  )
signal
void mvd::ImageViewManipulator::ResetQuantilesRequested ( bool  )
signal
void mvd::ImageViewManipulator::ResetViewport ( )
overridevirtual
void mvd::ImageViewManipulator::ResizeEvent ( QResizeEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::ResizeShaderRequested ( double  )
signal
void mvd::ImageViewManipulator::RotateLayersRequested ( int  )
signal
void mvd::ImageViewManipulator::Scale ( const QPoint &  center,
int  degrees,
PointType centerPoint = NULL 
)
private
void mvd::ImageViewManipulator::ScaleDynamicsRequested ( double  )
signal
void mvd::ImageViewManipulator::SelectFirstLayerRequested ( )
signal
void mvd::ImageViewManipulator::SelectLastLayerRequested ( )
signal
void mvd::ImageViewManipulator::SelectNextLayerRequested ( )
signal
void mvd::ImageViewManipulator::SelectPreviousLayerRequested ( )
signal
void mvd::ImageViewManipulator::SetFastRenderMode ( bool  isEnabled)
inlineprivate
void mvd::ImageViewManipulator::SetKeywordList ( const DefaultImageType::ImageKeywordlistType kwl)
overridevirtual
void mvd::ImageViewManipulator::SetNativeSpacing ( const SpacingType )
overridevirtual
void mvd::ImageViewManipulator::SetOrigin ( const PointType origin)
overridevirtual
void mvd::ImageViewManipulator::SetReferenceRequested ( )
signal
void mvd::ImageViewManipulator::SetSpacing ( const SpacingType spacing)
overridevirtual
void mvd::ImageViewManipulator::SetupRenderingContext ( AbstractImageViewRenderer::RenderingContext const) const
overridevirtual
void mvd::ImageViewManipulator::SetViewportSize ( int  width,
int  height 
)
overridevirtual
void mvd::ImageViewManipulator::SetWkt ( const std::string &  wkt)
overridevirtual
void mvd::ImageViewManipulator::ShaderEffectRequested ( Effect  )
signal
void mvd::ImageViewManipulator::ShiftAlphaRequested ( double  )
signal
void mvd::ImageViewManipulator::ShiftDynamicsRequested ( double  )
signal
void mvd::ImageViewManipulator::TakeScreenshotRequested ( bool  isQuickMode)
signal
void mvd::ImageViewManipulator::ToggleLayerVisibilityRequested ( bool  )
signal
const PointType& mvd::ImageViewManipulator::Transform ( PointType ,
const QPoint &   
) const
overridevirtual
static PointType mvd::ImageViewManipulator::Translate ( const QPoint &  vector,
const PointType origin,
const SpacingType spacing 
)
staticprotected
void mvd::ImageViewManipulator::Translate ( const QPoint &  vector)
private
void mvd::ImageViewManipulator::UpdateGammaRequested ( double  )
signal
void mvd::ImageViewManipulator::WheelEvent ( QWheelEvent *  event)
overridevirtual
void mvd::ImageViewManipulator::ZoomIn ( )
overridevirtual
void mvd::ImageViewManipulator::ZoomOut ( )
overridevirtual
void mvd::ImageViewManipulator::ZoomTo ( double  scale)
overrideslot
void mvd::ImageViewManipulator::ZoomToFullExtentRequested ( )
signal
void mvd::ImageViewManipulator::ZoomToFullResolutionRequested ( )
signal
void mvd::ImageViewManipulator::ZoomToLayerExtentRequested ( )
signal

Member Data Documentation

const int mvd::ImageViewManipulator::DEFAULT_ALPHA_GRANULARITY
static

Definition at line 104 of file mvdImageViewManipulator.h.

const double mvd::ImageViewManipulator::DEFAULT_DELTA
static

Definition at line 87 of file mvdImageViewManipulator.h.

Referenced by Factor().

const double mvd::ImageViewManipulator::DEFAULT_DYNAMICS_SHIFT_GRANULARITY
static

Definition at line 108 of file mvdImageViewManipulator.h.

const int mvd::ImageViewManipulator::DEFAULT_GRANULARITY
static

Definition at line 100 of file mvdImageViewManipulator.h.

Referenced by Factor().

const int mvd::ImageViewManipulator::DEFAULT_SCROLL_GRANULARITY
static

Definition at line 112 of file mvdImageViewManipulator.h.

const int mvd::ImageViewManipulator::DEFAULT_ZOOM_GRANULARITY
static

Definition at line 116 of file mvdImageViewManipulator.h.

int mvd::ImageViewManipulator::m_AlphaGranularity
private

Definition at line 410 of file mvdImageViewManipulator.h.

double mvd::ImageViewManipulator::m_DynamicsShiftGranularity
private

Definition at line 414 of file mvdImageViewManipulator.h.

bool mvd::ImageViewManipulator::m_IsMouseDragging
private

Definition at line 426 of file mvdImageViewManipulator.h.

otb::ViewSettings::PointType mvd::ImageViewManipulator::m_MousePressOrigin
private

Definition at line 398 of file mvdImageViewManipulator.h.

QPoint mvd::ImageViewManipulator::m_MousePressPosition
protected

Definition at line 338 of file mvdImageViewManipulator.h.

SpacingType mvd::ImageViewManipulator::m_NativeSpacing
private

Definition at line 394 of file mvdImageViewManipulator.h.

AbstractImageViewRenderer::RenderingContext::RenderMode mvd::ImageViewManipulator::m_RenderMode
private

Definition at line 402 of file mvdImageViewManipulator.h.

int mvd::ImageViewManipulator::m_ScrollGranularity
private

Definition at line 418 of file mvdImageViewManipulator.h.

QTimer* mvd::ImageViewManipulator::m_Timer
private

Definition at line 390 of file mvdImageViewManipulator.h.

otb::ViewSettings::Pointer mvd::ImageViewManipulator::m_ViewSettings
protected

Definition at line 342 of file mvdImageViewManipulator.h.

double mvd::ImageViewManipulator::m_ZoomFactor
private

Definition at line 406 of file mvdImageViewManipulator.h.

int mvd::ImageViewManipulator::m_ZoomGranularity
private

Definition at line 422 of file mvdImageViewManipulator.h.


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