g4tools  5.4.0
ui_viewer
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_metal_ui_viewer
5 #define tools_metal_ui_viewer
6 
7 #include <tools/sg/viewer>
8 
9 namespace tools {
10 namespace metal {
11 
12 class ui_viewer : public tools::sg::viewer {
13  typedef tools::sg::viewer parent;
14 public:
15  virtual void win_render() = 0;
16  //virtual void set_to_render() {} //for Apple/Metal.
17 public:
18  ui_viewer(std::ostream& a_out,unsigned int a_width,unsigned int a_height):parent(a_out,a_width,a_height){}
19  virtual ~ui_viewer(){}
20 protected:
21  ui_viewer(const ui_viewer& a_from):parent(a_from){}
22  ui_viewer& operator=(const ui_viewer& a_from){
23  if(&a_from==this) return *this;
24  parent::operator=(a_from);
25  return *this;
26  }
27 };
28 
29 }}
30 
31 #endif
tools::metal::ui_viewer
Definition: ui_viewer:12
tools::sg::viewer::operator=
viewer & operator=(const viewer &a_from)
Definition: viewer:79
tools::metal::ui_viewer::ui_viewer
ui_viewer(std::ostream &a_out, unsigned int a_width, unsigned int a_height)
Definition: ui_viewer:18
tools::metal::ui_viewer::operator=
ui_viewer & operator=(const ui_viewer &a_from)
Definition: ui_viewer:22
tools::metal::ui_viewer::win_render
virtual void win_render()=0
viewer
tools::metal::ui_viewer::~ui_viewer
virtual ~ui_viewer()
Definition: ui_viewer:19
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::sg::viewer
Definition: viewer:18
tools::metal::ui_viewer::ui_viewer
ui_viewer(const ui_viewer &a_from)
Definition: ui_viewer:21