 |
Shiokaze Framework
A research-oriented fluid solver for computer graphics
|
|
Go to the documentation of this file.
25 #ifndef SHKZ_DRAWABLE_H
26 #define SHKZ_DRAWABLE_H
33 #elif SPATIAL_DIM == 2
36 #error DSPATIAL_DIM must be defined either 2 or 3.
55 m_environment = environment;
66 bool handled = m_camera->handle_event(event);
67 if( ! handled && m_camera->relay_event(event)) {
90 virtual void setup_window( std::string &name,
int &width,
int &height )
const {}
120 return m_camera->get_current_cursor();
132 #elif SPATIAL_DIM == 2
virtual void reinitialize()
Re-initialize instance.
Definition: drawable.h:79
virtual void setup_window(std::string &name, int &width, int &height) const
Set up an initial new window environment.
Definition: drawable.h:90
virtual void recursive_initialize(const configurable::environment_map &environment=configurable::environment_map())
Initialize the program itself and relay the same to its children. Used to get things ready for actual...
Definition: configurable.h:166
virtual bool handle_event(const event_structure &event) override
Definition: drawable.h:64
Class that performs a task.
Definition: runnable.h:35
Class that encapsulates recursive_configurable class.
Definition: recursive_configurable_module.h:76
Interface for implementing drawable classes.
Definition: drawable.h:44
virtual bool handle_event(const event_structure &event)
Definition: UI_interface.h:172
CURSOR_TYPE
Cursor icon type.
Definition: UI_interface.h:211
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition: common.h:39
virtual bool should_screenshot() const
Function to tell the host program that screenshot should be taken.
Definition: drawable.h:104
virtual bool should_quit() const override
Function to tell the host program that program should quit.
Definition: drawable.h:97
#define LONG_NAME(long_name)
Macro that defines the full name.
Definition: credit.h:37
Event information structure.
Definition: UI_interface.h:96
Interface for input APIs.
Definition: UI_interface.h:38
virtual bool hide_logo() const
Tell the host program if a SHKZ logo should be hidden.
Definition: drawable.h:111
std::map< std::string, const void * > environment_map
Type for environment_map.
Definition: configurable.h:46
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition: common.h:44
virtual UI_interface::CURSOR_TYPE get_current_cursor() const override
Get current cursor icon.
Definition: drawable.h:118
virtual void recursive_initialize(const environment_map &environment) override
Recursively call configure.
Definition: drawable.h:54
@ ARROW_CURSOR
Regular arrow cursor.
Definition: UI_interface.h:214