Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
// 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: G4VisCommandsDelete.hh,v 2.2 1998/07/12 03:10:02 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// /vis~/delete/ commands
|
||||
// John Allison 7th September 1997
|
||||
|
||||
#ifndef G4VISCOMMANDSDELETE_HH
|
||||
#define G4VISCOMMANDSDELETE_HH
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VisManager.hh"
|
||||
#include "G4ViewParameters.hh"
|
||||
|
||||
//////////////////////////////////////////////////// /vis~/delete/... ////
|
||||
//vis \hline
|
||||
//vis /vis~/delete/ &&
|
||||
//vis ...menu of deleting possibilities. \\%
|
||||
class G4VisCommandDelete {
|
||||
public:
|
||||
G4String GetCommandName () const {return "/vis~/delete/";}
|
||||
G4String GetGuidance () const {
|
||||
return "...menu of deleting possibilities.";
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////// /vis~/delete/scene ////
|
||||
//delete \hline
|
||||
//delete /vis~/delete/scene &&
|
||||
//delete Deletes the current scene and its views. \\%
|
||||
class G4VisCommandDeleteScene {
|
||||
public:
|
||||
G4String GetCommandName () const {return "/vis~/delete/scene";}
|
||||
G4String GetGuidance () const {
|
||||
return "Deletes the current scene and its views.";
|
||||
}
|
||||
void SetValue () {
|
||||
G4VisManager* pVMan = G4VisManager::GetInstance ();
|
||||
if (pVMan -> GetVerboseLevel () > 1) {
|
||||
pVMan -> PrintCurrentView ();
|
||||
}
|
||||
pVMan -> DeleteCurrentScene ();
|
||||
if (pVMan -> GetVerboseLevel () > 1) {
|
||||
pVMan -> PrintCurrentView ();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////// /vis~/delete/view ////
|
||||
//delete \hline
|
||||
//delete /vis~/delete/view &&
|
||||
//delete Deletes the current view. \\%
|
||||
class G4VisCommandDeleteView {
|
||||
public:
|
||||
G4String GetCommandName () const {return "/vis~/delete/view";}
|
||||
G4String GetGuidance () const {
|
||||
return "Deletes the current view.";
|
||||
}
|
||||
void SetValue () {
|
||||
G4VisManager* pVMan = G4VisManager::GetInstance ();
|
||||
if (pVMan -> GetVerboseLevel () > 1) {
|
||||
pVMan -> PrintCurrentView ();
|
||||
}
|
||||
pVMan -> DeleteCurrentView ();
|
||||
if (pVMan -> GetVerboseLevel () > 1) {
|
||||
pVMan -> PrintCurrentView ();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user