Geant4-11
Data Structures | Functions
G4OpenInventorViewer.cc File Reference
#include "G4OpenInventorViewer.hh"
#include <Inventor/nodes/SoSelection.h>
#include <Inventor/nodes/SoShape.h>
#include <Inventor/nodes/SoOrthographicCamera.h>
#include <Inventor/nodes/SoPerspectiveCamera.h>
#include <Inventor/actions/SoCallbackAction.h>
#include <Inventor/actions/SoWriteAction.h>
#include <Inventor/sensors/SoNodeSensor.h>
#include "HEPVis/nodes/SoImageWriter.h"
#include "HEPVis/actions/SoGL2PSAction.h"
#include "HEPVis/actions/SoCounterAction.h"
#include "HEPVis/actions/SoAlternateRepAction.h"
#include "G4OpenInventor.hh"
#include "G4OpenInventorSceneHandler.hh"
#include "G4VInteractorManager.hh"
#include "G4Scene.hh"
#include "Geant4_SoPolyhedron.h"
#include "G4AttValue.hh"
#include "G4AttDef.hh"
#include "G4AttCheck.hh"
#include "G4AttHolder.hh"

Go to the source code of this file.

Data Structures

struct  Counter
 

Functions

static void CountLineSegmentsCB (void *userData, SoCallbackAction *, const SoPrimitiveVertex *, const SoPrimitiveVertex *)
 
static void CountPointsCB (void *userData, SoCallbackAction *, const SoPrimitiveVertex *)
 
static void CountTrianglesCB (void *userData, SoCallbackAction *, const SoPrimitiveVertex *, const SoPrimitiveVertex *, const SoPrimitiveVertex *)
 

Function Documentation

◆ CountLineSegmentsCB()

static void CountLineSegmentsCB ( void *  userData,
SoCallbackAction *  ,
const SoPrimitiveVertex *  ,
const SoPrimitiveVertex *   
)
static

Definition at line 614 of file G4OpenInventorViewer.cc.

619{
620 Counter* counter = (Counter*)userData;
621 counter->fLineSegments++;
622}
#define userData
Definition: xmlparse.cc:572

References Counter::fLineSegments, and userData.

Referenced by G4OpenInventorViewer::SceneGraphStatistics().

◆ CountPointsCB()

static void CountPointsCB ( void *  userData,
SoCallbackAction *  ,
const SoPrimitiveVertex *   
)
static

Definition at line 624 of file G4OpenInventorViewer.cc.

628{
629 Counter* counter = (Counter*)userData;
630 counter->fPoints++;
631}

References Counter::fPoints, and userData.

Referenced by G4OpenInventorViewer::SceneGraphStatistics().

◆ CountTrianglesCB()

static void CountTrianglesCB ( void *  userData,
SoCallbackAction *  ,
const SoPrimitiveVertex *  ,
const SoPrimitiveVertex *  ,
const SoPrimitiveVertex *   
)
static

Definition at line 603 of file G4OpenInventorViewer.cc.

609{
610 Counter* counter = (Counter*)userData;
611 counter->fTriangles++;
612}

References Counter::fTriangles, and userData.

Referenced by G4OpenInventorViewer::SceneGraphStatistics().