ALBA
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaViewHTML Class Reference

#include <albaViewHTML.h>

Inheritance diagram for albaViewHTML:
Inheritance graph
[legend]
Collaboration diagram for albaViewHTML:
Collaboration graph
[legend]

Public Types

enum  VIEW_HTML_WIDGET_ID { ID_LOAD = MINID , ID_FORWARD , ID_BACK , ID_URL }
 
- Public Types inherited from albaView
enum  VIEW_WIDGET_ID { ID_FIRST = MINID , ID_PRINT_INFO , ID_HELP , ID_LAST }
 

Public Member Functions

 albaViewHTML (const wxString &label="vtkViewHTML", int camera_position=CAMERA_PERSPECTIVE, bool show_axes=true, bool show_grid=false, int stereo=0)
 
virtual ~albaViewHTML ()
 
 albaTypeMacro (albaViewHTML, albaView)
 
albaViewCopy (albaObserver *Listener=NULL, bool lightCopyEnabled=false)
 
void Create ()
 
albaSceneGraphGetSceneGraph ()
 
albaRWIBaseGetDefaultRWI ()
 
void VmeAdd (albaVME *vme)
 
void VmeRemove (albaVME *vme)
 
void VmeSelect (albaVME *vme, bool select)
 
void VmeShow (albaVME *vme, bool show)
 
void VmeUpdateProperty (albaVME *vme, bool fromTag=false)
 
void VmeCreatePipe (albaVME *vme)
 
void VmeDeletePipe (albaVME *vme)
 
void OnEvent (albaEventBase *alba_event)
 
virtual void SetBackgroundColor (wxColor color)
 
- Public Member Functions inherited from albaView
 albaView (const wxString &label="View")
 
virtual ~albaView ()
 
 albaAbstractTypeMacro (albaView, albaObject)
 
virtual void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
virtual albaViewCopy (albaObserver *Listener, bool lightCopyEnabled=false)
 
virtual void Create ()
 
virtual void VmeAdd (albaVME *vme)
 
virtual void VmeRemove (albaVME *vme)
 
virtual void VmeSelect (albaVME *vme, bool select)
 
virtual void VmeShow (albaVME *vme, bool show)
 
virtual void VmeUpdateProperty (albaVME *vme, bool fromTag=false)
 
virtual bool IsVmeShowed (albaVME *vme)
 
virtual void VmeCreatePipe (albaVME *vme)
 
virtual void VmeDeletePipe (albaVME *vme)
 
virtual void CameraReset (albaVME *node=NULL)
 
virtual void CameraUpdate ()
 
virtual void SetMouse (albaDeviceButtonsPadMouse *mouse)
 
virtual albaRWIBaseGetRWI ()
 
virtual albaSceneGraphGetSceneGraph ()
 
virtual void GetImage (wxBitmap &bmp, int magnification=1)
 
virtual void OptionsUpdate ()
 
virtual bool FindPokedVme (albaDevice *device, albaMatrix &point_pose, vtkProp3D *&picked_prop, albaVME *&picked_vme, albaInteractor *&picked_behavior)
 
virtual int GetNodeStatus (albaVME *vme)
 
virtual albaPipeGetNodePipe (albaVME *vme)
 
wxString GetLabel ()
 
wxString GetName ()
 
void SetLabel (wxString label)
 
void SetName (wxString name)
 
virtual wxWindow * GetWindow ()
 
virtual wxFrame * GetFrame ()
 
virtual albaGUIGetGui ()
 
void DeleteGui ()
 
virtual void SetFrame (wxFrame *f)
 
virtual void OnSize (wxSizeEvent &size_event)
 
virtual void SetWindowSize (int w, int h)
 
virtual bool Pick (int x, int y)
 
virtual bool Pick (albaMatrix &m)
 
virtual void GetPickedPosition (double pos[3])
 
virtual albaVMEGetPickedVme ()
 
virtual vtkProp3D * GetPickedProp ()
 
virtual int GetNumberOfVisibleVME ()
 
virtual void Print (std::ostream &os, const int tabs=0)
 
virtual const char * GetHTMLText ()
 
vtkCellPicker * GetPicker2D ()
 
virtual char ** GetIcon ()
 
virtual wxColor GetBackgroundColor ()
 
virtual void SetBackgroundColor (wxColor color)=0
 
bool GetCanSpin () const
 
void SetCanSpin (bool canSpin)
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 
- Public Member Functions inherited from albaObject
 albaObject ()
 
virtual ~albaObject ()
 
virtual void Delete ()
 
virtual const char * GetTypeName () const
 
virtual bool IsA (const char *type_name) const
 
virtual bool IsA (const albaTypeID &type_id) const
 
virtual albaObjectNewObjectInstance () const =0
 
virtual const albaTypeIDGetTypeId () const
 
virtual void Print (std::ostream &os, const int indent=0) const
 
 albaObject (const albaObject &c)
 

Protected Member Functions

void OnLoad ()
 
void OnForward ()
 
void OnBack ()
 
albaGUICreateGui ()
 
- Protected Member Functions inherited from albaView
bool FindPickedVme (vtkAssemblyPath *ap=NULL)
 
virtual albaGUICreateGui ()
 

Protected Attributes

albaRWIm_Rwi
 
albaSceneGraphm_Sg
 
albaVMEm_ActiveNote
 
wxHtmlWindow * m_Html
 
wxString m_Url
 
- Protected Attributes inherited from albaView
albaObserverm_Listener
 
