Geant4 11.1.1
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 45 of file G4OpenGLViewer.hh.

Member Function Documentation

◆ addAttributes()

void G4OpenGLViewerPickMap::addAttributes ( G4String  att)
inline

Definition at line 62 of file G4OpenGLViewer.hh.

62 {
63 fAttributes.push_back(att);
64 }

Referenced by G4OpenGLViewer::GetPickDetails().

◆ getAttributes()

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

Definition at line 82 of file G4OpenGLViewer.hh.

82 {
83 return fAttributes;
84 }

◆ getHitNumber()

G4int G4OpenGLViewerPickMap::getHitNumber ( )
inline

Definition at line 70 of file G4OpenGLViewer.hh.

70 {
71 return fHitNumber;
72 }

◆ getName()

G4String G4OpenGLViewerPickMap::getName ( )
inline

Definition at line 67 of file G4OpenGLViewer.hh.

67 {
68 return fName;
69 }

◆ getPickName()

G4int G4OpenGLViewerPickMap::getPickName ( )
inline

Definition at line 78 of file G4OpenGLViewer.hh.

78 {
79 return fPickName;
80 }

◆ getSubHitNumber()

G4int G4OpenGLViewerPickMap::getSubHitNumber ( )
inline

Definition at line 74 of file G4OpenGLViewer.hh.

74 {
75 return fSubHitNumber;
76 }

◆ print()

G4String G4OpenGLViewerPickMap::print ( )

Definition at line 1531 of file G4OpenGLViewer.cc.

1531 {
1532 std::ostringstream txt;
1533 for (unsigned int a=0; a<fAttributes.size(); a++) {
1534 txt << fAttributes[a];
1535 if (a < fAttributes.size() - 1) txt << "\n";
1536 }
1537 return txt.str();
1538}

◆ setHitNumber()

void G4OpenGLViewerPickMap::setHitNumber ( G4int  n)
inline

Definition at line 51 of file G4OpenGLViewer.hh.

51 {
52 fHitNumber = n;
53 }

Referenced by G4OpenGLViewer::GetPickDetails().

◆ setName()

void G4OpenGLViewerPickMap::setName ( G4String  n)
inline

Definition at line 47 of file G4OpenGLViewer.hh.

47 {
48 fName = n;
49 }

◆ setPickName()

void G4OpenGLViewerPickMap::setPickName ( G4int  n)
inline

Definition at line 58 of file G4OpenGLViewer.hh.

58 {
59 fPickName= n;
60 }

Referenced by G4OpenGLViewer::GetPickDetails().

◆ setSubHitNumber()

void G4OpenGLViewerPickMap::setSubHitNumber ( G4int  n)
inline

Definition at line 55 of file G4OpenGLViewer.hh.

55 {
56 fSubHitNumber = n;
57 }

Referenced by G4OpenGLViewer::GetPickDetails().


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