Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#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 &rhs) |
G4double | GetRed () const |
G4double | GetGreen () const |
G4double | GetBlue () const |
G4double | GetAlpha () const |
void | SetRed (G4double) |
void | SetGreen (G4double) |
void | SetBlue (G4double) |
void | SetAlpha (G4double) |
G4bool | operator< (const G4Colour &rhs) 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 G4bool | GetColour (const G4String &key, G4Colour &result) |
static void | AddToMap (const G4String &key, const G4Colour &colour) |
static void | InitialiseColourMap () |
static const std::map< G4String, G4Colour > & | GetMap () |
Friends | |
std::ostream & | operator<< (std::ostream &, const G4Colour &) |
Definition at line 82 of file G4Colour.hh.
Definition at line 35 of file G4Colour.cc.
G4Colour::G4Colour | ( | G4ThreeVector | v | ) |
Definition at line 44 of file G4Colour.cc.
Definition at line 106 of file G4Colour.cc.
Referenced by InitialiseColourMap().
|
inlinestatic |
Definition at line 159 of file G4Colour.hh.
Referenced by InitialiseColourMap(), and G4VVisCommand::Twinkle().
|
inlinestatic |
Definition at line 163 of file G4Colour.hh.
Referenced by G4AxesModel::Construct(), G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge(), InitialiseColourMap(), and G4VisCommandSceneAddScale::SetNewValue().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 155 of file G4Colour.hh.
Referenced by G4VtkSceneHandler::AddPrimitive(), G4OpenInventorSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitiveTensorGlyph(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G4Qt3DUtils::ConvertToQColor(), G4PhysicalVolumeModel::DescribeAndDescend(), G4OpenGLStoredViewer::DrawDisplayLists(), G4OpenGLQtViewer::DrawText(), G4OpenGLXViewer::DrawText(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::Export(), G4TheRayTracer::GenerateColour(), G4TheRayTracer::GetMixedColour(), G4TheRayTracer::GetSurfaceColour(), std::hash< G4VisAttributes >::operator()(), G4RTRun::RecordEvent(), G4ViewParameters::TouchableCommands(), and G4OpenGLQtViewer::updateViewerPropertiesTableWidget().
|
inline |
Definition at line 154 of file G4Colour.hh.
Referenced by G4VtkSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddCompound(), G4VtkSceneHandler::AddPrimitive(), G4GMocrenFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), G4OpenInventorSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitiveTensorGlyph(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G4OpenGLViewer::ClearViewWithoutFlush(), G4Qt3DUtils::ConvertToQColor(), G4TheMTRayTracer::CreateBitMap(), G4TheRayTracer::CreateBitMap(), G4OpenGLXmViewer::CreateMainWindow(), G4OpenGLStoredViewer::DrawDisplayLists(), G4OpenGLQtViewer::DrawText(), G4OpenGLXViewer::DrawText(), G4VtkViewer::DrawViewHUD(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::Export(), G4TheRayTracer::GetMixedColour(), G4TheRayTracer::GetSurfaceColour(), std::hash< G4VisAttributes >::operator()(), G4OpenInventorQtViewer::SetView(), G4OpenInventorWinViewer::SetView(), G4OpenInventorXtExtendedViewer::SetView(), G4OpenInventorXtViewer::SetView(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::SetView(), G4VtkViewer::SetView(), G4VtkViewer::ShowView(), G4ViewParameters::TouchableCommands(), G4TheMTRayTracer::Trace(), and G4OpenGLQtViewer::updateViewerPropertiesTableWidget().
Definition at line 155 of file G4Colour.cc.
Referenced by G4VtkSceneHandler::AddCompound(), G4AxesModel::Construct(), G4VVisCommand::ConvertToColour(), G4ModelColourMap< T >::Set(), G4TrajectoryDrawByEncounteredVolume::SetDefault(), G4TrajectoryDrawByOriginVolume::SetDefault(), G4TrajectoryDrawByParticleID::SetDefault(), G4ModelCmdApplyStringColour< M >::SetNewValue(), and G4ModelCmdApplyColour< M >::SetNewValue().
|
inline |
Definition at line 153 of file G4Colour.hh.
Referenced by G4VtkSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddCompound(), G4VtkSceneHandler::AddPrimitive(), G4GMocrenFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), G4OpenInventorSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitiveTensorGlyph(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G4OpenGLViewer::ClearViewWithoutFlush(), G4Qt3DUtils::ConvertToQColor(), G4TheMTRayTracer::CreateBitMap(), G4TheRayTracer::CreateBitMap(), G4OpenGLXmViewer::CreateMainWindow(), G4OpenGLStoredViewer::DrawDisplayLists(), G4OpenGLQtViewer::DrawText(), G4OpenGLXViewer::DrawText(), G4VtkViewer::DrawViewHUD(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::Export(), G4TheRayTracer::GetMixedColour(), G4TheRayTracer::GetSurfaceColour(), std::hash< G4VisAttributes >::operator()(), G4OpenInventorQtViewer::SetView(), G4OpenInventorWinViewer::SetView(), G4OpenInventorXtExtendedViewer::SetView(), G4OpenInventorXtViewer::SetView(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::SetView(), G4VtkViewer::SetView(), G4VtkViewer::ShowView(), G4ViewParameters::TouchableCommands(), G4TheMTRayTracer::Trace(), and G4OpenGLQtViewer::updateViewerPropertiesTableWidget().
Definition at line 173 of file G4Colour.cc.
|
inline |
Definition at line 152 of file G4Colour.hh.
Referenced by G4VtkSceneHandler::AddCompound(), G4HepRepFileSceneHandler::AddCompound(), G4VtkSceneHandler::AddPrimitive(), G4GMocrenFileSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), G4OpenInventorSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitiveTensorGlyph(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G4OpenGLViewer::ClearViewWithoutFlush(), G4Qt3DUtils::ConvertToQColor(), G4TheMTRayTracer::CreateBitMap(), G4TheRayTracer::CreateBitMap(), G4OpenGLXmViewer::CreateMainWindow(), G4OpenGLStoredViewer::DrawDisplayLists(), G4OpenGLQtViewer::DrawText(), G4OpenGLXViewer::DrawText(), G4VtkViewer::DrawViewHUD(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::Export(), G4TheRayTracer::GetMixedColour(), G4TheRayTracer::GetSurfaceColour(), std::hash< G4VisAttributes >::operator()(), G4OpenInventorQtViewer::SetView(), G4OpenInventorWinViewer::SetView(), G4OpenInventorXtExtendedViewer::SetView(), G4OpenInventorXtViewer::SetView(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::SetView(), G4VtkViewer::SetView(), G4VtkViewer::ShowView(), G4ViewParameters::TouchableCommands(), G4TheMTRayTracer::Trace(), and G4OpenGLQtViewer::updateViewerPropertiesTableWidget().
|
inlinestatic |
|
inlinestatic |
Definition at line 162 of file G4Colour.hh.
Referenced by G4AxesModel::Construct(), G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge(), InitialiseColourMap(), and G4VisCommandSceneAddScale::SetNewValue().
|
inlinestatic |
|
static |
Definition at line 135 of file G4Colour.cc.
Referenced by GetColour(), and GetMap().
|
inlinestatic |
G4Colour::operator G4ThreeVector | ( | ) |
Definition at line 76 of file G4Colour.cc.
Definition at line 96 of file G4Colour.cc.
Referenced by operator==().
Definition at line 101 of file G4Colour.hh.
Definition at line 181 of file G4Colour.cc.
Definition at line 99 of file G4Colour.hh.
|
inlinestatic |
Definition at line 161 of file G4Colour.hh.
Referenced by G4AxesModel::Construct(), G4VVisCommand::DrawExtent(), G4TrajectoryDrawByCharge::G4TrajectoryDrawByCharge(), InitialiseColourMap(), and G4VisCommandSceneAddScale::SetNewValue().
void G4Colour::SetAlpha | ( | G4double | a | ) |
Definition at line 70 of file G4Colour.cc.
Referenced by G4VVisCommand::ConvertToColour().
void G4Colour::SetBlue | ( | G4double | b | ) |
Definition at line 64 of file G4Colour.cc.
void G4Colour::SetGreen | ( | G4double | gr | ) |
Definition at line 58 of file G4Colour.cc.
void G4Colour::SetRed | ( | G4double | r | ) |
Definition at line 52 of file G4Colour.cc.
|
inlinestatic |
Definition at line 156 of file G4Colour.hh.
Referenced by InitialiseColourMap(), G4TrajectoryDrawByParticleID::SetDefault(), and G4VVisCommand::Twinkle().
|
inlinestatic |
|
friend |
Definition at line 80 of file G4Colour.cc.