Ignore:
Timestamp:
Dec 3, 2008, 5:31:19 PM (17 years ago)
Author:
garnier
Message:

Modif pour XGeometry complet. Avec debug

Location:
trunk/source/visualization/management/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/management/include/G4ViewParameters.hh

    r893 r896  
    154154        G4double         GetGlobalLineWidthScale () const;
    155155        G4bool           IsMarkerNotHidden       () const;
     156        G4int            GetWindowAbsoluteLocationHintX (G4int) const;
     157        G4int            GetWindowAbsoluteLocationHintY (G4int) const;
    156158        G4int            GetWindowSizeHintX      () const;
    157159        G4int            GetWindowSizeHintY      () const;
     
    233235
    234236private:
     237  G4int ParseGeometry ( const char *string, G4int *x, G4int *y, unsigned int *width, unsigned int *height);
     238  G4int ReadInteger(char *string, char **NextString);
     239
     240  G4int fNoValue;
     241  G4int fXValue; // XValue set for XGeometry
     242  G4int fYValue; // YValue set for XGeometry
     243  G4int fWidthValue; // WidthValue set for XGeometry
     244  G4int fHeightValue; // HeightValue set for XGeometry
     245  G4int fAllValues; // AllValues are set for XGeometry
     246  G4int fXNegative; // XValue is from left for XGeometry
     247  G4int fYNegative; // YValue is from top for XGeometry
    235248
    236249  DrawingStyle fDrawingStyle;    // Drawing style.
     
    275288  G4int        fWindowLocationHintX; // Location hints for pixel-based window systems.
    276289  G4int        fWindowLocationHintY;
     290  G4bool       fWindowLocationHintXNegative; //  Reference of location hints for pixel-based window systems.
     291  G4bool       fWindowLocationHintYNegative;
    277292  G4String     fXGeometryString; // If non-null, geometry string for X Windows.
    278293  G4bool       fAutoRefresh;     // ...after change of view parameters.
  • trunk/source/visualization/management/include/G4ViewParameters.icc

    r893 r896  
    350350}
    351351
    352 inline void G4ViewParameters::SetXGeometryString (const G4String& geomString) {
    353   fXGeometryString = geomString;
    354 }
    355 
    356352inline void G4ViewParameters::SetAutoRefresh (G4bool state) {
    357353  fAutoRefresh = state;
  • trunk/source/visualization/management/include/G4VisCommandsViewer.hh

    r891 r896  
    138138  G4VisCommandViewerCreate (const G4VisCommandViewerCreate&);
    139139  G4VisCommandViewerCreate& operator = (const G4VisCommandViewerCreate&);
    140   int ParseGeometry ( const char *string, int *x, int *y, unsigned int *width, unsigned int *height);
    141   int ReadInteger(char *string, char **NextString);
    142140  G4String NextName ();
    143141  G4UIcommand* fpCommand;
    144142  G4int fId;
    145   int NoValue;
    146   int XValue;
    147   int YValue;
    148   int WidthValue;
    149   int HeightValue;
    150   int AllValues;
    151   int XNegative;
    152   int YNegative;
    153143};
    154144
  • trunk/source/visualization/management/include/G4VisManager.hh

    r893 r896  
    313313  // Creates scene handler for the current system.
    314314
    315   void CreateViewer  (G4String name = "");
     315  void CreateViewer  (G4String name = "",G4String XGeometry = "");
    316316  // Creates viewer for the current scene handler.
    317317
  • trunk/source/visualization/management/include/G4VisManager.icc

    r894 r896  
    7373}
    7474
    75 inline void G4VisManager::GetWindowSizeHint
    76  (G4int& xHint, G4int& yHint) const {
    77   xHint = fWindowSizeHintX; yHint = fWindowSizeHintY;
    78 }
    79 
    80 inline void G4VisManager::GetWindowLocationHint
    81  (G4int& xHint, G4int& yHint) const {
    82   xHint = fpViewer->GetViewParameters().GetWindowLocationHintX();
    83   yHint = fpViewer->GetViewParameters().GetWindowLocationHintY();
    84 }
    85 
    86 inline const G4String& G4VisManager::GetXGeometryString () const {
    87   return fXGeometryString;
    88 }
    8975
    9076inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const {
     
    120106}
    121107
    122 inline void G4VisManager::SetWindowSizeHint (G4int xHint, G4int yHint) {
    123   fWindowSizeHintX = xHint; fWindowSizeHintY = yHint;
    124 }
    125 
    126 inline void G4VisManager::SetWindowLocationHint (G4int xHint, G4int yHint) {
    127 #ifdef G4DEBUG
    128         printf("G4VisManager::SetWindowLocationHint () :: %d %d\n",xHint,yHint);
    129 #endif
    130   G4ViewParameters vp = fpViewer->GetViewParameters();
    131   vp.SetWindowLocationHint(xHint,yHint);
    132 #ifdef G4DEBUG
    133         printf("G4VisManager::SetViewParameteres location ()\n");
    134 #endif
    135   fpViewer->SetViewParameters(vp);
    136 }
    137 
    138 inline void G4VisManager::SetXGeometryString (const G4String& geomString) {
    139   fXGeometryString = geomString;
    140 }
    141 
    142108inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) {
    143109  fEventRefreshing = eventRefreshing;
Note: See TracChangeset for help on using the changeset viewer.