![]() |
|
|||
File indexing completed on 2025-05-30 08:06:03
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 #ifndef G4RTXScanner_H 0031 #define G4RTXScanner_H 1 0032 0033 // class description: 0034 // 0035 // G4RTXScanner 0036 // Provides a sequence of window coordinates suitable for a visible 0037 // window of ever increasing resolution. 0038 0039 #include "G4VRTScanner.hh" 0040 0041 #include <X11/Xlib.h> 0042 #include <X11/Xutil.h> 0043 0044 class G4ViewParameters; 0045 0046 class G4RTXScanner: public G4VRTScanner { 0047 0048 public: // with description 0049 0050 G4RTXScanner(); 0051 virtual ~G4RTXScanner(); 0052 0053 // Compiler defaults for copy constructor and assignmemt. 0054 0055 virtual const G4String& GetGSName() const; 0056 // Get name that acts as graphics system name. 0057 0058 virtual const G4String& GetGSNickname() const; 0059 // Get name that acts as graphics system nickname. It is this that 0060 // the user specifies on the /vis/open and /vis/sceneHandler/create 0061 // commands. 0062 0063 virtual void Initialize(G4int nRow, G4int nColumn); 0064 // Intialises scanner for window with nRow rows and nColumn columns. 0065 0066 virtual G4bool Coords(G4int& iRow, G4int& iColumn); 0067 // Supplies coordinate (iRow,iColumn) and returns false when the 0068 // sequence has finished, i.e., on the call *after* suplying the 0069 // last valid coordinate. 0070 0071 virtual void Draw 0072 (unsigned char red, unsigned char green, unsigned char blue); 0073 // Draw coloured square at current position. 0074 0075 G4bool GetXWindow(const G4String& name, G4ViewParameters&); 0076 0077 protected: 0078 G4String theGSName, theGSNickname; 0079 G4int theNRow, theNColumn, theStep, theIRow, theIColumn; 0080 // X Window variables... 0081 Display* display; 0082 Window win; 0083 GC gc; 0084 XStandardColormap *scmap; 0085 }; 0086 0087 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |