riCOM_cpp
This repository contains the C++ implementation of the riCOM (Real Time Centre Of Mass) algorithm for 4D Scanning electron microscopy.
Public Member Functions | Public Attributes | List of all members
Main_Dock Class Reference

#include <GuiUtils.h>

Public Member Functions

 Main_Dock (ImGuiID dock_id)
 
void render (ImVec2 pos, ImVec2 size)
 

Public Attributes

ImGuiID dock_id
 
const ImGuiDockNodeFlags dockspace_flags = ImGuiDockNodeFlags_PassthruCentralNode | ImGuiDockNodeFlags_DockSpace
 
const ImGuiWindowFlags window_flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus
 

Detailed Description

Definition at line 29 of file GuiUtils.h.

Constructor & Destructor Documentation

◆ Main_Dock()

Main_Dock::Main_Dock ( ImGuiID  dock_id)
explicit

Definition at line 68 of file GuiUtils.cpp.

69 {
70  this->dock_id = dock_id;
71 }
ImGuiID dock_id
Definition: GuiUtils.h:32

Member Function Documentation

◆ render()

void Main_Dock::render ( ImVec2  pos,
ImVec2  size 
)

Definition at line 73 of file GuiUtils.cpp.

74 {
75  ImGui::SetNextWindowPos(pos);
76  ImGui::SetNextWindowSize(size);
77  ImGui::Begin("DockWindow", nullptr, window_flags);
78  ImGui::DockSpace(dock_id);
79 
80  static auto first_time = true;
81  if (first_time)
82  {
83  first_time = false;
84  ImGui::DockBuilderRemoveNode(dock_id); // clear any previous layout
85  ImGui::DockBuilderAddNode(dock_id, dockspace_flags);
86  ImGui::DockBuilderSetNodePos(dock_id, pos);
87  ImGui::DockBuilderSetNodeSize(dock_id, size);
88  ImGui::DockBuilderDockWindow("RICOM", dock_id);
89  ImGui::DockBuilderFinish(dock_id);
90  }
91  ImGui::End();
92 }
const ImGuiWindowFlags window_flags
Definition: GuiUtils.h:34
const ImGuiDockNodeFlags dockspace_flags
Definition: GuiUtils.h:33

Member Data Documentation

◆ dock_id

ImGuiID Main_Dock::dock_id

Definition at line 32 of file GuiUtils.h.

◆ dockspace_flags

const ImGuiDockNodeFlags Main_Dock::dockspace_flags = ImGuiDockNodeFlags_PassthruCentralNode | ImGuiDockNodeFlags_DockSpace

Definition at line 33 of file GuiUtils.h.

◆ window_flags

const ImGuiWindowFlags Main_Dock::window_flags = ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBringToFrontOnFocus | ImGuiWindowFlags_NoNavFocus

Definition at line 34 of file GuiUtils.h.


The documentation for this class was generated from the following files: