Geant4 11.4.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 void Initialize (G4int nRow, G4int nColumn)
virtual G4bool Coords (G4int &iRow, G4int &iColumn)
Public Member Functions inherited from G4VRTScanner
 G4VRTScanner ()
virtual ~G4VRTScanner ()
virtual void Draw (unsigned char red, unsigned char green, unsigned char blue)

Protected Attributes

G4int theNRow
G4int theNColumn
G4int theIRow
G4int theIColumn

Detailed Description

Definition at line 40 of file G4RTSimpleScanner.hh.

Constructor & Destructor Documentation

◆ G4RTSimpleScanner()

G4RTSimpleScanner::G4RTSimpleScanner ( )

◆ ~G4RTSimpleScanner()

G4RTSimpleScanner::~G4RTSimpleScanner ( )
virtual

Definition at line 36 of file G4RTSimpleScanner.cc.

36{}

Member Function Documentation

◆ Coords()

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

Implements G4VRTScanner.

Definition at line 45 of file G4RTSimpleScanner.cc.

46{
47 // Increment column and, if necessary, increment row...
48 ++theIColumn;
49 if (theIColumn >= theNColumn) {
50 theIColumn = 0;
51 ++theIRow;
52 }
53
54 // Return if finished...
55 if (theIRow >= theNRow) return false;
56
57 // Return current row and column...
58 iRow = theIRow;
59 iColumn = theIColumn;
60 return true;
61}

◆ Initialize()

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

Implements G4VRTScanner.

Definition at line 38 of file G4RTSimpleScanner.cc.

38 {
39 theNRow = nRow;
40 theNColumn = nColumn;
41 theIRow = 0;
42 theIColumn = -1;
43}

Member Data Documentation

◆ theIColumn

G4int G4RTSimpleScanner::theIColumn
protected

Definition at line 58 of file G4RTSimpleScanner.hh.

Referenced by Coords(), G4RTSimpleScanner(), and Initialize().

◆ theIRow

G4int G4RTSimpleScanner::theIRow
protected

Definition at line 58 of file G4RTSimpleScanner.hh.

Referenced by Coords(), G4RTSimpleScanner(), and Initialize().

◆ theNColumn

G4int G4RTSimpleScanner::theNColumn
protected

Definition at line 58 of file G4RTSimpleScanner.hh.

Referenced by Coords(), G4RTSimpleScanner(), and Initialize().

◆ theNRow

G4int G4RTSimpleScanner::theNRow
protected

Definition at line 58 of file G4RTSimpleScanner.hh.

Referenced by Coords(), G4RTSimpleScanner(), and Initialize().


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