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

#include <G4RTSimpleScanner.hh>

+ Inheritance diagram for G4RTSimpleScanner:

Public Member Functions

 G4RTSimpleScanner ()
 
virtual ~G4RTSimpleScanner ()
 
virtual const G4StringGetGSName () const
 
virtual const G4StringGetGSNickname () const
 
virtual void Initialize (G4int nRow, G4int nColumn)
 
virtual G4bool Coords (G4int &iRow, G4int &iColumn)
 
- Public Member Functions inherited from G4VRTScanner
 G4VRTScanner ()
 
virtual ~G4VRTScanner ()
 
virtual const G4StringGetGSName () const =0
 
virtual const G4StringGetGSNickname () const =0
 
virtual void Initialize (G4int nRow, G4int nColumn)=0
 
virtual G4bool Coords (G4int &iRow, G4int &iColumn)=0
 
virtual void Draw (unsigned char red, unsigned char green, unsigned char blue)
 

Protected Attributes

G4String theGSName
 
G4String theGSNickname
 
G4int theNRow
 
G4int theNColumn
 
G4int theIRow
 
G4int theIColumn
 

Detailed Description

Definition at line 41 of file G4RTSimpleScanner.hh.

Constructor & Destructor Documentation

◆ G4RTSimpleScanner()

G4RTSimpleScanner::G4RTSimpleScanner ( )

Definition at line 33 of file G4RTSimpleScanner.cc.

33 :
35{
36 theGSName = "RayTracer";
37 theGSNickname = "RayTracer";
38}

◆ ~G4RTSimpleScanner()

G4RTSimpleScanner::~G4RTSimpleScanner ( )
virtual

Definition at line 40 of file G4RTSimpleScanner.cc.

40{}

Member Function Documentation

◆ Coords()

G4bool G4RTSimpleScanner::Coords ( G4int iRow,
G4int iColumn 
)
virtual

Implements G4VRTScanner.

Definition at line 55 of file G4RTSimpleScanner.cc.

56{
57 // Increment column and, if necessary, increment row...
58 ++theIColumn;
59 if (theIColumn >= theNColumn) {
60 theIColumn = 0;
61 ++theIRow;
62 }
63
64 // Return if finished...
65 if (theIRow >= theNRow) return false;
66
67 // Return current row and column...
68 iRow = theIRow;
69 iColumn = theIColumn;
70 return true;
71}

◆ GetGSName()

const G4String & G4RTSimpleScanner::GetGSName ( ) const
virtual

Implements G4VRTScanner.

Definition at line 42 of file G4RTSimpleScanner.cc.

43{return theGSName;}

◆ GetGSNickname()

const G4String & G4RTSimpleScanner::GetGSNickname ( ) const
virtual

Implements G4VRTScanner.

Definition at line 45 of file G4RTSimpleScanner.cc.

46{return theGSNickname;}

◆ Initialize()

void G4RTSimpleScanner::Initialize ( G4int  nRow,
G4int  nColumn 
)
virtual

Implements G4VRTScanner.

Definition at line 48 of file G4RTSimpleScanner.cc.

48 {
49 theNRow = nRow;
50 theNColumn = nColumn;
51 theIRow = 0;
52 theIColumn = -1;
53}

Member Data Documentation

◆ theGSName

G4String G4RTSimpleScanner::theGSName
protected

Definition at line 67 of file G4RTSimpleScanner.hh.

Referenced by G4RTSimpleScanner(), and GetGSName().

◆ theGSNickname

G4String G4RTSimpleScanner::theGSNickname
protected

Definition at line 67 of file G4RTSimpleScanner.hh.

Referenced by G4RTSimpleScanner(), and GetGSNickname().

◆ theIColumn

G4int G4RTSimpleScanner::theIColumn
protected

Definition at line 68 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().

◆ theIRow

G4int G4RTSimpleScanner::theIRow
protected

Definition at line 68 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().

◆ theNColumn

G4int G4RTSimpleScanner::theNColumn
protected

Definition at line 68 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().

◆ theNRow

G4int G4RTSimpleScanner::theNRow
protected

Definition at line 68 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().


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