g4display
Loading...
Searching...
No Matches
g4displayConventions.h
Go to the documentation of this file.
1
#pragma once
2
11
12
#include <vector>
13
#include <string>
14
15
// Notice: with Qt6 we do not have access anymore to OGL, but the examples still do.
16
// This can be a potential problem in the future.
17
18
// Viewer driver guide (availability of interactive drivers depends on the Geant4 build and platform):
19
// - ASCIITree (ATree): geometry hierarchy as text; useful headless, but provides no graphical view.
20
// - DAWNFILE (DAWNFILE): high-quality technical-renderer export; requires DAWN and is not interactive.
21
// - RayTracer (RT): software-rendered JPEG output; realistic but slower and not interactive.
22
// - VRML2FILE (VRML2FILE): portable 3D scene export; requires an external VRML viewer.
23
// - gMocrenFile (gMocrenFile): medical volume-rendering export; specialized and requires gMocren.
24
// - TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE): headless image/vector output; no interactive window.
25
// - OpenGLImmediateQt (OGLIQt, OGLI): Qt/OpenGL with low scene memory; complex scenes redraw slowly.
26
// - OpenGLStoredQt (OGLSQt, OGLS): Qt/OpenGL with fast redraw and picking; uses more graphics memory.
27
// - OpenGLImmediateX (OGLIX, OGLIQt_FALLBACK): X11/OpenGL with low scene memory; requires an X server.
28
// - OpenGLStoredX (OGLSX, OGLSQt_FALLBACK): fast X11/OpenGL redraw; requires X and more graphics memory.
29
// - RayTracerX (RTX): ray-traced JPEG plus an X window; requires X and remains computationally expensive.
30
// - TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_QT_GLES_FALLBACK): interactive X11/GLES without Qt;
31
// requires an X server and GLES support.
32
33
// Default viewer driver used by the module.
34
#define GDEFAULTVIEWERDRIVER "OGLSQt"
35
36
// Default viewer window size (WIDTHxHEIGHT).
37
#define GDEFAULTVIEWERSIZE "800x800"
38
39
// Default viewer window position (X+Y or -X+Y depending on window manager conventions).
40
#define GDEFAULTVIEWERPOS "-400+100"
41
42
// Default circle segmentation resolution for curved primitives.
43
#define GDEFAULTVSEGPERCIRCLE 100
44
45
// Sentinel value used to indicate that a scene text Z coordinate was not specified.
46
#define GNOT_SPECIFIED_SCENE_TEXT_Z (-1234.5)
47
48
// Error codes (module-specific).
49
#define EC__VISDRIVERNOTFOUND 1301
50
#define EC__NOUIMANAGER 1302
51
58
extern
std::vector<std::string>
AVAILABLEG4VIEWERS
;
AVAILABLEG4VIEWERS
std::vector< std::string > AVAILABLEG4VIEWERS
List of Geant4 viewer driver names known to the application.
g4displayConventions.h
Generated by
1.15.0