ALBA
albaViewHTML.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaViewHTML
5 Authors: Paolo Quadrani Silvano Imboden
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaViewHTML_H__
18#define __albaViewHTML_H__
19
20
21#include "albaView.h"
22
23//----------------------------------------------------------------------------
24// forward references
25//----------------------------------------------------------------------------
26class albaRWI;
27class albaSceneGraph;
28class albaSceneGraph;
30class wxHtmlWindow;
31//----------------------------------------------------------------------------
32// albaViewHTML :
33//----------------------------------------------------------------------------
35class ALBA_EXPORT albaViewHTML: public albaView
36{
37public:
38 albaViewHTML(const wxString &label = "vtkViewHTML", int camera_position = CAMERA_PERSPECTIVE, bool show_axes = true, bool show_grid = false, int stereo = 0);
39 virtual ~albaViewHTML();
40
42
43 albaView *Copy(albaObserver *Listener = NULL, bool lightCopyEnabled = false);
44 void Create();
47
48 void VmeAdd (albaVME *vme);
49 void VmeRemove(albaVME *vme);
50 void VmeSelect(albaVME *vme, bool select);
51 void VmeShow (albaVME *vme, bool show);
52 void VmeUpdateProperty(albaVME *vme, bool fromTag = false) {};
54 void VmeDeletePipe(albaVME *vme) {};
55
56 void OnEvent(albaEventBase *alba_event);
57
58 virtual void SetBackgroundColor(wxColor color);
59
62 {
63 ID_LOAD = MINID,
67 };
68
69protected:
73
74 void OnLoad();
75 void OnForward();
76 void OnBack();
77
79
80 wxHtmlWindow *m_Html;
81 wxString m_Url;
82};
83#endif
MINID
Definition: albaDecl.h:420
CAMERA_PERSPECTIVE
Definition: albaDecl.h:232
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
a CheckList that send albaEventNotification in the form albaEvent(this, widget_id,...
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
Definition: albaRWIBase.h:61
albaVME -
Definition: albaVME.h:150
albaSceneGraph * m_Sg
Definition: albaViewHTML.h:71
void VmeSelect(albaVME *vme, bool select)
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
VIEW_HTML_WIDGET_ID
IDs for the GUI.
Definition: albaViewHTML.h:62
void VmeAdd(albaVME *vme)
void OnForward()
albaViewHTML(const wxString &label="vtkViewHTML", int camera_position=CAMERA_PERSPECTIVE, bool show_axes=true, bool show_grid=false, int stereo=0)
void VmeDeletePipe(albaVME *vme)
Definition: albaViewHTML.h:54
void VmeShow(albaVME *vme, bool show)
void VmeCreatePipe(albaVME *vme)
albaSceneGraph * GetSceneGraph()
virtual void SetBackgroundColor(wxColor color)
albaVME * m_ActiveNote
Definition: albaViewHTML.h:72
wxHtmlWindow * m_Html
Definition: albaViewHTML.h:80
albaRWI * m_Rwi
Definition: albaViewHTML.h:70
albaGUI * CreateGui()
Internally used to create a new instance of the GUI.
void VmeRemove(albaVME *vme)
wxString m_Url
Definition: albaViewHTML.h:81
virtual ~albaViewHTML()
albaView * Copy(albaObserver *Listener=NULL, bool lightCopyEnabled=false)
albaRWIBase * GetDefaultRWI()
albaTypeMacro(albaViewHTML, albaView)
void VmeUpdateProperty(albaVME *vme, bool fromTag=false)
Definition: albaViewHTML.h:52
albaView is the base class for Views in alba.
Definition: albaView.h:79