29#ifndef ngscopeclient_h
30#define ngscopeclient_h
32#include "../scopehal/scopehal.h"
34#define GLFW_INCLUDE_NONE
35#define GLFW_INCLUDE_VULKAN
36#include <GLFW/glfw3.h>
37#define IMGUI_DEFINE_MATH_OPERATORS
39#include <misc/cpp/imgui_stdlib.h>
40#include <backends/imgui_impl_glfw.h>
41#include <backends/imgui_impl_vulkan.h>
43#include "ImGuiDisabler.h"
46#include <shared_mutex>
66 std::shared_ptr<SCPIInstrument> inst;
67 std::atomic<bool>* shuttingDown;
71 std::shared_ptr<LoadState> loadstate;
72 std::shared_ptr<MultimeterState> meterstate;
73 std::shared_ptr<BERTState> bertstate;
74 std::shared_ptr<PowerSupplyState> psustate;
75 std::shared_ptr<FunctionGeneratorState> awgstate;
79void WaveformThread(
Session* session, std::atomic<bool>* shuttingDown);
85bool RectIntersect(ImVec2 posA, ImVec2 sizeA, ImVec2 posB, ImVec2 sizeB);
86bool RectContains(ImVec2 posA, ImVec2 sizeA, ImVec2 posB, ImVec2 sizeB);
Declaration of BERTState.
Declaration of FunctionGeneratorState.
Declaration of GuiLogSink.
Declaration of LoadState.
Declaration of MultimeterState.
Declaration of PowerSupplyState.
std::shared_mutex g_vulkanActivityMutex
Mutex for controlling access to background Vulkan activity.
Definition: WaveformThread.cpp:62
Definition: ngscopeclient.h:59
A Session stores all of the instrument configuration and other state the user has open.
Definition: Session.h:95
bool RectContains(ImVec2 posA, ImVec2 sizeA, ImVec2 posB, ImVec2 sizeB)
Check if a rectangle is completely within the other one.
Definition: main.cpp:211
void RightJustifiedText(const string &str)
Helper function for right justified text in a table.
Definition: main.cpp:156
bool RectIntersect(ImVec2 posA, ImVec2 sizeA, ImVec2 posB, ImVec2 sizeB)
Check if two rectangles intersect.
Definition: main.cpp:173