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] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /visualization/modeling/include/G4VisTrajContext.icc (Version 11.3.0) and /visualization/modeling/include/G4VisTrajContext.icc (Version 9.3)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
                                                   >>  26 // $Id: G4VisTrajContext.icc,v 1.4 2009/02/24 12:00:56 allison Exp $
                                                   >>  27 // GEANT4 tag $Name: geant4-09-03 $
 26 //                                                 28 //
 27 // Jane Tinslay May 2006                           29 // Jane Tinslay May 2006
 28 //                                                 30 //
 29 #ifndef G4VISTRAJ_CONTEXT_ICC                      31 #ifndef G4VISTRAJ_CONTEXT_ICC
 30 #define G4VISTRAJ_CONTEXT_ICC                      32 #define G4VISTRAJ_CONTEXT_ICC
 31                                                    33 
 32 inline G4String G4VisTrajContext::Name() const     34 inline G4String G4VisTrajContext::Name() const {return fName;}
 33                                                    35 
 34 inline void G4VisTrajContext::SetVisible(const     36 inline void G4VisTrajContext::SetVisible(const G4bool& visible) 
 35 {                                                  37 {
 36   SetLineVisible(visible);                         38   SetLineVisible(visible);
 37   SetAuxPtsVisible(visible);                       39   SetAuxPtsVisible(visible);
 38   SetStepPtsVisible(visible);                      40   SetStepPtsVisible(visible);
 39 }                                                  41 }
 40                                                    42 
 41 // Line                                            43 // Line
 42 inline void G4VisTrajContext::SetLineWidth(con << 
 43 inline G4double G4VisTrajContext::GetLineWidth << 
 44                                                << 
 45 inline void G4VisTrajContext::SetLineColour(co     44 inline void G4VisTrajContext::SetLineColour(const G4Colour& colour) {fLineColour = colour;}
 46 inline G4Colour G4VisTrajContext::GetLineColou     45 inline G4Colour G4VisTrajContext::GetLineColour() const {return fLineColour;}
 47                                                    46 
 48 inline void G4VisTrajContext::SetDrawLine(cons     47 inline void G4VisTrajContext::SetDrawLine(const G4bool& draw) {fDrawLine = draw;}
 49 inline G4bool G4VisTrajContext::GetDrawLine()      48 inline G4bool G4VisTrajContext::GetDrawLine() const {return fDrawLine;}
 50                                                    49 
 51 inline void G4VisTrajContext::SetLineVisible(c     50 inline void G4VisTrajContext::SetLineVisible(const G4bool& visible) {fLineVisible = visible;}
 52 inline G4bool G4VisTrajContext::GetLineVisible     51 inline G4bool G4VisTrajContext::GetLineVisible() const {return fLineVisible;}
 53                                                    52 
 54 // Auxiliary points                                53 // Auxiliary points
 55 inline void G4VisTrajContext::SetDrawAuxPts(co     54 inline void G4VisTrajContext::SetDrawAuxPts(const G4bool& draw) {fDrawAuxPts = draw;}
 56 inline G4bool G4VisTrajContext::GetDrawAuxPts(     55 inline G4bool G4VisTrajContext::GetDrawAuxPts() const {return fDrawAuxPts;}
 57                                                    56 
 58 inline void G4VisTrajContext::SetAuxPtsType(co     57 inline void G4VisTrajContext::SetAuxPtsType(const G4Polymarker::MarkerType& marker) {fAuxPtsType = marker;}
 59 inline G4Polymarker::MarkerType G4VisTrajConte     58 inline G4Polymarker::MarkerType G4VisTrajContext::GetAuxPtsType() const {return fAuxPtsType;}
 60                                                    59 
 61 inline void G4VisTrajContext::SetAuxPtsSize(co     60 inline void G4VisTrajContext::SetAuxPtsSize(const G4double& size) {fAuxPtsSize = size;}
 62 inline G4double G4VisTrajContext::GetAuxPtsSiz     61 inline G4double G4VisTrajContext::GetAuxPtsSize() const {return fAuxPtsSize;}
 63                                                    62 
 64 inline void G4VisTrajContext::SetAuxPtsSizeTyp     63 inline void G4VisTrajContext::SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType) {fAuxPtsSizeType = sizeType;}
 65 inline G4VMarker::SizeType G4VisTrajContext::G     64 inline G4VMarker::SizeType G4VisTrajContext::GetAuxPtsSizeType() const {return fAuxPtsSizeType;}
 66                                                    65 
 67 inline void G4VisTrajContext::SetAuxPtsFillSty     66 inline void G4VisTrajContext::SetAuxPtsFillStyle(const G4VMarker::FillStyle& style) {fAuxPtsFillStyle = style;}
 68 inline G4VMarker::FillStyle G4VisTrajContext::     67 inline G4VMarker::FillStyle G4VisTrajContext::GetAuxPtsFillStyle() const {return fAuxPtsFillStyle;}
 69                                                    68 
 70 inline void G4VisTrajContext::SetAuxPtsColour(     69 inline void G4VisTrajContext::SetAuxPtsColour(const G4Colour& colour) {fAuxPtsColour = colour;}
 71 inline G4Colour G4VisTrajContext::GetAuxPtsCol     70 inline G4Colour G4VisTrajContext::GetAuxPtsColour() const {return fAuxPtsColour;}
 72                                                    71 
 73 inline void G4VisTrajContext::SetAuxPtsVisible     72 inline void G4VisTrajContext::SetAuxPtsVisible(const G4bool& visible) {fAuxPtsVisible = visible;}
 74 inline G4bool G4VisTrajContext::GetAuxPtsVisib     73 inline G4bool G4VisTrajContext::GetAuxPtsVisible() const {return fAuxPtsVisible;}
 75                                                    74 
 76 // Step points                                     75 // Step points
 77 inline void G4VisTrajContext::SetDrawStepPts(c     76 inline void G4VisTrajContext::SetDrawStepPts(const G4bool& draw) {fDrawStepPts = draw;}
 78 inline G4bool G4VisTrajContext::GetDrawStepPts     77 inline G4bool G4VisTrajContext::GetDrawStepPts() const {return fDrawStepPts;}
 79                                                    78 
 80 inline void G4VisTrajContext::SetStepPtsType(c     79 inline void G4VisTrajContext::SetStepPtsType(const G4Polymarker::MarkerType& marker) {fStepPtsType = marker;}
 81 inline G4Polymarker::MarkerType G4VisTrajConte     80 inline G4Polymarker::MarkerType G4VisTrajContext::GetStepPtsType() const {return fStepPtsType;}
 82                                                    81 
 83 inline void G4VisTrajContext::SetStepPtsSize(c     82 inline void G4VisTrajContext::SetStepPtsSize(const G4double& size) {fStepPtsSize = size;}
 84 inline G4double G4VisTrajContext::GetStepPtsSi     83 inline G4double G4VisTrajContext::GetStepPtsSize() const {return fStepPtsSize;}
 85                                                    84 
 86 inline void G4VisTrajContext::SetStepPtsSizeTy     85 inline void G4VisTrajContext::SetStepPtsSizeType(const G4VMarker::SizeType& sizeType) {fStepPtsSizeType = sizeType;}
 87 inline G4VMarker::SizeType G4VisTrajContext::G     86 inline G4VMarker::SizeType G4VisTrajContext::GetStepPtsSizeType() const {return fStepPtsSizeType;}
 88                                                    87 
 89 inline void G4VisTrajContext::SetStepPtsFillSt     88 inline void G4VisTrajContext::SetStepPtsFillStyle(const G4VMarker::FillStyle& style) {fStepPtsFillStyle = style;}
 90 inline G4VMarker::FillStyle G4VisTrajContext::     89 inline G4VMarker::FillStyle G4VisTrajContext::GetStepPtsFillStyle() const {return fStepPtsFillStyle;}
 91                                                    90 
 92 inline void G4VisTrajContext::SetStepPtsColour     91 inline void G4VisTrajContext::SetStepPtsColour(const G4Colour& colour) {fStepPtsColour = colour;}
 93 inline G4Colour G4VisTrajContext::GetStepPtsCo     92 inline G4Colour G4VisTrajContext::GetStepPtsColour() const {return fStepPtsColour;}
 94                                                    93 
 95 inline void G4VisTrajContext::SetStepPtsVisibl     94 inline void G4VisTrajContext::SetStepPtsVisible(const G4bool& visible) {fStepPtsVisible = visible;}
 96 inline G4bool G4VisTrajContext::GetStepPtsVisi     95 inline G4bool G4VisTrajContext::GetStepPtsVisible() const {return fStepPtsVisible;}
 97                                                    96 
 98 inline void G4VisTrajContext::SetTimeSliceInte     97 inline void G4VisTrajContext::SetTimeSliceInterval(const G4double& interval) {fTimeSliceInterval = interval;}
 99 inline G4double G4VisTrajContext::GetTimeSlice     98 inline G4double G4VisTrajContext::GetTimeSliceInterval() const {return fTimeSliceInterval;}
100                                                    99 
101 #include "G4UnitsTable.hh"                        100 #include "G4UnitsTable.hh"
102                                                   101 
103 inline void G4VisTrajContext::Print(std::ostre    102 inline void G4VisTrajContext::Print(std::ostream& ostr) const 
104 {                                                 103 {
105   ostr<<"Name:                       "<<Name()    104   ostr<<"Name:                       "<<Name()<<G4endl;
106   ostr<<"Line colour                 "<<GetLin    105   ostr<<"Line colour                 "<<GetLineColour()<<G4endl;
107   ostr<<"Draw line ?                 "<<GetDra    106   ostr<<"Draw line ?                 "<<GetDrawLine()<<G4endl;
108   ostr<<"Line visibile ?             "<<GetLin    107   ostr<<"Line visibile ?             "<<GetLineVisible()<<G4endl;
109   ostr<<"Draw auxiliary points ?     "<<GetDra    108   ostr<<"Draw auxiliary points ?     "<<GetDrawAuxPts()<<G4endl;
110   ostr<<"Auxiliary points type       "<<GetAux    109   ostr<<"Auxiliary points type       "<<GetAuxPtsType()<<G4endl;
111   ostr<<"Auxiliary points size       "<<GetAux    110   ostr<<"Auxiliary points size       "<<GetAuxPtsSize()<<G4endl;
112   ostr<<"Auxiliary points fill style "<<GetAux    111   ostr<<"Auxiliary points fill style "<<GetAuxPtsFillStyle()<<G4endl;
113   ostr<<"Auxiliary points colour     "<<GetAux    112   ostr<<"Auxiliary points colour     "<<GetAuxPtsColour()<<G4endl;
114   ostr<<"Auxiliary points visible ?  "<<GetAux    113   ostr<<"Auxiliary points visible ?  "<<GetAuxPtsVisible()<<G4endl;
115   ostr<<"Draw step points ?          "<<GetDra    114   ostr<<"Draw step points ?          "<<GetDrawStepPts()<<G4endl;
116   ostr<<"Step points type            "<<GetSte    115   ostr<<"Step points type            "<<GetStepPtsType()<<G4endl;
117   ostr<<"Step points size            "<<GetSte    116   ostr<<"Step points size            "<<GetStepPtsSize()<<G4endl;
118   ostr<<"Step points fill style      "<<GetSte    117   ostr<<"Step points fill style      "<<GetStepPtsFillStyle()<<G4endl;
119   ostr<<"Step points colour          "<<GetSte    118   ostr<<"Step points colour          "<<GetStepPtsColour()<<G4endl;
120   ostr<<"Step points visible ?       "<<GetSte    119   ostr<<"Step points visible ?       "<<GetStepPtsVisible()<<G4endl;
121   ostr<<"Time slice interval         "<<G4Best    120   ostr<<"Time slice interval         "<<G4BestUnit(GetTimeSliceInterval(),"Time")<<G4endl;
122 }                                                 121 }
123                                                   122 
124 #endif                                            123 #endif
125                                                   124