|
||||
File indexing completed on 2025-01-18 09:57:56
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 #ifndef G4ATTVALUE_HH 0029 #define G4ATTVALUE_HH 0030 0031 #include "globals.hh" 0032 0033 // Class Description: 0034 // 0035 // @class G4AttValue 0036 // 0037 // @brief This class represents a HepRep-style Attribute Value. 0038 // G4AttValues can be attached to a Trajectory, Trajectory Point or Sensitive 0039 // Detector Hit. These attributes are then made available to the end user 0040 // in interactive visualization systems (such as WIRED). 0041 // The G4AttValue is further defined in a G4AttDef object. 0042 // The association between the G4AttValue and the G4AttDef object is 0043 // made through the data member "name". 0044 // For details, see the HepRep home page at http://heprep.freehep.org 0045 // 0046 // @author M.Frailis 0047 // @author R.Giannitrapani 0048 // @author J.Perl 0049 // Class Description - End: 0050 0051 0052 class G4AttValue { 0053 0054 public: 0055 G4AttValue(const G4String& name, 0056 const G4String& value, 0057 const G4String& showLabel): 0058 m_name(name),m_value(value), 0059 m_showLabel(showLabel){}; 0060 G4AttValue()= default; 0061 ~G4AttValue()= default; 0062 0063 const G4String& GetName()const{return m_name;}; 0064 const G4String& GetValue()const{return m_value;}; 0065 const G4String& GetShowLabel()const{return m_showLabel;}; 0066 0067 void SetName(const G4String& name){m_name = name;}; 0068 void SetValue(const G4String& val){m_value = val;}; 0069 void SetShowLabel(const G4String& lab){m_showLabel = lab;}; 0070 0071 private: 0072 /// The name of the attribute 0073 G4String m_name; 0074 /// The value of the attribute 0075 G4String m_value; 0076 /// The bitmap for the label display 0077 G4String m_showLabel; 0078 }; 0079 0080 #endif //G4ATTVALUE_H
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |