Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpenGLViewerPickMap Class Reference

#include <G4OpenGLViewer.hh>

Public Member Functions

void setName (G4String n)
 
void setHitNumber (G4int n)
 
void setSubHitNumber (G4int n)
 
void setPickName (G4int n)
 
void addAttributes (G4String att)
 
G4String getName ()
 
G4int getHitNumber ()
 
G4int getSubHitNumber ()
 
G4int getPickName ()
 
std::vector< G4StringgetAttributes ()
 
G4String print ()
 

Detailed Description

Definition at line 42 of file G4OpenGLViewer.hh.

Member Function Documentation

◆ addAttributes()

void G4OpenGLViewerPickMap::addAttributes ( G4String att)
inline

Definition at line 59 of file G4OpenGLViewer.hh.

59 {
60 fAttributes.push_back(att);
61 }

Referenced by G4OpenGLViewer::GetPickDetails().

◆ getAttributes()

std::vector< G4String > G4OpenGLViewerPickMap::getAttributes ( )
inline

Definition at line 79 of file G4OpenGLViewer.hh.

79 {
80 return fAttributes;
81 }

◆ getHitNumber()

G4int G4OpenGLViewerPickMap::getHitNumber ( )
inline

Definition at line 67 of file G4OpenGLViewer.hh.

67 {
68 return fHitNumber;
69 }

◆ getName()

G4String G4OpenGLViewerPickMap::getName ( )
inline

Definition at line 64 of file G4OpenGLViewer.hh.

64 {
65 return fName;
66 }

◆ getPickName()

G4int G4OpenGLViewerPickMap::getPickName ( )
inline

Definition at line 75 of file G4OpenGLViewer.hh.

75 {
76 return fPickName;
77 }

◆ getSubHitNumber()

G4int G4OpenGLViewerPickMap::getSubHitNumber ( )
inline

Definition at line 71 of file G4OpenGLViewer.hh.

71 {
72 return fSubHitNumber;
73 }

◆ print()

G4String G4OpenGLViewerPickMap::print ( )

Definition at line 1447 of file G4OpenGLViewer.cc.

1447 {
1448 std::ostringstream txt;
1449 for (unsigned int a=0; a<fAttributes.size(); a++) {
1450 txt << fAttributes[a];
1451 if (a < fAttributes.size() - 1) txt << "\n";
1452 }
1453 return txt.str();
1454}

◆ setHitNumber()

void G4OpenGLViewerPickMap::setHitNumber ( G4int n)
inline

Definition at line 48 of file G4OpenGLViewer.hh.

48 {
49 fHitNumber = n;
50 }

Referenced by G4OpenGLViewer::GetPickDetails().

◆ setName()

void G4OpenGLViewerPickMap::setName ( G4String n)
inline

Definition at line 44 of file G4OpenGLViewer.hh.

44 {
45 fName = n;
46 }

◆ setPickName()

void G4OpenGLViewerPickMap::setPickName ( G4int n)
inline

Definition at line 55 of file G4OpenGLViewer.hh.

55 {
56 fPickName= n;
57 }

Referenced by G4OpenGLViewer::GetPickDetails().

◆ setSubHitNumber()

void G4OpenGLViewerPickMap::setSubHitNumber ( G4int n)
inline

Definition at line 52 of file G4OpenGLViewer.hh.

52 {
53 fSubHitNumber = n;
54 }

Referenced by G4OpenGLViewer::GetPickDetails().


The documentation for this class was generated from the following files: