Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VisCommandsRefresh.hh,v 2.2 1998/07/12 03:10:05 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/refresh/ commands
|
||||
// John Allison 7th September 1997
|
||||
|
||||
#ifndef G4VISCOMMANDSREFRESH_HH
|
||||
#define G4VISCOMMANDSREFRESH_HH
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VisManager.hh"
|
||||
|
||||
/////////////////////////////////////////////////// /vis~/refresh/... ////
|
||||
//vis \hline
|
||||
//vis /vis~/refresh/ &&
|
||||
//vis ...menu of refresh commands. \\%
|
||||
class G4VisCommandRefresh {
|
||||
public:
|
||||
G4String GetCommandName () const {return "/vis~/refresh/";}
|
||||
G4String GetGuidance () const {
|
||||
return "...menu of refresh commands.";
|
||||
}
|
||||
};
|
||||
|
||||
///////////////////////////////////////////// /vis~/refresh/view ////
|
||||
//view \hline
|
||||
//view /vis~/refresh/view &&
|
||||
//view Optimal redraw of current view of current scene - uses
|
||||
//view double buffer and graphical database, if any. \\%
|
||||
class G4VisCommandRefreshView {
|
||||
public:
|
||||
G4String GetCommandName () const {return "/vis~/refresh/view";}
|
||||
G4String GetGuidance () const {
|
||||
return "Optimal redraw of current view of current scene - uses "
|
||||
"double buffer and graphical database, if any.";
|
||||
}
|
||||
void SetValue () {
|
||||
G4VisManager* pVMan = G4VisManager::GetInstance ();
|
||||
if (pVMan -> IsValidView ()) {
|
||||
pVMan -> RefreshCurrentView ();
|
||||
// Soft clear - clears back buffer only on double-buffered systems.
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user