Geant4  10.00.p02
G4VScoreColorMap Class Referenceabstract

#include <G4VScoreColorMap.hh>

+ Inheritance diagram for G4VScoreColorMap:
+ Collaboration diagram for G4VScoreColorMap:

Public Member Functions

 G4VScoreColorMap (G4String mName)
 
virtual ~G4VScoreColorMap ()
 
virtual void GetMapColor (G4double val, G4double color[4])=0
 
G4String GetName () const
 
void SetFloatingMinMax (G4bool vl=true)
 
G4bool IfFloatMinMax () const
 
void SetMinMax (G4double minVal, G4double maxVal)
 
G4double GetMin () const
 
G4double GetMax () const
 
virtual void DrawColorChart (G4int nPoint=5)
 
virtual void DrawColorChartBar (G4int nPoint)
 
virtual void DrawColorChartText (G4int nPoint)
 
void SetPSUnit (G4String &unit)
 
void SetPSName (G4String &psName)
 

Protected Attributes

G4String fName
 
G4bool ifFloat
 
G4double fMinVal
 
G4double fMaxVal
 
G4VVisManagerfVisManager
 
G4String fPSUnit
 
G4String fPSName
 

Detailed Description

Definition at line 37 of file G4VScoreColorMap.hh.

Constructor & Destructor Documentation

G4VScoreColorMap::G4VScoreColorMap ( G4String  mName)

Definition at line 42 of file G4VScoreColorMap.cc.

G4VScoreColorMap::~G4VScoreColorMap ( )
virtual

Definition at line 46 of file G4VScoreColorMap.cc.

Member Function Documentation

void G4VScoreColorMap::DrawColorChart ( G4int  nPoint = 5)
virtual

Definition at line 49 of file G4VScoreColorMap.cc.

References DrawColorChartBar(), DrawColorChartText(), fVisManager, G4cerr, G4endl, and G4VVisManager::GetConcreteInstance().

Referenced by G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), and G4ScoringBox::DrawColumn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoreColorMap::DrawColorChartBar ( G4int  nPoint)
virtual

Reimplemented in G4ScoreLogColorMap.

Definition at line 61 of file G4VScoreColorMap.cc.

References G4VVisManager::Draw2D(), fVisManager, GetMapColor(), GetMax(), GetMin(), G4INCL::Math::max(), G4INCL::Math::min(), G4Visible::SetVisAttributes(), and smax.

Referenced by DrawColorChart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4VScoreColorMap::DrawColorChartText ( G4int  nPoint)
virtual

Reimplemented in G4ScoreLogColorMap.

Definition at line 80 of file G4VScoreColorMap.cc.

References a, G4VVisManager::Draw2D(), fPSName, fPSUnit, fVisManager, GetMapColor(), GetMax(), GetMin(), G4INCL::Math::max(), G4INCL::Math::min(), n, G4VMarker::SetScreenSize(), and G4Visible::SetVisAttributes().

Referenced by DrawColorChart().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void G4VScoreColorMap::GetMapColor ( G4double  val,
G4double  color[4] 
)
pure virtual

Implemented in G4DefaultLinearColorMap, and G4ScoreLogColorMap.

Referenced by G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), DrawColorChartBar(), DrawColorChartText(), G4ScoringCylinder::DrawColumn(), and G4ScoringBox::DrawColumn().

+ Here is the caller graph for this function:

G4double G4VScoreColorMap::GetMax ( ) const
inline

Definition at line 66 of file G4VScoreColorMap.hh.

References fMaxVal.

Referenced by DrawColorChartBar(), and DrawColorChartText().

+ Here is the caller graph for this function:

G4double G4VScoreColorMap::GetMin ( ) const
inline

Definition at line 64 of file G4VScoreColorMap.hh.

References fMinVal.

Referenced by DrawColorChartBar(), and DrawColorChartText().

+ Here is the caller graph for this function:

G4String G4VScoreColorMap::GetName ( void  ) const
inline

Definition at line 47 of file G4VScoreColorMap.hh.

References fName.

Referenced by G4ScoringManager::G4ScoringManager(), and G4ScoringManager::RegisterScoreColorMap().

+ Here is the caller graph for this function:

G4bool G4VScoreColorMap::IfFloatMinMax ( ) const
inline

Definition at line 51 of file G4VScoreColorMap.hh.

References ifFloat.

Referenced by G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), and G4ScoringBox::DrawColumn().

+ Here is the caller graph for this function:

void G4VScoreColorMap::SetFloatingMinMax ( G4bool  vl = true)
inline

Definition at line 49 of file G4VScoreColorMap.hh.

References ifFloat.

Referenced by G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoreColorMap::SetMinMax ( G4double  minVal,
G4double  maxVal 
)
inline

Definition at line 53 of file G4VScoreColorMap.hh.

References fMaxVal, fMinVal, G4cerr, and G4endl.

Referenced by G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), and G4ScoringMessenger::SetNewValue().

+ Here is the caller graph for this function:

void G4VScoreColorMap::SetPSName ( G4String psName)
inline

Definition at line 78 of file G4VScoreColorMap.hh.

References fPSName.

Referenced by G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), and G4ScoringBox::DrawColumn().

+ Here is the caller graph for this function:

void G4VScoreColorMap::SetPSUnit ( G4String unit)
inline

Definition at line 77 of file G4VScoreColorMap.hh.

References fPSUnit.

Referenced by G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), and G4ScoringBox::DrawColumn().

+ Here is the caller graph for this function:

Member Data Documentation

G4String G4VScoreColorMap::fName
protected

Definition at line 81 of file G4VScoreColorMap.hh.

Referenced by GetName().

G4String G4VScoreColorMap::fPSName
protected
G4String G4VScoreColorMap::fPSUnit
protected
G4bool G4VScoreColorMap::ifFloat
protected

Definition at line 82 of file G4VScoreColorMap.hh.

Referenced by IfFloatMinMax(), and SetFloatingMinMax().


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