Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2006-05-25 08:44:52 allison Exp $
|
||||
# $Id: GNUmakefile 68031 2013-03-13 13:52:48Z gcosmo $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.3 2010-11-09 09:49:57 allison Exp $
|
||||
$Id: History 69587 2013-05-08 14:26:03Z gcosmo $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -15,6 +15,12 @@ track of all tags.
|
||||
----------------------------------------------------------
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
27th March 2013 John Allison (exam-ext-vis-persp-V09-06-02)
|
||||
- Added separators between functions.
|
||||
|
||||
19th February 2013 Ivana Hrivnacova (exam-ext-vis-persp-V09-06-00)
|
||||
- Applied coding guidelines (data members initialization)
|
||||
|
||||
11th June 2012 John Allison (exam-ext-vis-persp-V09-05-03)
|
||||
- Added .README for doxygen.
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PerspectiveVisAction class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PerspectiveVisAction.hh 68031 2013-03-13 13:52:48Z gcosmo $
|
||||
|
||||
#ifndef PERSPECTIVEVISACTION_HH
|
||||
#define PERSPECTIVEVISACTION_HH
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
/// \brief Definition of the PerspectiveVisActionMessenger class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PerspectiveVisActionMessenger.hh 68031 2013-03-13 13:52:48Z gcosmo $
|
||||
|
||||
#ifndef PERSPECTIVEVISACTIONMESSENGER_HH
|
||||
#define PERSPECTIVEVISACTIONMESSENGER_HH
|
||||
|
||||
@@ -27,7 +27,11 @@
|
||||
/// \brief Main program of the visualization/perspective example
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: perspective.cc 69587 2013-05-08 14:26:03Z gcosmo $
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VisExecutive.hh"
|
||||
@@ -38,6 +42,8 @@
|
||||
|
||||
#include "PerspectiveVisAction.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
int main(int argc,char** argv) {
|
||||
|
||||
G4VisManager* visManager = new G4VisExecutive;
|
||||
@@ -59,3 +65,6 @@ int main(int argc,char** argv) {
|
||||
delete ui;
|
||||
delete visManager;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Implementation of the PerspectiveVisAction class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PerspectiveVisAction.cc 69587 2013-05-08 14:26:03Z gcosmo $
|
||||
|
||||
#include "PerspectiveVisAction.hh"
|
||||
|
||||
@@ -41,7 +41,10 @@
|
||||
#include "G4Point3D.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PerspectiveVisAction::PerspectiveVisAction():
|
||||
G4VUserVisAction(),
|
||||
fpVisManager(0),
|
||||
fOptionString("none"),
|
||||
fScene("room-and-chair"),
|
||||
@@ -69,6 +72,8 @@ PerspectiveVisAction::PerspectiveVisAction():
|
||||
new PerspectiveVisActionMessenger(this);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PerspectiveVisAction::Draw()
|
||||
{
|
||||
fpVisManager = G4VVisManager::GetConcreteInstance();
|
||||
@@ -83,6 +88,8 @@ void PerspectiveVisAction::Draw()
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PerspectiveVisAction::RoomAndChair()
|
||||
{
|
||||
// Simple box, size of a room, translated so origin is on xy "floor"...
|
||||
@@ -132,6 +139,8 @@ void PerspectiveVisAction::RoomAndChair()
|
||||
Chair(chair_visAtts, chair_transform);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PerspectiveVisAction::Chair
|
||||
(const G4VisAttributes& visAtts,
|
||||
const G4Transform3D& transform)
|
||||
@@ -158,6 +167,8 @@ void PerspectiveVisAction::Chair
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PerspectiveVisAction::ExtendedDraw
|
||||
(const G4VSolid& solid,
|
||||
const G4VisAttributes& visAtts,
|
||||
@@ -216,3 +227,5 @@ void PerspectiveVisAction::ExtendedDraw
|
||||
// Draw actual object...
|
||||
fpVisManager->Draw(solid, visAtts, transform);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
/// \brief Implementation of the PerspectiveVisActionMessenger class
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: PerspectiveVisActionMessenger.cc 69587 2013-05-08 14:26:03Z gcosmo $
|
||||
|
||||
#include "PerspectiveVisActionMessenger.hh"
|
||||
|
||||
@@ -38,9 +38,15 @@
|
||||
#include "G4UIdirectory.hh"
|
||||
#include "G4UIcmdWithAString.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PerspectiveVisActionMessenger::PerspectiveVisActionMessenger
|
||||
(PerspectiveVisAction* PVA):
|
||||
fPVA(PVA)
|
||||
G4UImessenger(),
|
||||
fPVA(PVA),
|
||||
fpDirectory(0),
|
||||
fpCommandOS(0),
|
||||
fpCommandScene(0)
|
||||
{
|
||||
G4bool omitable;
|
||||
|
||||
@@ -63,6 +69,8 @@ PerspectiveVisActionMessenger::PerspectiveVisActionMessenger
|
||||
fpCommandScene -> SetCandidates("room-and-chair");
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
PerspectiveVisActionMessenger::~PerspectiveVisActionMessenger ()
|
||||
{
|
||||
delete fpCommandScene;
|
||||
@@ -70,6 +78,8 @@ PerspectiveVisActionMessenger::~PerspectiveVisActionMessenger ()
|
||||
delete fpDirectory;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void PerspectiveVisActionMessenger::SetNewValue
|
||||
(G4UIcommand* command, G4String newValue)
|
||||
{
|
||||
@@ -85,3 +95,6 @@ void PerspectiveVisActionMessenger::SetNewValue
|
||||
|
||||
G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/rebuild");
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
|
||||
Reference in New Issue
Block a user