Geant4-11
Public Member Functions | Protected Attributes
G4RTSimpleScanner Class Reference

#include <G4RTSimpleScanner.hh>

Inheritance diagram for G4RTSimpleScanner:
G4VRTScanner

Public Member Functions

virtual G4bool Coords (G4int &iRow, G4int &iColumn)
 
virtual void Draw (unsigned char red, unsigned char green, unsigned char blue)
 
 G4RTSimpleScanner ()
 
virtual const G4String & GetGSName () const
 
virtual const G4String & GetGSNickname () const
 
virtual void Initialize (G4int nRow, G4int nColumn)
 
virtual ~G4RTSimpleScanner ()
 

Protected Attributes

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

Detailed Description

Definition at line 40 of file G4RTSimpleScanner.hh.

Constructor & Destructor Documentation

◆ G4RTSimpleScanner()

G4RTSimpleScanner::G4RTSimpleScanner ( )

Definition at line 32 of file G4RTSimpleScanner.cc.

32 :
34{
35 theGSName = "RayTracer";
36 theGSNickname = "RayTracer";
37}

References theGSName, and theGSNickname.

◆ ~G4RTSimpleScanner()

G4RTSimpleScanner::~G4RTSimpleScanner ( )
virtual

Definition at line 39 of file G4RTSimpleScanner.cc.

39{}

Member Function Documentation

◆ Coords()

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

Implements G4VRTScanner.

Definition at line 54 of file G4RTSimpleScanner.cc.

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

References theIColumn, theIRow, theNColumn, and theNRow.

◆ Draw()

void G4VRTScanner::Draw ( unsigned char  red,
unsigned char  green,
unsigned char  blue 
)
inlinevirtualinherited

Reimplemented in G4RTXScanner.

Definition at line 70 of file G4VRTScanner.hh.

70{}

Referenced by G4TheMTRayTracer::CreateBitMap(), and G4TheRayTracer::CreateBitMap().

◆ GetGSName()

const G4String & G4RTSimpleScanner::GetGSName ( ) const
virtual

Implements G4VRTScanner.

Definition at line 41 of file G4RTSimpleScanner.cc.

42{return theGSName;}

References theGSName.

◆ GetGSNickname()

const G4String & G4RTSimpleScanner::GetGSNickname ( ) const
virtual

Implements G4VRTScanner.

Definition at line 44 of file G4RTSimpleScanner.cc.

45{return theGSNickname;}

References theGSNickname.

◆ Initialize()

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

Implements G4VRTScanner.

Definition at line 47 of file G4RTSimpleScanner.cc.

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

References theIColumn, theIRow, theNColumn, and theNRow.

Field Documentation

◆ theGSName

G4String G4RTSimpleScanner::theGSName
protected

Definition at line 66 of file G4RTSimpleScanner.hh.

Referenced by G4RTSimpleScanner(), and GetGSName().

◆ theGSNickname

G4String G4RTSimpleScanner::theGSNickname
protected

Definition at line 66 of file G4RTSimpleScanner.hh.

Referenced by G4RTSimpleScanner(), and GetGSNickname().

◆ theIColumn

G4int G4RTSimpleScanner::theIColumn
protected

Definition at line 67 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().

◆ theIRow

G4int G4RTSimpleScanner::theIRow
protected

Definition at line 67 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().

◆ theNColumn

G4int G4RTSimpleScanner::theNColumn
protected

Definition at line 67 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().

◆ theNRow

G4int G4RTSimpleScanner::theNRow
protected

Definition at line 67 of file G4RTSimpleScanner.hh.

Referenced by Coords(), and Initialize().


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