22 #include <SDL_image.h>
25 #include "imgui_internal.h"
28 #include "tinycolormap.hpp"
33 const ImGuiDockNodeFlags
dockspace_flags = ImGuiDockNodeFlags_PassthruCentralNode | ImGuiDockNodeFlags_DockSpace;
34 const ImGuiWindowFlags
window_flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus;
36 void render(ImVec2 pos, ImVec2 size);
40 void save_numpy(std::string *path,
int nx,
int ny, std::vector<T> *data);
42 void save_image(std::string *path, SDL_Surface *sdl_srf);
44 void v_splitter(
float thickness,
float &size0,
const float &min_h,
const float &max_h,
const float &offset);
47 void draw_pixel(SDL_Surface *surface,
int x,
int y,
float val,
int color_map);
48 void draw_pixel(SDL_Surface *surface,
int x,
int y,
float ang,
float mag,
int color_map);
void save_numpy(std::string *path, int nx, int ny, std::vector< T > *data)
void save_image(std::string *path, SDL_Surface *sdl_srf)
void v_splitter(float thickness, float &size0, const float &min_h, const float &max_h, const float &offset)
const ImGuiWindowFlags window_flags
void render(ImVec2 pos, ImVec2 size)
const ImGuiDockNodeFlags dockspace_flags
Main_Dock(ImGuiID dock_id)
void draw_pixel(SDL_Surface *surface, int x, int y, float val, int col_map)