Geant4-11
Macros | Functions
G4OpenGLXViewer.cc File Reference
#include "G4OpenGLXViewer.hh"
#include "G4OpenGLSceneHandler.hh"
#include "G4OpenGLFontBaseStore.hh"
#include "G4VisExtent.hh"
#include "G4LogicalVolume.hh"
#include "G4VSolid.hh"
#include "G4Point3D.hh"
#include "G4Normal3D.hh"
#include "G4StateManager.hh"
#include "G4VisManager.hh"
#include "G4Text.hh"
#include "G4Threading.hh"
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/Xmu/StdCmap.h>
#include <assert.h>
#include <sstream>
#include <chrono>
#include <thread>

Go to the source code of this file.

Macros

#define NewString(str)    ((str) != 0 ? (strncpy((char*)malloc((unsigned)strlen(str) + 1), str, (unsigned)strlen(str) + 1)) : (char*)0)
 
#define USE_DEFAULT_COLORMAP   1
 
#define USE_STANDARD_COLORMAP   0
 

Functions

static Bool G4OpenGLXViewerWaitForNotify (Display *, XEvent *e, char *arg)
 

Macro Definition Documentation

◆ NewString

#define NewString (   str)     ((str) != 0 ? (strncpy((char*)malloc((unsigned)strlen(str) + 1), str, (unsigned)strlen(str) + 1)) : (char*)0)

Definition at line 76 of file G4OpenGLXViewer.cc.

◆ USE_DEFAULT_COLORMAP

#define USE_DEFAULT_COLORMAP   1

Definition at line 79 of file G4OpenGLXViewer.cc.

◆ USE_STANDARD_COLORMAP

#define USE_STANDARD_COLORMAP   0

Definition at line 80 of file G4OpenGLXViewer.cc.

Function Documentation

◆ G4OpenGLXViewerWaitForNotify()

static Bool G4OpenGLXViewerWaitForNotify ( Display *  ,
XEvent *  e,
char *  arg 
)
static

Definition at line 86 of file G4OpenGLXViewer.cc.

86 {
87 return (e->type == MapNotify) && (e->xmap.window == (Window) arg);
88 }

Referenced by G4OpenGLXViewer::CreateMainWindow().