Geant4 Cross Reference |
>> 1 // This code implementation is the intellectual property of >> 2 // the GEANT4 collaboration. 1 // 3 // 2 // ******************************************* << 4 // By copying, distributing or modifying the Program (or any work 3 // * License and Disclaimer << 5 // based on the Program) you indicate your acceptance of this statement, 4 // * << 6 // and all its terms. 5 // * The Geant4 software is copyright of th << 6 // * the Geant4 Collaboration. It is provided << 7 // * conditions of the Geant4 Software License << 8 // * LICENSE and available at http://cern.ch/ << 9 // * include a list of copyright holders. << 10 // * << 11 // * Neither the authors of this software syst << 12 // * institutes,nor the agencies providing fin << 13 // * work make any representation or warran << 14 // * regarding this software system or assum << 15 // * use. Please see the license in the file << 16 // * for the full disclaimer and the limitatio << 17 // * << 18 // * This code implementation is the result << 19 // * technical work of the GEANT4 collaboratio << 20 // * By using, copying, modifying or distri << 21 // * any work based on the software) you ag << 22 // * use in resulting scientific publicati << 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* << 25 // << 26 // 7 // >> 8 // $Id: G4VMarker.icc,v 1.4 1999/12/16 15:22:05 johna Exp $ >> 9 // GEANT4 tag $Name: geant4-02-00 $ 27 // 10 // 28 // 11 // 29 12 30 inline G4bool G4VMarker::operator==(const G4VM << 13 inline G4VMarker::G4VMarker (): 31 { return !(*this != mk); } << 14 fPosition (G4Point3D ()), >> 15 fWorldSize (0.), >> 16 fScreenSize (0.), >> 17 fFillStyle (noFill), >> 18 fInfo() >> 19 {} >> 20 >> 21 inline G4VMarker::G4VMarker (const G4VMarker& marker): >> 22 G4VVisPrim (marker), >> 23 fPosition (marker.fPosition), >> 24 fWorldSize (marker.fWorldSize), >> 25 fScreenSize (marker.fScreenSize), >> 26 fFillStyle (marker.fFillStyle), >> 27 fInfo (marker.fInfo) >> 28 {} >> 29 >> 30 inline G4VMarker::G4VMarker (const G4Point3D& pos): >> 31 fPosition (pos), >> 32 fWorldSize (0.), >> 33 fScreenSize (0.), >> 34 fFillStyle (noFill), >> 35 fInfo () >> 36 {} 32 37 33 inline G4Point3D G4VMarker::GetPosition () con 38 inline G4Point3D G4VMarker::GetPosition () const { 34 return fPosition; 39 return fPosition; 35 } 40 } 36 41 37 inline G4double G4VMarker::GetWorldSize () con 42 inline G4double G4VMarker::GetWorldSize () const { 38 return fWorldSize; 43 return fWorldSize; 39 } 44 } 40 45 41 inline G4double G4VMarker::GetWorldDiameter () 46 inline G4double G4VMarker::GetWorldDiameter () const { 42 return fWorldSize; 47 return fWorldSize; 43 } 48 } 44 49 45 inline G4double G4VMarker::GetWorldRadius () c 50 inline G4double G4VMarker::GetWorldRadius () const { 46 return fWorldSize / 2.; 51 return fWorldSize / 2.; 47 } 52 } 48 53 49 inline G4double G4VMarker::GetScreenSize () co 54 inline G4double G4VMarker::GetScreenSize () const { 50 return fScreenSize; 55 return fScreenSize; 51 } 56 } 52 57 53 inline G4double G4VMarker::GetScreenDiameter ( 58 inline G4double G4VMarker::GetScreenDiameter () const { 54 return fScreenSize; 59 return fScreenSize; 55 } 60 } 56 61 57 inline G4double G4VMarker::GetScreenRadius () 62 inline G4double G4VMarker::GetScreenRadius () const { 58 return fScreenSize / 2.; 63 return fScreenSize / 2.; 59 } 64 } 60 65 61 inline G4VMarker::FillStyle G4VMarker::GetFill 66 inline G4VMarker::FillStyle G4VMarker::GetFillStyle () const { 62 return fFillStyle; 67 return fFillStyle; 63 } 68 } 64 69 65 inline void G4VMarker::SetPosition (const G4Po 70 inline void G4VMarker::SetPosition (const G4Point3D& pos) { 66 fPosition = pos; 71 fPosition = pos; 67 } 72 } 68 73 69 inline void G4VMarker::SetDiameter (SizeType s << 70 SetSize(sizeType, size); << 71 } << 72 << 73 inline void G4VMarker::SetRadius (SizeType siz << 74 SetSize(sizeType, 2. * size); << 75 } << 76 << 77 inline void G4VMarker::SetWorldSize (G4double 74 inline void G4VMarker::SetWorldSize (G4double ws) { 78 fWorldSize = ws; 75 fWorldSize = ws; 79 } 76 } 80 77 81 inline void G4VMarker::SetWorldDiameter (G4dou 78 inline void G4VMarker::SetWorldDiameter (G4double wd) { 82 fWorldSize = wd; 79 fWorldSize = wd; 83 } 80 } 84 81 85 inline void G4VMarker::SetWorldRadius (G4doubl 82 inline void G4VMarker::SetWorldRadius (G4double wr) { 86 fWorldSize = 2. * wr; 83 fWorldSize = 2. * wr; 87 } 84 } 88 85 89 inline void G4VMarker::SetScreenSize (G4double 86 inline void G4VMarker::SetScreenSize (G4double ss) { 90 fWorldSize = 0.; 87 fWorldSize = 0.; 91 fScreenSize = ss; 88 fScreenSize = ss; 92 } 89 } 93 90 94 inline void G4VMarker::SetScreenDiameter (G4do 91 inline void G4VMarker::SetScreenDiameter (G4double sd) { 95 fWorldSize = 0.; 92 fWorldSize = 0.; 96 fScreenSize = sd; 93 fScreenSize = sd; 97 } 94 } 98 95 99 inline void G4VMarker::SetScreenRadius (G4doub << 96 inline void G4VMarker::SetScreenRadius (G4double sr) { 100 fWorldSize = 0.; 97 fWorldSize = 0.; 101 fScreenSize = 2. * scr; << 98 fScreenSize = 2. * sr; 102 } 99 } 103 100 104 inline void G4VMarker::SetFillStyle (G4VMarker 101 inline void G4VMarker::SetFillStyle (G4VMarker::FillStyle style) { 105 fFillStyle = style; 102 fFillStyle = style; 106 } 103 } >> 104 >> 105 107 106