Import Geant4 9.4.0 source tree
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# CMakeLists.txt
|
||||
# Module : G4OpenInventor
|
||||
# Package: Geant4.src.G4visualization.G4OpenInventor
|
||||
#
|
||||
# CMakeLists.txt for single level library that may be build global or granular
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
# $Id: CMakeLists.txt,v 1.1 2010/09/29 19:12:22 bmorgan Exp $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
include(Geant4MacroLibraryTargets)
|
||||
if(GEANT4_BUILD_GRANULAR_LIBS)
|
||||
GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake)
|
||||
else()
|
||||
GEANT4_GLOBAL_LIBRARY_TARGET(COMPONENTS sources.cmake)
|
||||
endif()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.104 2009/11/17 17:47:49 allison Exp $
|
||||
$Id: History,v 1.108 2010/11/10 17:53:22 allison Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -20,6 +20,19 @@ committal in the CVS repository !
|
||||
History file for visualization/OpenInventor
|
||||
-------------------------------------------
|
||||
|
||||
10th November 2010 John Allison (openinventor-V09-03-02)
|
||||
- G4OpenInventor*Viewer.cc:
|
||||
o Protected output with G4VisManager::confirmations.
|
||||
|
||||
6th October 2010 John Allison (openinventor-V09-03-01)
|
||||
- G4OpenInventorViewer.cc:
|
||||
o Added default colour and default text colour to list of parameters
|
||||
that trigger a kernel visit.
|
||||
|
||||
26th May 2010 John Allison (openinventor-V09-03-00)
|
||||
- G4OpenInventorWin.cc, G4OpenInventorXt.cc: Protection against
|
||||
repeated initialisation.
|
||||
|
||||
17th November 2009 John Allison (openinventor-V09-02-03)
|
||||
- Tagged for vis tag.
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# sources.cmake
|
||||
# Module : G4OpenInventor
|
||||
# Package: Geant4.src.G4visualization.G4OpenInventor
|
||||
#
|
||||
# Sources description for a library.
|
||||
# Lists the sources and headers of the code explicitely.
|
||||
# Lists include paths needed.
|
||||
# Lists the internal granular and global dependencies of the library.
|
||||
# Source specific properties should be added at the end.
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
# $Id: sources.cmake,v 1.1 2010/09/29 19:12:30 bmorgan Exp $
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# List external includes needed.
|
||||
include_directories(${CLHEP_INCLUDE_DIRS})
|
||||
|
||||
# List internal includes needed.
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/digits_hits/hits/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/CSG/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/specific/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPGeometry/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPRandom/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/graphics_reps/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/intercoms/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/interfaces/common/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/materials/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/tracking/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/visualization/externals/gl2ps/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/visualization/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/visualization/modeling/include)
|
||||
|
||||
#
|
||||
# Define the Geant4 Module.
|
||||
#
|
||||
include(Geant4MacroDefineModule)
|
||||
GEANT4_DEFINE_MODULE(NAME G4OpenInventor
|
||||
HEADERS
|
||||
G4OpenInventor.hh
|
||||
G4OpenInventorSceneHandler.hh
|
||||
G4OpenInventorTransform3D.hh
|
||||
G4OpenInventorViewer.hh
|
||||
G4OpenInventorWin.hh
|
||||
G4OpenInventorWin32.hh
|
||||
G4OpenInventorWinViewer.hh
|
||||
G4OpenInventorX.hh
|
||||
G4OpenInventorXt.hh
|
||||
G4OpenInventorXtViewer.hh
|
||||
Geant4_SoPolyhedron.h
|
||||
SoG4LineSet.h
|
||||
SoG4MarkerSet.h
|
||||
SoG4Polyhedron.h
|
||||
SOURCES
|
||||
G4OpenInventor.cc
|
||||
G4OpenInventorSceneHandler.cc
|
||||
G4OpenInventorTransform3D.cc
|
||||
G4OpenInventorViewer.cc
|
||||
G4OpenInventorWin.cc
|
||||
G4OpenInventorWinViewer.cc
|
||||
G4OpenInventorXt.cc
|
||||
G4OpenInventorXtViewer.cc
|
||||
SbPainter.cc
|
||||
SbPainterPS.cc
|
||||
SoAlternateRepAction.cc
|
||||
SoBox.cc
|
||||
SoCons.cc
|
||||
SoCounterAction.cc
|
||||
SoDetectorTreeKit.cc
|
||||
SoGL2PSAction.cc
|
||||
SoImageWriter.cc
|
||||
SoMarkerSet.cc
|
||||
SoPolyhedron.cc
|
||||
SoStyleCache.cc
|
||||
SoTrap.cc
|
||||
SoTrd.cc
|
||||
SoTubs.cc
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4UIcommon
|
||||
G4csg
|
||||
G4geometrymng
|
||||
G4gl2ps
|
||||
G4globman
|
||||
G4graphics_reps
|
||||
G4hits
|
||||
G4intercoms
|
||||
G4materials
|
||||
G4modeling
|
||||
G4specsolids
|
||||
G4tracking
|
||||
G4vis_management
|
||||
GLOBAL_DEPENDENCIES
|
||||
G4digits_hits
|
||||
G4geometry
|
||||
G4gl2ps
|
||||
G4global
|
||||
G4graphics_reps
|
||||
G4intercoms
|
||||
G4interfaces
|
||||
G4materials
|
||||
G4modeling
|
||||
G4tracking
|
||||
G4vis_management
|
||||
LINK_LIBRARIES
|
||||
)
|
||||
|
||||
# List any source specific properties here
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4OpenInventorViewer.cc,v 1.60 2009/02/16 15:31:05 lgarnier Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
// $Id: G4OpenInventorViewer.cc,v 1.61 2010/10/06 10:09:57 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
|
||||
#ifdef G4VIS_BUILD_OI_DRIVER
|
||||
|
||||
@@ -176,6 +176,10 @@ G4bool G4OpenInventorViewer::CompareForKernelVisit(G4ViewParameters& vp) {
|
||||
(vp.IsExplode () != fVP.IsExplode ()) ||
|
||||
(vp.GetNoOfSides () != fVP.GetNoOfSides ()) ||
|
||||
(vp.IsMarkerNotHidden () != fVP.IsMarkerNotHidden ()) ||
|
||||
(vp.GetDefaultVisAttributes()->GetColour() !=
|
||||
fVP.GetDefaultVisAttributes()->GetColour()) ||
|
||||
(vp.GetDefaultTextVisAttributes()->GetColour() !=
|
||||
fVP.GetDefaultTextVisAttributes()->GetColour()) ||
|
||||
(vp.GetBackgroundColour ()!= fVP.GetBackgroundColour ())||
|
||||
(vp.IsPicking () != fVP.IsPicking ()) ||
|
||||
// Scaling for Open Inventor is done by the scene handler so it
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorWin.cc,v 1.7 2009/09/18 12:48:43 lgarnier Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
// $Id: G4OpenInventorWin.cc,v 1.8 2010/05/26 14:30:46 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04-beta-01 $
|
||||
//
|
||||
// OpenInventor graphics system factory.
|
||||
|
||||
@@ -57,7 +57,7 @@ void G4OpenInventorWin::Initialize ()
|
||||
|
||||
HWND toplevel = (HWND)GetInteractorManager()->GetMainInteractor();
|
||||
|
||||
SoWin::init(toplevel);
|
||||
if(!SoWin::getTopLevelWidget()) SoWin::init(toplevel);
|
||||
|
||||
InitNodes();
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorWinViewer.cc,v 1.26 2009/09/18 12:48:43 lgarnier Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
// $Id: G4OpenInventorWinViewer.cc,v 1.27 2010/11/10 17:53:22 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
/*
|
||||
* jck : 05 Feb 1997 : Initial Implementation
|
||||
@@ -51,6 +51,7 @@
|
||||
#include "G4OpenInventor.hh"
|
||||
#include "G4OpenInventorSceneHandler.hh"
|
||||
#include "G4VInteractorManager.hh"
|
||||
#include "G4VisManager.hh"
|
||||
|
||||
#include <windowsx.h>
|
||||
|
||||
@@ -94,8 +95,8 @@ G4OpenInventorWinViewer::G4OpenInventorWinViewer(
|
||||
,fShell(0)
|
||||
,fViewer(0)
|
||||
{
|
||||
G4cout << "Window name: " << fName << G4endl;
|
||||
|
||||
if (G4VisManager::GetVerbosity() >= G4VisManager::confirmations)
|
||||
G4cout << "Window name: " << fName << G4endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorXt.cc,v 1.4 2006/06/29 21:22:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4OpenInventorXt.cc,v 1.5 2010/05/26 14:30:46 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04-beta-01 $
|
||||
//
|
||||
//
|
||||
// Jeff Kallenbach 01 Aug 1996
|
||||
@@ -80,7 +80,7 @@ void G4OpenInventorXt::Initialize()
|
||||
}
|
||||
}
|
||||
|
||||
SoXt::init(top);
|
||||
if(!SoXt::getTopLevelWidget()) SoXt::init(top);
|
||||
|
||||
InitNodes();
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4OpenInventorXtViewer.cc,v 1.25 2009/09/18 12:48:43 lgarnier Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
// $Id: G4OpenInventorXtViewer.cc,v 1.26 2010/11/10 17:53:22 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
/*
|
||||
* jck 05 Feb 1997 - Initial Implementation
|
||||
@@ -64,6 +64,7 @@
|
||||
#include "G4OpenInventor.hh"
|
||||
#include "G4OpenInventorSceneHandler.hh"
|
||||
#include "G4VInteractorManager.hh"
|
||||
#include "G4VisManager.hh"
|
||||
|
||||
G4OpenInventorXtViewer::G4OpenInventorXtViewer(
|
||||
G4OpenInventorSceneHandler& sceneHandler
|
||||
@@ -74,7 +75,8 @@ G4OpenInventorXtViewer::G4OpenInventorXtViewer(
|
||||
,fHelpForm(0)
|
||||
,fHelpText(0)
|
||||
{
|
||||
G4cout << "Window name: " << fName << G4endl;
|
||||
if (G4VisManager::GetVerbosity() >= G4VisManager::confirmations)
|
||||
G4cout << "Window name: " << fName << G4endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user