OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
otb::IceViewer Class Reference

#include <otbIceViewer.h>

+ Inheritance diagram for otb::IceViewer:
+ Collaboration diagram for otb::IceViewer:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef IceViewer Self
 
typedef itk::Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

void AddImage (const std::string &fname, const std::string &key, const std::string &name="")
 
void AddVector (const std::string &fname, const std::string &key, const std::string &name="")
 
void ClearActors ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual bool GetDisplayHud ()
 
void Initialize (unsigned int w, unsigned int h, const std::string &name="OTB viewer for geeks")
 
void Refresh ()
 
void SetActorName (const std::string &key, const std::string &name)
 
virtual void SetDisplayHud (bool _arg)
 
virtual void Start ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const char * GetNameOfClass () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void CopyActorStyle (otb::GlActor::Pointer srcActor, otb::GlActor::Pointer dstActor)
 
virtual void cursor_pos_callback (GLFWwindow *window, double xpos, double ypos)
 
virtual void framebuffer_size_callback (GLFWwindow *window, int width, int height)
 
otb::GlActor::Pointer GetActor (const std::string &key)
 
 IceViewer ()
 
virtual void key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
virtual bool key_callback_image (GLFWwindow *window, int key, int scancode, int action, int mods)
 
virtual bool key_callback_vector (GLFWwindow *window, int key, int scancode, int action, int mods)
 
virtual void mouse_button_callback (GLFWwindow *window, int button, int action, int mode)
 
virtual void scroll_callback (GLFWwindow *window, double xoffset, double yoffset)
 
virtual bool scroll_callback_image (GLFWwindow *window, double xoffset, double yoffset)
 
virtual bool scroll_callback_vector (GLFWwindow *window, double xoffset, double yoffset)
 
void UpdateShaderColorAndPosition ()
 
 ~IceViewer () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

void DrawHelp ()
 
void DrawHud ()
 
 IceViewer (const Self &)
 
void operator= (const Self &)
 
void UpdateShaderColorAndPosition (double vpx, double vpy, otb::GlImageActor *currentActor)
 

Static Private Member Functions

static void error_callback (int error, const char *description)
 
static void static_cursor_pos_callback (GLFWwindow *window, double xpos, double ypos)
 
static void static_framebuffer_size_callback (GLFWwindow *window, int width, int height)
 
static void static_key_callback (GLFWwindow *window, int key, int scancode, int action, int mods)
 
static void static_mouse_button_callback (GLFWwindow *window, int button, int action, int mode)
 
static void static_scroll_callback (GLFWwindow *window, double xoffset, double yoffset)
 

Private Attributes

std::map< std::string,
GlVectorActor::ColorType
m_ColorMap
 
std::map< std::string,
GlVectorActor::ColorType >
::const_iterator 
m_ColorMapIterator
 
ViewSettings::PointType m_DeltaDrag
 
bool m_DisplayHelp
 
bool m_DisplayHud
 
bool m_Dragging
 
double m_Factor
 
bool m_FastRendering
 
ViewSettings::PointType m_OriginDrag
 
std::string m_ReferenceActor
 
std::string m_SelectedActor
 
double m_StartAngle
 
ViewSettings::PointType m_StartDrag
 
otb::GlView::Pointer m_View
 
GLFWwindow * m_Window
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

Definition at line 47 of file otbIceViewer.h.

Member Typedef Documentation

Definition at line 54 of file otbIceViewer.h.

Definition at line 53 of file otbIceViewer.h.

Definition at line 51 of file otbIceViewer.h.

Definition at line 52 of file otbIceViewer.h.

Constructor & Destructor Documentation

otb::IceViewer::IceViewer ( )
protected
otb::IceViewer::~IceViewer ( )
overrideprotected
otb::IceViewer::IceViewer ( const Self )
private

Member Function Documentation

void otb::IceViewer::AddImage ( const std::string &  fname,
const std::string &  key,
const std::string &  name = "" 
)
void otb::IceViewer::AddVector ( const std::string &  fname,
const std::string &  key,
const std::string &  name = "" 
)
void otb::IceViewer::ClearActors ( )
void otb::IceViewer::CopyActorStyle ( otb::GlActor::Pointer  srcActor,
otb::GlActor::Pointer  dstActor 
)
protected
virtual::itk::LightObject::Pointer otb::IceViewer::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

