Free Electron
OrthoViewer.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __viewer__OrthoViewer_h__
8 #define __viewer__OrthoViewer_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /** Orthographic viewer
16 
17  @copydoc OrthoViewer_info
18  */
19 class FE_DL_EXPORT OrthoViewer : public Initialize<OrthoViewer>,
20  public Config,
21  virtual public SignalerViewerI,
22  virtual public HandlerI
23 {
24  public:
25  OrthoViewer(void);
26 virtual ~OrthoViewer(void);
27  void initialize(void);
28 
29  // AS ViewerI
30 
31  using ViewerI::bind;
32 
33 virtual void bind(sp<WindowI> spWindowI);
34 virtual void render(Real a_time,Real a_timestep) {}
35 virtual Real frameRate(void) const { return Real(0); }
36 
37  // AS HandlerI
38 
39 virtual void handle(Record& record);
40 virtual void handleBind(sp<SignalerI> spSignalerI,
41  sp<Layout> spLayout);
42 
43  private:
44  hp<WindowI> m_spWindowI;
45  AsOrtho m_asOrtho;
46  AsSignal m_asSignal;
47  AsWindata m_asWindata;
48  sp<ViewI> m_view;
49 };
50 
51 } /* namespace ext */
52 } /* namespace fe */
53 
54 #endif /* __viewer__OrthoViewer_h__ */
55 
virtual void render(Real a_time, Real a_timestep)
Send signals for one frame.
Definition: OrthoViewer.h:34
Convienience base class for specification and use of path accessors.
Definition: Config.h:19
orthographic projection related
Definition: windowAS.h:257
window data
Definition: datatoolAS.h:38
virtual void bind(sp< WindowI > spWindowI)
Adopts a WindowI.
Definition: ViewerI.h:28
possible attributes of a top level signal
Definition: datatoolAS.h:16
Simple viewer interface.
Definition: SignalerViewerI.h:22
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Safe handle for shared pointer.
Definition: Handled.h:61
virtual Real frameRate(void) const
Returns frames per seconds.
Definition: OrthoViewer.h:35
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Orthographic viewer.
Definition: OrthoViewer.h:19