#include <G4RTSimpleScanner.hh>
Inheritance diagram for G4RTSimpleScanner:
Public Member Functions | |
G4RTSimpleScanner () | |
virtual | ~G4RTSimpleScanner () |
virtual const G4String & | GetGSName () const |
virtual const G4String & | GetGSNickname () const |
virtual void | Initialize (G4int nRow, G4int nColumn) |
virtual G4bool | Coords (G4int &iRow, G4int &iColumn) |
Protected Attributes | |
G4String | theGSName |
G4String | theGSNickname |
G4int | theNRow |
G4int | theNColumn |
G4int | theIRow |
G4int | theIColumn |
Definition at line 41 of file G4RTSimpleScanner.hh.
G4RTSimpleScanner::G4RTSimpleScanner | ( | ) |
Definition at line 33 of file G4RTSimpleScanner.cc.
References theGSName, and theGSNickname.
00033 : 00034 G4VRTScanner(), theNRow(0), theNColumn(0), theIRow(0), theIColumn(0) 00035 { 00036 theGSName = "RayTracer"; 00037 theGSNickname = "RayTracer"; 00038 }
G4RTSimpleScanner::~G4RTSimpleScanner | ( | ) | [virtual] |
Implements G4VRTScanner.
Definition at line 55 of file G4RTSimpleScanner.cc.
References theIColumn, theIRow, theNColumn, and theNRow.
00056 { 00057 // Increment column and, if necessary, increment row... 00058 ++theIColumn; 00059 if (theIColumn >= theNColumn) { 00060 theIColumn = 0; 00061 ++theIRow; 00062 } 00063 00064 // Return if finished... 00065 if (theIRow >= theNRow) return false; 00066 00067 // Return current row and column... 00068 iRow = theIRow; 00069 iColumn = theIColumn; 00070 return true; 00071 }
const G4String & G4RTSimpleScanner::GetGSName | ( | ) | const [virtual] |
Implements G4VRTScanner.
Definition at line 42 of file G4RTSimpleScanner.cc.
References theGSName.
00043 {return theGSName;}
const G4String & G4RTSimpleScanner::GetGSNickname | ( | ) | const [virtual] |
Implements G4VRTScanner.
Definition at line 45 of file G4RTSimpleScanner.cc.
References theGSNickname.
00046 {return theGSNickname;}
Implements G4VRTScanner.
Definition at line 48 of file G4RTSimpleScanner.cc.
References theIColumn, theIRow, theNColumn, and theNRow.
00048 { 00049 theNRow = nRow; 00050 theNColumn = nColumn; 00051 theIRow = 0; 00052 theIColumn = -1; 00053 }
G4String G4RTSimpleScanner::theGSName [protected] |
Definition at line 67 of file G4RTSimpleScanner.hh.
Referenced by G4RTSimpleScanner(), and GetGSName().
G4String G4RTSimpleScanner::theGSNickname [protected] |
Definition at line 67 of file G4RTSimpleScanner.hh.
Referenced by G4RTSimpleScanner(), and GetGSNickname().
G4int G4RTSimpleScanner::theIColumn [protected] |
G4int G4RTSimpleScanner::theIRow [protected] |
G4int G4RTSimpleScanner::theNColumn [protected] |
G4int G4RTSimpleScanner::theNRow [protected] |