wxString m_Label
 
wxString m_Name
 
wxWindow * m_Win
 
wxFrame * m_Frame
 
albaGUIm_Gui
 
albaGUIHolderm_Guih
 
vtkCellPicker * m_Picker2D
 
vtkALBARayCast3DPicker * m_Picker3D
 
albaVMEm_PickedVME
 
vtkProp3D * m_PickedProp
 
double m_PickedPosition [3]
 
int m_NumberOfVisibleVme
 
wxPrintData * m_PrintData
 
albaString m_HTMLText
 
wxColor m_BackgroundColor
 
bool m_LightCopyEnabled
 
bool m_CanSpin
 
- Protected Attributes inherited from albaObject
bool m_HeapFlag
 

Additional Inherited Members

- Static Public Member Functions inherited from albaObject
static const char * GetStaticTypeName ()
 
static bool IsStaticType (const char *type_name)
 
static bool IsStaticType (const albaTypeID &type_id)
 
static const albaTypeIDGetStaticTypeId ()
 
static albaObjectSafeDownCast (albaObject *o)
 
- Public Attributes inherited from albaView
int m_Mult
 
int m_Id
 
bool m_Plugged
 
albaViewm_Next
 

Detailed Description

Definition at line 35 of file albaViewHTML.h.

Member Enumeration Documentation

◆ VIEW_HTML_WIDGET_ID

IDs for the GUI.

Enumerator
ID_LOAD 
ID_FORWARD 
ID_BACK 
ID_URL 

Definition at line 61 of file albaViewHTML.h.

Constructor & Destructor Documentation

◆ albaViewHTML()

albaViewHTML::albaViewHTML ( const wxString &  label = "vtkViewHTML",
int  camera_position = CAMERA_PERSPECTIVE,
bool  show_axes = true,
bool  show_grid = false,
int  stereo = 0 
)

◆ ~albaViewHTML()

virtual albaViewHTML::~albaViewHTML ( )
virtual

Member Function Documentation

◆ albaTypeMacro()

albaViewHTML::albaTypeMacro ( albaViewHTML  ,
albaView   
)

◆ Copy()

albaView * albaViewHTML::Copy ( albaObserver Listener = NULL,
bool  lightCopyEnabled = false 
)
virtual

Reimplemented from albaView.

◆ Create()

void albaViewHTML::Create ( )
virtual

Reimplemented from albaView.

◆ GetSceneGraph()

albaSceneGraph * albaViewHTML::GetSceneGraph ( )
virtual

Reimplemented from albaView.

◆ GetDefaultRWI()

albaRWIBase * albaViewHTML::GetDefaultRWI ( )

◆ VmeAdd()

void albaViewHTML::VmeAdd ( albaVME vme)
virtual

Reimplemented from albaView.

◆ VmeRemove()

void albaViewHTML::VmeRemove ( albaVME vme)
virtual

Reimplemented from albaView.

◆ VmeSelect()

void albaViewHTML::VmeSelect ( albaVME vme,
bool  select 
)
virtual

Reimplemented from albaView.

◆ VmeShow()

void albaViewHTML::VmeShow ( albaVME vme,
bool  show 
)
virtual

Reimplemented from albaView.

◆ VmeUpdateProperty()

void albaViewHTML::VmeUpdateProperty ( albaVME vme,
bool  fromTag = false 
)
inlinevirtual

Reimplemented from albaView.

Definition at line 52 of file albaViewHTML.h.

◆ VmeCreatePipe()

void albaViewHTML::VmeCreatePipe ( albaVME vme)
virtual

Reimplemented from albaView.

◆ VmeDeletePipe()

void albaViewHTML::VmeDeletePipe ( albaVME vme)
inlinevirtual

Reimplemented from albaView.

Definition at line 54 of file albaViewHTML.h.

◆ OnEvent()

void albaViewHTML::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Reimplemented from albaView.

◆ SetBackgroundColor()

virtual void albaViewHTML::SetBackgroundColor ( wxColor  color)
virtual

Implements albaView.

◆ OnLoad()

void albaViewHTML::OnLoad ( )
protected

◆ OnForward()

void albaViewHTML::OnForward ( )
protected

◆ OnBack()

void albaViewHTML::OnBack ( )
protected

◆ CreateGui()

albaGUI * albaViewHTML::CreateGui ( )
protectedvirtual

Internally used to create a new instance of the GUI.

This function should be overridden by subclasses to create specialized GUIs. Each subclass should append its own widgets and define the enum of IDs for the widgets as an extension of the superclass enum. The last id value must be defined as "LAST_ID" to allow the subclass to continue the ID enumeration from it. For appending the widgets in the same panel GUI, each CreateGUI() function should first call the superclass' one.

Reimplemented from albaView.

Member Data Documentation

◆ m_Rwi

albaRWI* albaViewHTML::m_Rwi
protected

Definition at line 70 of file albaViewHTML.h.

◆ m_Sg

albaSceneGraph* albaViewHTML::m_Sg
protected

Definition at line 71 of file albaViewHTML.h.

◆ m_ActiveNote

albaVME* albaViewHTML::m_ActiveNote
protected

Definition at line 72 of file albaViewHTML.h.

◆ m_Html

wxHtmlWindow* albaViewHTML::m_Html
protected

Definition at line 80 of file albaViewHTML.h.

◆ m_Url

wxString albaViewHTML::m_Url
protected

Definition at line 81 of file albaViewHTML.h.


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