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

#include <mvdImageViewRenderer.h>

+ Inheritance diagram for mvd::ImageViewRenderer:
+ Collaboration diagram for mvd::ImageViewRenderer:

Classes

struct  RenderingContext
 

Public Slots

void UpdatePixelInfo (const QPoint &screen, const PointType &view, const PixelInfo::Vector &pixels) override
 
- Public Slots inherited from mvd::AbstractImageViewRenderer
void ClearScene (bool keepViewport=false)
 
void RefreshScene ()
 
virtual void UpdatePixelInfo (const QPoint &point, const PointType &view, const PixelInfo::Vector &pixels)=0
 
void UpdateScene ()
 

Signals

void ClearProjectionRequired ()
 
void ResetViewport ()
 
void SetProjectionRequired ()
 
void UpdateProjectionRequired ()
 

Public Member Functions

bool CheckGLCapabilities (int *) override
 
bool GetLayerDynamics (const StackedLayerModel::KeyType &key, ParametersType &params, bool isGlobal) const override
 
void GetLayerExtent (const StackedLayerModel::KeyType &key, PointType &origin, PointType &extent) const override
 
void GetReferenceExtent (PointType &origin, PointType &extent) const override
 
const AbstractLayerModelGetReferenceModel () const override
 
AbstractLayerModelGetReferenceModel () override
 
void GetResolutions (PixelInfo::Vector &pixels) const override
 
void GetViewExtent (PointType &origin, PointType &extent) const override
 
const otb::ViewSettings::Pointer GetViewSettings () const
 
otb::ViewSettings::Pointer GetViewSettings ()
 
 ImageViewRenderer (QObject *p=NULL)
 
void InitializeGL () override
 
bool IsEffectsEnabled () const override
 
AbstractImageViewRenderer::RenderingContextNewRenderingContext () const override
 
void PaintGL (const AbstractImageViewRenderer::RenderingContext *context) override
 
void Pick (const PointType &view, PixelInfo::Vector &pixels) const override
 
bool Reproject (PointType &center, SpacingType &spacing, const PointType &vcenter, const SpacingType &vspacing) const
 
void ResizeGL (int width, int height) override
 
void SaveScreenshot (const QString &) const override
 
bool TransformToView (PointType &point, const StackedLayerModel::KeyType &, const IndexType &, bool isPhysical) const override
 
 ~ImageViewRenderer () override
 
- Public Member Functions inherited from mvd::AbstractImageViewRenderer
const StackedLayerModelGetLayerStack () const
 
StackedLayerModelGetLayerStack ()
 
template<typename T >
const T * GetReferenceModel () const
 
template<typename T >
T * GetReferenceModel ()
 
bool IsBypassRenderingEnabled () const
 
bool IsGLSLEnabled () const
 
bool SetBypassRenderingEnabled (bool)
 
bool SetGLSLEnabled (bool)
 
void SetLayerStack (StackedLayerModel *)
 
bool ZoomToExtent (PointType &center, SpacingType &spacing) const
 
bool ZoomToFull (const StackedLayerModel::KeyType &key, PointType &center, SpacingType &spacing) const
 
bool ZoomToLayer (const StackedLayerModel::KeyType &key, PointType &center, SpacingType &spacing) const
 
bool ZoomToRegion (const PointType &origin, const PointType &extent, PointType &center, SpacingType &spacing) const
 
 ~AbstractImageViewRenderer () override
 

Protected Member Functions

otb::GlActor::Pointer GetReferenceActor ()
 
template<typename T >
T::Pointer GetReferenceActor ()
 
template<typename T >
T::ConstPointer GetReferenceActor () const
 
virtual void UpdateActors (const AbstractImageViewRenderer::RenderingContext *)
 
- Protected Member Functions inherited from mvd::AbstractImageViewRenderer
 AbstractImageViewRenderer (QObject *p=NULL)
 

Protected Attributes

bool m_EffectsEnabled: 1
 
otb::GlView::Pointer m_GlView
 

Private Types

typedef std::pair
< AbstractLayerModel
*, otb::GlActor::Pointer
ModelActorPair
 

Private Member Functions

virtual void virtual_ClearProjection ()
 
void virtual_ClearScene (bool) override
 
void virtual_RefreshScene () override
 
virtual void virtual_SetProjection ()
 
virtual void virtual_UpdateProjection ()
 
void virtual_UpdateScene () override
 
bool virtual_ZoomToExtent (PointType &center, SpacingType &spacing) const override
 
bool virtual_ZoomToFull (const StackedLayerModel::KeyType &key, PointType &center, SpacingType &spacing) const override
 
bool virtual_ZoomToLayer (const StackedLayerModel::KeyType &key, PointType &center, SpacingType &spacing) const override
 
bool virtual_ZoomToRegion (const PointType &origin, const PointType &extent, PointType &center, SpacingType &spacing) const override
 

Private Attributes

ModelActorPair m_ReferencePair
 

Detailed Description

Definition at line 89 of file mvdImageViewRenderer.h.

Member Typedef Documentation

Definition at line 267 of file mvdImageViewRenderer.h.

Constructor & Destructor Documentation

mvd::ImageViewRenderer::ImageViewRenderer ( QObject *  p = NULL)

Constructor

mvd::ImageViewRenderer::~ImageViewRenderer ( )
override

Destructor

Member Function Documentation

