refactoredCPPNeuronMesher
|
Global state variables for the neuron visualization. More...
#include <vector>
#include <string>
#include <GLFW/glfw3.h>
Go to the source code of this file.
Variables | |
Rendering State | |
int | renderMode |
Current rendering mode (1-5) More... | |
double | rotateX |
Camera rotation around X and Y axes (in degrees) More... | |
double | rotateY |
double | zoom |
Camera zoom factor (higher values = more zoomed in) More... | |
double | panX |
Camera pan offset in X and Y directions. More... | |
double | panY |
bool | dragging |
Mouse drag state flags. More... | |
bool | rightDragging |
double | lastX |
Last recorded mouse cursor position. More... | |
double | lastY |
double | refineDelta |
Refinement parameter for mesh generation. More... | |
std::string | help |
Help text displayed in the help window. More... | |
std::vector< SWCNode > | currentNodes |
Currently loaded neuron nodes for rendering. More... | |
GLFWwindow * | helpWindow |
Pointer to the help window (nullptr if not open) More... | |
NeuronGraph | graph |
The main neuron graph data structure. More... | |
Global state variables for the neuron visualization.
This header declares all global variables used throughout the neuron viewer application. These variables manage the visualization state, camera controls, and current neuron data.
|
extern |
Currently loaded neuron nodes for rendering.
Currently loaded neuron nodes for rendering.
This vector holds the SWC nodes of the currently loaded neuron. It's used throughout the application for rendering and processing.
|
extern |
Mouse drag state flags.
These track the current drag operation:
Mouse drag state flags.
|
extern |
The main neuron graph data structure.
The main neuron graph data structure.
This object holds the complete neuron graph structure and provides methods for loading, processing, and querying the neuron morphology.
|
extern |
Help text displayed in the help window.
Help text displayed in the help window.
Contains formatted text describing the application's keyboard and mouse controls. The text is displayed when the user presses the 'H' key or when explicitly requested.
|
extern |
Pointer to the help window (nullptr if not open)
Pointer to the help window (nullptr if not open)
This is the main window used for displaying the help text. Initialized to nullptr and created when the help window is shown.
|
extern |
Last recorded mouse cursor position.
Used to calculate mouse movement deltas for smooth camera control.
Last recorded mouse cursor position.
double lastY |
|
extern |
Camera pan offset in X and Y directions.
These values control the 2D panning of the view:
Camera pan offset in X and Y directions.
double panY |
|
extern |
Refinement parameter for mesh generation.
Refinement parameter for mesh generation.
Controls the level of detail in the generated geometry. Higher values result in coarser meshes, while lower values produce more detailed meshes. Used in cubic spline interpolation.
|
extern |
Current rendering mode (1-5)
Controls how the neuron is rendered:
Current rendering mode (1-5)
bool rightDragging |
|
extern |
Camera rotation around X and Y axes (in degrees)
These angles control the 3D view orientation:
Camera rotation around X and Y axes (in degrees)
double rotateY |
|
extern |
Camera zoom factor (higher values = more zoomed in)
Camera zoom factor (higher values = more zoomed in)