Changeset 897 for trunk/source/visualization/management/include
- Timestamp:
- Dec 3, 2008, 7:03:25 PM (17 years ago)
- Location:
- trunk/source/visualization/management/include
- Files:
-
- 3 edited
-
G4ViewParameters.hh (modified) (1 diff)
-
G4ViewParameters.icc (modified) (2 diffs)
-
G4VisManager.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/management/include/G4ViewParameters.hh
r896 r897 156 156 G4int GetWindowAbsoluteLocationHintX (G4int) const; 157 157 G4int GetWindowAbsoluteLocationHintY (G4int) const; 158 G4intGetWindowSizeHintX () const;159 G4intGetWindowSizeHintY () const;158 unsigned int GetWindowSizeHintX () const; 159 unsigned int GetWindowSizeHintY () const; 160 160 G4int GetWindowLocationHintX () const; 161 161 G4int GetWindowLocationHintY () const; 162 162 const G4String& GetXGeometryString () const; 163 // If non-null, can be interpreted with XParseGeometry (see man 164 // pages). Supercedes GetWindowSizeHintX/Y. 163 // GetXGeometryString is intended to be parsed by XParseGeometry. 164 // It contains the size information, as in GetWindowSizeHint, but 165 // may also contain the window position, e.g., "600x600-0+200. The 166 // viewer should use this in preference to GetWindowSizeHint, since 167 // it contains more information. (The size information in 168 // GetXGeometryString and GetWindowSizeHint is guaranteed to be 169 // identical.) 165 170 G4bool IsAutoRefresh () const; 166 171 const G4Colour& GetBackgroundColour () const; -
trunk/source/visualization/management/include/G4ViewParameters.icc
r896 r897 162 162 } 163 163 164 inline G4int G4ViewParameters::GetWindowSizeHintX () const {164 inline unsigned int G4ViewParameters::GetWindowSizeHintX () const { 165 165 return fWindowSizeHintX; 166 166 } 167 167 168 inline G4int G4ViewParameters::GetWindowSizeHintY () const {168 inline unsigned int G4ViewParameters::GetWindowSizeHintY () const { 169 169 return fWindowSizeHintY; 170 170 } 171 171 172 172 inline G4int G4ViewParameters::GetWindowLocationHintX () const { 173 #ifdef G4DEBUG174 printf("G4ViewParameters::GetWindowLocationHintX () :: %d\n",fWindowLocationHintX);175 #endif176 173 return fWindowLocationHintX; 177 174 } 178 175 179 176 inline G4int G4ViewParameters::GetWindowLocationHintY () const { 180 #ifdef G4DEBUG181 printf("G4ViewParameters::GetWindowLocationHintY () :: %d\n",fWindowLocationHintY);182 #endif183 177 return fWindowLocationHintY; 184 178 } … … 343 337 344 338 inline void G4ViewParameters::SetWindowLocationHint (G4int xHint, G4int yHint) { 345 #ifdef G4DEBUG346 printf("G4ViewParameters::SetWindowLocationHint () :: %d %d\n",xHint,yHint);347 #endif348 339 fWindowLocationHintX = xHint; 349 340 fWindowLocationHintY = yHint; -
trunk/source/visualization/management/include/G4VisManager.hh
r896 r897 353 353 const G4SceneList& GetSceneList () const; 354 354 Verbosity GetVerbosity () const; 355 void GetWindowSizeHint (G4int& xHint, G4int& yHint) const;356 // Note: GetWindowSizeHint information is returned via the G4int& arguments.357 void GetWindowLocationHint (G4int& xHint, G4int& yHint) const;358 const G4String& GetXGeometryString () const;359 // GetXGeometryString is intended to be parsed by XParseGeometry.360 // It contains the size information, as in GetWindowSizeHint, but361 // may also contain the window position, e.g., "600x600-0+200. The362 // viewer should use this in preference to GetWindowSizeHint, since363 // it contains more information. (The size information in364 // GetXGeometryString and GetWindowSizeHint is guaranteed to be365 // identical.)366 355 G4bool GetTransientsDrawnThisRun () const; 367 356 G4bool GetTransientsDrawnThisEvent () const; … … 381 370 void SetVerboseLevel (const G4String&); 382 371 void SetVerboseLevel (Verbosity); 383 void SetWindowSizeHint (G4int xHint, G4int yHint);384 void SetWindowLocationHint (G4int xHint, G4int yHint);385 void SetXGeometryString (const G4String&);386 372 void SetEventRefreshing (G4bool); 387 373 void ResetTransientsDrawnFlags (); … … 458 444 std::vector<G4UIcommand*> fDirectoryList; 459 445 G4VisStateDependent* fpStateDependent; // Friend state dependent class. 460 G4int fWindowSizeHintX, fWindowSizeHintY; // For viewer...461 G4int fWindowLocationHintX, fWindowLocationHintY; // For viewer...462 G4String fXGeometryString; // ...construction.463 446 G4TrajectoriesModel dummyTrajectoriesModel; // For passing drawing mode. 464 447 G4bool fEventRefreshing;
Note:
See TracChangeset
for help on using the changeset viewer.