bool mvd::ImageViewRenderer::CheckGLCapabilities ( int *  )
overridevirtual
void mvd::ImageViewRenderer::ClearProjectionRequired ( )
signal
bool mvd::ImageViewRenderer::GetLayerDynamics ( const StackedLayerModel::KeyType key,
ParametersType params,
bool  isGlobal 
) const
overridevirtual
void mvd::ImageViewRenderer::GetLayerExtent ( const StackedLayerModel::KeyType key,
PointType origin,
PointType extent 
) const
overridevirtual
otb::GlActor::Pointer mvd::ImageViewRenderer::GetReferenceActor ( )
inlineprotected

Definition at line 347 of file mvdImageViewRenderer.h.

template<typename T >
T::Pointer mvd::ImageViewRenderer::GetReferenceActor ( )
inlineprotected

Definition at line 357 of file mvdImageViewRenderer.h.

template<typename T >
T::ConstPointer mvd::ImageViewRenderer::GetReferenceActor ( ) const
inlineprotected

Definition at line 367 of file mvdImageViewRenderer.h.

void mvd::ImageViewRenderer::GetReferenceExtent ( PointType origin,
PointType extent 
) const
overridevirtual
const AbstractLayerModel* mvd::ImageViewRenderer::GetReferenceModel ( ) const
overridevirtual
AbstractLayerModel* mvd::ImageViewRenderer::GetReferenceModel ( )
overridevirtual
void mvd::ImageViewRenderer::GetResolutions ( PixelInfo::Vector pixels) const
overridevirtual
void mvd::ImageViewRenderer::GetViewExtent ( PointType origin,
PointType extent 
) const
overridevirtual
const otb::ViewSettings::Pointer mvd::ImageViewRenderer::GetViewSettings ( ) const
inline

Definition at line 325 of file mvdImageViewRenderer.h.

otb::ViewSettings::Pointer mvd::ImageViewRenderer::GetViewSettings ( )
inline

Definition at line 336 of file mvdImageViewRenderer.h.

void mvd::ImageViewRenderer::InitializeGL ( )
overridevirtual
bool mvd::ImageViewRenderer::IsEffectsEnabled ( ) const
overridevirtual
AbstractImageViewRenderer::RenderingContext* mvd::ImageViewRenderer::NewRenderingContext ( ) const
overridevirtual
void mvd::ImageViewRenderer::PaintGL ( const AbstractImageViewRenderer::RenderingContext context)
overridevirtual
void mvd::ImageViewRenderer::Pick ( const PointType view,
PixelInfo::Vector pixels 
) const
overridevirtual
bool mvd::ImageViewRenderer::Reproject ( PointType center,
SpacingType spacing,
const PointType vcenter,
const SpacingType vspacing 
) const
void mvd::ImageViewRenderer::ResetViewport ( )
signal
void mvd::ImageViewRenderer::ResizeGL ( int  width,
int  height 
)
overridevirtual
void mvd::ImageViewRenderer::SaveScreenshot ( const QString &  ) const
overridevirtual
void mvd::ImageViewRenderer::SetProjectionRequired ( )
signal
bool mvd::ImageViewRenderer::TransformToView ( PointType point,
const StackedLayerModel::KeyType ,
const IndexType ,
bool  isPhysical 
) const
overridevirtual
virtual void mvd::ImageViewRenderer::UpdateActors ( const AbstractImageViewRenderer::RenderingContext )
protectedvirtual

Reimplemented in mvd::QuicklookViewRenderer.

void mvd::ImageViewRenderer::UpdatePixelInfo ( const QPoint &  screen,
const PointType view,
const PixelInfo::Vector pixels 
)
overrideslot
void mvd::ImageViewRenderer::UpdateProjectionRequired ( )
signal
virtual void mvd::ImageViewRenderer::virtual_ClearProjection ( )
inlineprivatevirtual

Definition at line 273 of file mvdImageViewRenderer.h.

void mvd::ImageViewRenderer::virtual_ClearScene ( bool  )
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

void mvd::ImageViewRenderer::virtual_RefreshScene ( )
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

virtual void mvd::ImageViewRenderer::virtual_SetProjection ( )
inlineprivatevirtual

Reimplemented in mvd::QuicklookViewRenderer.

Definition at line 274 of file mvdImageViewRenderer.h.

virtual void mvd::ImageViewRenderer::virtual_UpdateProjection ( )
inlineprivatevirtual

Reimplemented in mvd::QuicklookViewRenderer.

Definition at line 275 of file mvdImageViewRenderer.h.

void mvd::ImageViewRenderer::virtual_UpdateScene ( )
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

bool mvd::ImageViewRenderer::virtual_ZoomToExtent ( PointType center,
SpacingType spacing 
) const
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

bool mvd::ImageViewRenderer::virtual_ZoomToFull ( const StackedLayerModel::KeyType key,
PointType center,
SpacingType spacing 
) const
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

bool mvd::ImageViewRenderer::virtual_ZoomToLayer ( const StackedLayerModel::KeyType key,
PointType center,
SpacingType spacing 
) const
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

bool mvd::ImageViewRenderer::virtual_ZoomToRegion ( const PointType origin,
const PointType extent,
PointType center,
SpacingType spacing 
) const
overrideprivatevirtual

Reimplemented from mvd::AbstractImageViewRenderer.

Member Data Documentation

bool mvd::ImageViewRenderer::m_EffectsEnabled
protected

Definition at line 256 of file mvdImageViewRenderer.h.

otb::GlView::Pointer mvd::ImageViewRenderer::m_GlView
protected

Definition at line 252 of file mvdImageViewRenderer.h.

ModelActorPair mvd::ImageViewRenderer::m_ReferencePair
private

Definition at line 304 of file mvdImageViewRenderer.h.


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