Import Geant4 9.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 17:01:34 +02:00
parent b1eb5424d2
commit e2d2f9810a
10384 changed files with 698580 additions and 628834 deletions
@@ -23,9 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file visualization/userVisAction/src/UVA_VisAction.cc
/// \brief Implementation of the UVA_VisAction class
//
// $Id: UVA_VisAction.cc,v 1.3 2006-06-29 17:47:08 gunter Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// $Id$
#include "UVA_VisAction.hh"
@@ -35,24 +37,25 @@
#include "G4Box.hh"
#include "G4SubtractionSolid.hh"
#include "G4Text.hh"
#include "G4SystemOfUnits.hh"
void UVA_VisAction::Draw() {
G4VVisManager* pVisManager = G4VVisManager::GetConcreteInstance();
if (pVisManager) {
// A simple logo...
G4Orb orb("my_logo_orb", 1*m);
G4Orb orb("my_logo_orb", 5*cm);
G4Box box("my_cut_box", 1*m, 1*m, 1*m);
G4SubtractionSolid logo("my_logo", &orb, &box, G4Translate3D(-1*m,1*m,1*m));
G4VisAttributes va1(G4Colour::Red());
va1.SetForceSolid(true);
pVisManager->Draw(logo,va1,G4Translate3D(0,-1*m,4.5*m));
pVisManager->Draw(logo,va1,G4Translate3D(-15*cm,-20*cm,25*cm));
G4Text text("My beautiful logo");
G4VisAttributes va2(G4Colour::Magenta());
text.SetVisAttributes(va2);
text.SetScreenSize(12.);
pVisManager->Draw(text,G4Translate3D(0,0,3.5*m));
pVisManager->Draw(text,G4Translate3D(-16*cm,-18*cm,25*cm));
}
}