virtual void otb::IceViewer::cursor_pos_callback ( GLFWwindow *  window,
double  xpos,
double  ypos 
)
protectedvirtual
void otb::IceViewer::DrawHelp ( )
private
void otb::IceViewer::DrawHud ( )
private
static void otb::IceViewer::error_callback ( int  error,
const char *  description 
)
staticprivate
virtual void otb::IceViewer::framebuffer_size_callback ( GLFWwindow *  window,
int  width,
int  height 
)
protectedvirtual
otb::GlActor::Pointer otb::IceViewer::GetActor ( const std::string &  key)
protected
virtual bool otb::IceViewer::GetDisplayHud ( )
virtual
void otb::IceViewer::Initialize ( unsigned int  w,
unsigned int  h,
const std::string &  name = "OTB viewer for geeks" 
)
virtual void otb::IceViewer::key_callback ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)
protectedvirtual
virtual bool otb::IceViewer::key_callback_image ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)
protectedvirtual
virtual bool otb::IceViewer::key_callback_vector ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)
protectedvirtual
virtual void otb::IceViewer::mouse_button_callback ( GLFWwindow *  window,
int  button,
int  action,
int  mode 
)
protectedvirtual
static Pointer otb::IceViewer::New ( )
static
void otb::IceViewer::operator= ( const Self )
private
void otb::IceViewer::Refresh ( )
virtual void otb::IceViewer::scroll_callback ( GLFWwindow *  window,
double  xoffset,
double  yoffset 
)
protectedvirtual
virtual bool otb::IceViewer::scroll_callback_image ( GLFWwindow *  window,
double  xoffset,
double  yoffset 
)
protectedvirtual
virtual bool otb::IceViewer::scroll_callback_vector ( GLFWwindow *  window,
double  xoffset,
double  yoffset 
)
protectedvirtual
void otb::IceViewer::SetActorName ( const std::string &  key,
const std::string &  name 
)
virtual void otb::IceViewer::SetDisplayHud ( bool  _arg)
virtual
virtual void otb::IceViewer::Start ( )
virtual
static void otb::IceViewer::static_cursor_pos_callback ( GLFWwindow *  window,
double  xpos,
double  ypos 
)
staticprivate
static void otb::IceViewer::static_framebuffer_size_callback ( GLFWwindow *  window,
int  width,
int  height 
)
staticprivate
static void otb::IceViewer::static_key_callback ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)
staticprivate
static void otb::IceViewer::static_mouse_button_callback ( GLFWwindow *  window,
int  button,
int  action,
int  mode 
)
staticprivate
static void otb::IceViewer::static_scroll_callback ( GLFWwindow *  window,
double  xoffset,
double  yoffset 
)
staticprivate
void otb::IceViewer::UpdateShaderColorAndPosition ( )
protected
void otb::IceViewer::UpdateShaderColorAndPosition ( double  vpx,
double  vpy,
otb::GlImageActor currentActor 
)
private

Member Data Documentation

std::map<std::string,GlVectorActor::ColorType> otb::IceViewer::m_ColorMap
private

Definition at line 147 of file otbIceViewer.h.

std::map<std::string,GlVectorActor::ColorType>::const_iterator otb::IceViewer::m_ColorMapIterator
private

Definition at line 148 of file otbIceViewer.h.

ViewSettings::PointType otb::IceViewer::m_DeltaDrag
private

Definition at line 139 of file otbIceViewer.h.

bool otb::IceViewer::m_DisplayHelp
private

Definition at line 145 of file otbIceViewer.h.

bool otb::IceViewer::m_DisplayHud
private

Definition at line 144 of file otbIceViewer.h.

bool otb::IceViewer::m_Dragging
private

Definition at line 136 of file otbIceViewer.h.

double otb::IceViewer::m_Factor
private

Definition at line 134 of file otbIceViewer.h.

bool otb::IceViewer::m_FastRendering
private

Definition at line 128 of file otbIceViewer.h.

ViewSettings::PointType otb::IceViewer::m_OriginDrag
private

Definition at line 140 of file otbIceViewer.h.

std::string otb::IceViewer::m_ReferenceActor
private

Definition at line 132 of file otbIceViewer.h.

std::string otb::IceViewer::m_SelectedActor
private

Definition at line 130 of file otbIceViewer.h.

double otb::IceViewer::m_StartAngle
private

Definition at line 142 of file otbIceViewer.h.

ViewSettings::PointType otb::IceViewer::m_StartDrag
private

Definition at line 138 of file otbIceViewer.h.

otb::GlView::Pointer otb::IceViewer::m_View
private

Definition at line 126 of file otbIceViewer.h.

GLFWwindow* otb::IceViewer::m_Window
private

Definition at line 124 of file otbIceViewer.h.


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