Files
geant4/source/externals/g4tools/include/tools/metal/ui_viewer
T
2021-06-25 16:12:29 +02:00

32 lines
762 B
Plaintext

// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.
#ifndef tools_metal_ui_viewer
#define tools_metal_ui_viewer
#include <tools/sg/viewer>
namespace tools {
namespace metal {
class ui_viewer : public tools::sg::viewer {
typedef tools::sg::viewer parent;
public:
virtual void win_render() = 0;
//virtual void set_to_render() {} //for Apple/Metal.
public:
ui_viewer(std::ostream& a_out,unsigned int a_width,unsigned int a_height):parent(a_out,a_width,a_height){}
virtual ~ui_viewer(){}
protected:
ui_viewer(const ui_viewer& a_from):parent(a_from){}
ui_viewer& operator=(const ui_viewer& a_from){
if(&a_from==this) return *this;
parent::operator=(a_from);
return *this;
}
};
}}
#endif