Geant4
10.01.p01
|
#include <G4Colour.hh>
Public Member Functions | |
G4Colour (G4double r=1., G4double g=1., G4double b=1., G4double a=1.) | |
G4Colour (G4ThreeVector) | |
operator G4ThreeVector () | |
G4bool | operator!= (const G4Colour &c) const |
G4bool | operator== (const G4Colour &c) const |
G4Colour & | operator+= (const G4Colour &) |
G4double | GetRed () const |
G4double | GetGreen () const |
G4double | GetBlue () const |
G4double | GetAlpha () const |
Static Public Member Functions | |
static G4Colour | White () |
static G4Colour | Gray () |
static G4Colour | Grey () |
static G4Colour | Black () |
static G4Colour | Brown () |
static G4Colour | Red () |
static G4Colour | Green () |
static G4Colour | Blue () |
static G4Colour | Cyan () |
static G4Colour | Magenta () |
static G4Colour | Yellow () |
static void | AddToMap (const G4String &key, const G4Colour &colour) |
static G4bool | GetColour (const G4String &key, G4Colour &result) |
static const std::map < G4String, G4Colour > & | GetMap () |
Static Private Member Functions | |
static void | InitialiseColourMap () |
Private Attributes | |
G4double | red |
G4double | green |
G4double | blue |
G4double | alpha |
Static Private Attributes | |
static G4ThreadLocal std::map < G4String, G4Colour > * | fColourMap = 0 |
static G4ThreadLocal G4bool | fInitColourMap = false |
Friends | |
std::ostream & | operator<< (std::ostream &, const G4Colour &) |
Definition at line 83 of file G4Colour.hh.
G4Colour::G4Colour | ( | G4ThreeVector | v | ) |
Definition at line 43 of file G4Colour.cc.
Definition at line 86 of file G4Colour.cc.
References fColourMap, G4endl, G4Exception(), JustWarning, and G4String::toLower().
Referenced by InitialiseColourMap().
|
inlinestatic |
Definition at line 146 of file G4Colour.hh.
References G4Colour().
Referenced by CML2WorldConstruction::create(), and InitialiseColourMap().
|
inlinestatic |
Definition at line 150 of file G4Colour.hh.
References G4Colour().
Referenced by CML2Ph_BoxInBox::Construct(), G4AxesModel::G4AxesModel(), G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge(), InitialiseColourMap(), CML2Acc1::ionizationChamber(), CML2Acc1::Jaw1X(), and DetectorConstruction::ResiduesView().
|
inlinestatic |
Definition at line 147 of file G4Colour.hh.
References G4Colour().
Referenced by InitialiseColourMap(), and G4VisCommandSceneAddLogo2D::Logo2D::operator()().
|
inlinestatic |
Definition at line 151 of file G4Colour.hh.
References G4Colour().
Referenced by InitialiseColourMap(), CML2Acc1::Jaw2X(), CML2Acc1::MLC(), and PerspectiveVisAction::RoomAndChair().
|
inline |
Definition at line 142 of file G4Colour.hh.
References alpha.
Referenced by G4RTRun::Attenuate(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G03ColorWriter::ColorWrite(), G4PhysicalVolumeModel::DescribeAndDescend(), export_G4Colour(), G4TheRayTracer::GenerateColour(), G4RTRun::GetMixedColour(), G4TheRayTracer::GetMixedColour(), G4RTRun::GetSurfaceColour(), G4TheRayTracer::GetSurfaceColour(), G4RTRun::RecordEvent(), G4HepRepSceneHandler::setColor(), and G4ViewParameters::TouchableCommands().
|
inline |
Definition at line 141 of file G4Colour.hh.
References blue.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4GMocrenFileSceneHandler::AddDetector(), G4HepRepFileSceneHandler::AddHepRepInstance(), G4GMocrenFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), G4RTRun::Attenuate(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G03ColorWriter::ColorWrite(), G4TheRayTracer::CreateBitMap(), G4TheMTRayTracer::CreateBitMap(), export_G4Colour(), G4RTRun::GetMixedColour(), G4TheRayTracer::GetMixedColour(), G4RTRun::GetSurfaceColour(), G4TheRayTracer::GetSurfaceColour(), G4HepRepSceneHandler::setColor(), G4VisCommandSetColour::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandsViewerSet::SetNewValue(), CexmcScenePrimitivesMessenger::SetNewValue(), G4VisCommandSetTextColour::SetNewValue(), G4VisCommandGeometrySetColour::SetNewValue(), G4ViewParameters::TouchableCommands(), and G4TheMTRayTracer::Trace().
Definition at line 126 of file G4Colour.cc.
References fColourMap, fInitColourMap, InitialiseColourMap(), and G4String::toLower().
Referenced by G4ViewParameters::CameraAndLightingCommands(), G4AxesModel::G4AxesModel(), G4ModelColourMap< T >::Set(), G4TrajectoryDrawByOriginVolume::SetDefault(), G4TrajectoryDrawByParticleID::SetDefault(), G4VisCommandSetColour::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandsViewerSet::SetNewValue(), G4ModelCmdApplyStringColour< M >::SetNewValue(), CexmcScenePrimitivesMessenger::SetNewValue(), G4VisCommandSetTextColour::SetNewValue(), G4ModelCmdApplyColour< M >::SetNewValue(), and G4VisCommandGeometrySetColour::SetNewValue().
|
inline |
Definition at line 140 of file G4Colour.hh.
References green.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4GMocrenFileSceneHandler::AddDetector(), G4HepRepFileSceneHandler::AddHepRepInstance(), G4GMocrenFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), G4RTRun::Attenuate(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G03ColorWriter::ColorWrite(), G4TheRayTracer::CreateBitMap(), G4TheMTRayTracer::CreateBitMap(), export_G4Colour(), G4RTRun::GetMixedColour(), G4TheRayTracer::GetMixedColour(), G4RTRun::GetSurfaceColour(), G4TheRayTracer::GetSurfaceColour(), G4HepRepSceneHandler::setColor(), G4VisCommandSetColour::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandsViewerSet::SetNewValue(), CexmcScenePrimitivesMessenger::SetNewValue(), G4VisCommandSetTextColour::SetNewValue(), G4VisCommandGeometrySetColour::SetNewValue(), G4ViewParameters::TouchableCommands(), and G4TheMTRayTracer::Trace().
Definition at line 147 of file G4Colour.cc.
References fColourMap, fInitColourMap, and InitialiseColourMap().
Referenced by operator<<(), and G4VisManager::PrintAvailableColours().
|
inline |
Definition at line 139 of file G4Colour.hh.
References red.
Referenced by G4HepRepFileSceneHandler::AddCompound(), G4GMocrenFileSceneHandler::AddDetector(), G4HepRepFileSceneHandler::AddHepRepInstance(), G4GMocrenFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), G4RTRun::Attenuate(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G03ColorWriter::ColorWrite(), G4TheRayTracer::CreateBitMap(), G4TheMTRayTracer::CreateBitMap(), export_G4Colour(), G4RTRun::GetMixedColour(), G4TheRayTracer::GetMixedColour(), G4RTRun::GetSurfaceColour(), G4TheRayTracer::GetSurfaceColour(), G4HepRepSceneHandler::setColor(), G4VisCommandSetColour::SetNewValue(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandsViewerSet::SetNewValue(), CexmcScenePrimitivesMessenger::SetNewValue(), G4VisCommandSetTextColour::SetNewValue(), G4VisCommandGeometrySetColour::SetNewValue(), G4ViewParameters::TouchableCommands(), and G4TheMTRayTracer::Trace().
|
inlinestatic |
Definition at line 144 of file G4Colour.hh.
References G4Colour().
Referenced by DetectorConstruction::AtomisticView(), CML2Ph_BoxInBox::Construct(), DetectorConstruction::ConstructWorld(), DetectorConstruction::DrawBoundingVolume(), and InitialiseColourMap().
|
inlinestatic |
Definition at line 149 of file G4Colour.hh.
References G4Colour().
Referenced by G4AxesModel::G4AxesModel(), G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge(), InitialiseColourMap(), CML2Acc1::mirror(), CML2Acc1::MLC(), and DetectorConstruction::ResiduesView().
|
inlinestatic |
Definition at line 145 of file G4Colour.hh.
References G4Colour().
Referenced by InitialiseColourMap().
|
staticprivate |
|
inlinestatic |
Definition at line 152 of file G4Colour.hh.
References G4Colour().
Referenced by DetectorConstruction::BarycenterView(), UVA_VisAction::Draw(), InitialiseColourMap(), and CML2Acc1::Jaw2Y().
G4Colour::operator G4ThreeVector | ( | ) |
Definition at line 51 of file G4Colour.cc.
Definition at line 71 of file G4Colour.cc.
References alpha, blue, green, and red.
Referenced by operator==().
Definition at line 101 of file G4Colour.hh.
Definition at line 100 of file G4Colour.hh.
References operator!=().
|
inlinestatic |
Definition at line 148 of file G4Colour.hh.
References G4Colour().
Referenced by DetectorConstruction::AtomisticView(), CML2Ph_FullWater::Construct(), CML2Ph_BoxInBox::Construct(), G4PhysicalVolumeModel::DescribeSolid(), UVA_VisAction::Draw(), CML2Acc1::flatteningFilter(), G4AxesModel::G4AxesModel(), G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge(), InitialiseColourMap(), CML2Acc1::Jaw1Y(), DetectorConstruction::ResiduesView(), and PerspectiveVisAction::RoomAndChair().
|
inlinestatic |
Definition at line 143 of file G4Colour.hh.
References G4Colour().
Referenced by DetectorConstruction::AtomisticView(), CML2PhantomConstruction::Construct(), CML2AcceleratorConstruction::Construct(), InitialiseColourMap(), and G4TrajectoryDrawByParticleID::SetDefault().
|
inlinestatic |
Definition at line 153 of file G4Colour.hh.
References G4Colour().
Referenced by DetectorConstruction::AtomisticView(), CML2Acc1::BeWindow(), CML2PhaseSpaces::createPlane(), InitialiseColourMap(), CML2Acc1::ionizationChamber(), and DetectorConstruction::ResiduesView().
|
friend |
Definition at line 55 of file G4Colour.cc.
|
private |
Definition at line 131 of file G4Colour.hh.
Referenced by G4Colour(), GetAlpha(), operator!=(), and operator<<().
|
private |
Definition at line 131 of file G4Colour.hh.
Referenced by G4Colour(), GetBlue(), operator!=(), and operator<<().
|
staticprivate |
Definition at line 133 of file G4Colour.hh.
Referenced by AddToMap(), GetColour(), and GetMap().
|
staticprivate |
Definition at line 134 of file G4Colour.hh.
Referenced by GetColour(), and GetMap().
|
private |
Definition at line 131 of file G4Colour.hh.
Referenced by G4Colour(), GetGreen(), operator!=(), and operator<<().
|
private |
Definition at line 131 of file G4Colour.hh.
Referenced by G4Colour(), GetRed(), operator!=(), and operator<<().