refactoredCPPNeuronMesher
callbacks.h
Go to the documentation of this file.
1 
15 #pragma once
16 #include <GLFW/glfw3.h> // For GLFW window and input handling
17 #include <iostream> // For std::cerr
18 #include <vector> // For std::vector
19 
20 // Forward declarations
21 struct GLFWwindow;
22 
23 // External dependencies
24 #include "neurongraph.h" // For NeuronGraph and SWCNode
25 #include "globals.h" // For global state variables
26 #include "opgl_utils.h" // For utility functions like loadSWC
27 
48 void keyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
62 void mouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
75 void cursorPosCallback(GLFWwindow* window, double xpos, double ypos);
85 void scrollCallback(GLFWwindow* window, double xoffset, double yoffset);
void keyCallback(GLFWwindow *window, int key, int scancode, int action, int mods)
Handles keyboard input events.
Definition: callbacks.cpp:55
void scrollCallback(GLFWwindow *window, double xoffset, double yoffset)
Handles mouse scroll events.
Definition: callbacks.cpp:261
void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods)
Handles mouse button input events.
Definition: callbacks.cpp:184
void cursorPosCallback(GLFWwindow *window, double xpos, double ypos)
Handles mouse cursor movement.
Definition: callbacks.cpp:224
Global state variables for the neuron visualization.
Definition of the NeuronGraph class for handling neuron morphology data.
OpenGL utility functions for neuron visualization.