EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Example03DisplayAction.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4Example03DisplayAction.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4EXAMPLE03DISPLAYACTION_H
4 #define G4EXAMPLE03DISPLAYACTION_H
5 
7 
8 #include <string> // for string
9 
10 class G4Colour;
11 class G4VisAttributes;
12 class G4LogicalVolume;
13 class G4VPhysicalVolume;
14 class PHParameters;
15 
17 {
18  public:
20 
21  virtual ~G4Example03DisplayAction();
22 
23  void ApplyDisplayAction(G4VPhysicalVolume *physvol);
24  void SetMyVolume(G4LogicalVolume *vol) { m_MyVolume = vol; }
25  void SetColor(const double red, const double green, const double blue, const double alpha = 1.);
26 
27  private:
29  G4LogicalVolume *m_MyVolume;
30  G4VisAttributes *m_VisAtt;
31  G4Colour *m_Colour;
32 };
33 
34 #endif // G4DETECTORS_PHG4BLOCKDISPLAYACTION_H