Changeset 896 for trunk/source/visualization/management/include
- Timestamp:
- Dec 3, 2008, 5:31:19 PM (17 years ago)
- Location:
- trunk/source/visualization/management/include
- Files:
-
- 5 edited
-
G4ViewParameters.hh (modified) (3 diffs)
-
G4ViewParameters.icc (modified) (1 diff)
-
G4VisCommandsViewer.hh (modified) (1 diff)
-
G4VisManager.hh (modified) (1 diff)
-
G4VisManager.icc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/include/G4ViewParameters.hh
r893 r896 154 154 G4double GetGlobalLineWidthScale () const; 155 155 G4bool IsMarkerNotHidden () const; 156 G4int GetWindowAbsoluteLocationHintX (G4int) const; 157 G4int GetWindowAbsoluteLocationHintY (G4int) const; 156 158 G4int GetWindowSizeHintX () const; 157 159 G4int GetWindowSizeHintY () const; … … 233 235 234 236 private: 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 235 248 236 249 DrawingStyle fDrawingStyle; // Drawing style. … … 275 288 G4int fWindowLocationHintX; // Location hints for pixel-based window systems. 276 289 G4int fWindowLocationHintY; 290 G4bool fWindowLocationHintXNegative; // Reference of location hints for pixel-based window systems. 291 G4bool fWindowLocationHintYNegative; 277 292 G4String fXGeometryString; // If non-null, geometry string for X Windows. 278 293 G4bool fAutoRefresh; // ...after change of view parameters. -
trunk/source/visualization/management/include/G4ViewParameters.icc
r893 r896 350 350 } 351 351 352 inline void G4ViewParameters::SetXGeometryString (const G4String& geomString) {353 fXGeometryString = geomString;354 }355 356 352 inline void G4ViewParameters::SetAutoRefresh (G4bool state) { 357 353 fAutoRefresh = state; -
trunk/source/visualization/management/include/G4VisCommandsViewer.hh
r891 r896 138 138 G4VisCommandViewerCreate (const G4VisCommandViewerCreate&); 139 139 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);142 140 G4String NextName (); 143 141 G4UIcommand* fpCommand; 144 142 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;153 143 }; 154 144 -
trunk/source/visualization/management/include/G4VisManager.hh
r893 r896 313 313 // Creates scene handler for the current system. 314 314 315 void CreateViewer (G4String name = "" );315 void CreateViewer (G4String name = "",G4String XGeometry = ""); 316 316 // Creates viewer for the current scene handler. 317 317 -
trunk/source/visualization/management/include/G4VisManager.icc
r894 r896 73 73 } 74 74 75 inline void G4VisManager::GetWindowSizeHint76 (G4int& xHint, G4int& yHint) const {77 xHint = fWindowSizeHintX; yHint = fWindowSizeHintY;78 }79 80 inline void G4VisManager::GetWindowLocationHint81 (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 }89 75 90 76 inline G4bool G4VisManager::GetTransientsDrawnThisEvent() const { … … 120 106 } 121 107 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 G4DEBUG128 printf("G4VisManager::SetWindowLocationHint () :: %d %d\n",xHint,yHint);129 #endif130 G4ViewParameters vp = fpViewer->GetViewParameters();131 vp.SetWindowLocationHint(xHint,yHint);132 #ifdef G4DEBUG133 printf("G4VisManager::SetViewParameteres location ()\n");134 #endif135 fpViewer->SetViewParameters(vp);136 }137 138 inline void G4VisManager::SetXGeometryString (const G4String& geomString) {139 fXGeometryString = geomString;140 }141 142 108 inline void G4VisManager::SetEventRefreshing (G4bool eventRefreshing) { 143 109 fEventRefreshing = eventRefreshing;
Note:
See TracChangeset
for help on using the changeset viewer.
