Geant4  10.02.p02
G4ModelColourMap< T > Class Template Reference

#include <G4ModelColourMap.hh>

+ Inheritance diagram for G4ModelColourMap< T >:

Public Member Functions

 G4ModelColourMap ()
 
virtual ~G4ModelColourMap ()
 
void Set (const T &, const G4Colour &)
 
void Set (const T &, const G4String &)
 
G4Colouroperator[] (const T &quantity)
 
bool GetColour (const T &, G4Colour &) const
 
void Print (std::ostream &ostr) const
 

Private Attributes

std::map< T, G4ColourfMap
 

Detailed Description

template<typename T>
class G4ModelColourMap< T >

Definition at line 41 of file G4ModelColourMap.hh.

Constructor & Destructor Documentation

template<typename T >
G4ModelColourMap< T >::G4ModelColourMap ( )

Definition at line 70 of file G4ModelColourMap.hh.

template<typename T >
G4ModelColourMap< T >::~G4ModelColourMap ( )
virtual

Definition at line 73 of file G4ModelColourMap.hh.

Member Function Documentation

template<typename T>
bool G4ModelColourMap< T >::GetColour ( const T &  quantity,
G4Colour colour 
) const

Definition at line 105 of file G4ModelColourMap.hh.

Referenced by G4TrajectoryDrawByOriginVolume::Draw(), G4TrajectoryDrawByParticleID::Draw(), and G4TrajectoryDrawByCharge::Draw().

+ Here is the caller graph for this function:

template<typename T>
G4Colour & G4ModelColourMap< T >::operator[] ( const T &  quantity)

Definition at line 67 of file G4ModelColourMap.hh.

template<typename T >
void G4ModelColourMap< T >::Print ( std::ostream &  ostr) const

Definition at line 119 of file G4ModelColourMap.hh.

References G4endl.

Referenced by G4TrajectoryDrawByOriginVolume::Print(), G4TrajectoryDrawByParticleID::Print(), and G4TrajectoryDrawByCharge::Print().

+ Here is the caller graph for this function:

template<typename T>
void G4ModelColourMap< T >::Set ( const T &  quantity,
const G4Colour colour 
)

Definition at line 98 of file G4ModelColourMap.hh.

Referenced by G4TrajectoryDrawByOriginVolume::Set(), G4TrajectoryDrawByParticleID::Set(), and G4TrajectoryDrawByCharge::Set().

+ Here is the caller graph for this function:

template<typename T>
void G4ModelColourMap< T >::Set ( const T &  quantity,
const G4String colour 
)

Definition at line 77 of file G4ModelColourMap.hh.

References G4Exception(), G4Colour::GetColour(), JustWarning, and G4ArrayOps::Set().

+ Here is the call graph for this function:

Member Data Documentation

template<typename T>
std::map<T, G4Colour> G4ModelColourMap< T >::fMap
private

Definition at line 61 of file G4ModelColourMap.hh.


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