Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:25

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // 
0029 
0030 inline G4bool G4VMarker::operator==(const G4VMarker& mk) const
0031 { return !(*this != mk); }
0032 
0033 inline G4Point3D G4VMarker::GetPosition () const {
0034   return fPosition;
0035 }
0036 
0037 inline G4double G4VMarker::GetWorldSize () const {
0038   return fWorldSize;
0039 }
0040 
0041 inline G4double G4VMarker::GetWorldDiameter () const {
0042   return fWorldSize;
0043 }
0044 
0045 inline G4double G4VMarker::GetWorldRadius () const {
0046   return fWorldSize / 2.;
0047 }
0048 
0049 inline G4double G4VMarker::GetScreenSize () const {
0050   return fScreenSize;
0051 }
0052 
0053 inline G4double G4VMarker::GetScreenDiameter () const {
0054   return fScreenSize;
0055 }
0056 
0057 inline G4double G4VMarker::GetScreenRadius () const {
0058   return fScreenSize / 2.;
0059 }
0060 
0061 inline G4VMarker::FillStyle G4VMarker::GetFillStyle () const {
0062   return fFillStyle;
0063 }
0064 
0065 inline void G4VMarker::SetPosition (const G4Point3D& pos) {
0066   fPosition = pos;
0067 }
0068 
0069 inline void G4VMarker::SetDiameter (SizeType sizeType, G4double size) {
0070   SetSize(sizeType, size);
0071 }
0072 
0073 inline void G4VMarker::SetRadius (SizeType sizeType, G4double size) {
0074   SetSize(sizeType, 2. * size);
0075 }
0076 
0077 inline void G4VMarker::SetWorldSize (G4double ws) {
0078   fWorldSize = ws;
0079 }
0080 
0081 inline void G4VMarker::SetWorldDiameter (G4double wd) {
0082   fWorldSize = wd;
0083 }
0084 
0085 inline void G4VMarker::SetWorldRadius (G4double wr) {
0086   fWorldSize = 2. * wr;
0087 }
0088 
0089 inline void G4VMarker::SetScreenSize (G4double ss) {
0090   fWorldSize  = 0.;
0091   fScreenSize = ss;
0092 }
0093 
0094 inline void G4VMarker::SetScreenDiameter (G4double sd) {
0095   fWorldSize  = 0.;
0096   fScreenSize = sd;
0097 }
0098 
0099 inline void G4VMarker::SetScreenRadius (G4double scr) {
0100   fWorldSize  = 0.;
0101   fScreenSize = 2. * scr;
0102 }
0103 
0104 inline void G4VMarker::SetFillStyle (G4VMarker::FillStyle style) {
0105   fFillStyle = style;
0106 }