Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET pyG4graphics_reps)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
pyG4Colour.cc
|
||||
pyG4VisAttributes.cc
|
||||
pymodG4graphics_reps.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4graphics_reps")
|
||||
set_target_properties(${_TARGET}
|
||||
PROPERTIES INSTALL_RPATH
|
||||
${GEANT4_LIBRARY_DIR}
|
||||
BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
|
||||
target_link_libraries (${_TARGET}
|
||||
${GEANT4_LIBRARIES_WITH_VIS} boost_python)
|
||||
|
||||
# install
|
||||
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${G4MODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 08:09:45 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4Colour.cc,v 1.4 2006-06-29 15:33:54 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyG4Colour.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// pyG4Colour.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4VisAttributes.cc,v 1.5 2010-12-02 08:23:49 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyG4VisAttributes.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyG4VisAttributes.cc
|
||||
//
|
||||
@@ -42,24 +41,24 @@ using namespace boost::python;
|
||||
namespace pyG4VisAttributes {
|
||||
|
||||
// SetColor()
|
||||
void(G4VisAttributes::*f1_SetColor)(const G4Color&)=
|
||||
void(G4VisAttributes::*f1_SetColor)(const G4Color&)=
|
||||
&G4VisAttributes::SetColor;
|
||||
|
||||
void(G4VisAttributes::*f2_SetColor)(G4double, G4double, G4double, G4double)=
|
||||
void(G4VisAttributes::*f2_SetColor)(G4double, G4double, G4double, G4double)=
|
||||
&G4VisAttributes::SetColor;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColor, SetColor, 3, 4);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColor, SetColor, 3, 4)
|
||||
|
||||
// SetColour()
|
||||
void(G4VisAttributes::*f1_SetColour)(const G4Colour&)=
|
||||
void(G4VisAttributes::*f1_SetColour)(const G4Colour&)=
|
||||
&G4VisAttributes::SetColour;
|
||||
|
||||
void(G4VisAttributes::*f2_SetColour)(G4double, G4double, G4double, G4double)=
|
||||
void(G4VisAttributes::*f2_SetColour)(G4double, G4double, G4double, G4double)=
|
||||
&G4VisAttributes::SetColour;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColour, SetColour, 3, 4);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColour, SetColour, 3, 4)
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyG4VisAttributes;
|
||||
|
||||
@@ -68,7 +67,7 @@ using namespace pyG4VisAttributes;
|
||||
// ====================================================================
|
||||
void export_G4VisAttributes()
|
||||
{
|
||||
scope in_G4VisAttributes=
|
||||
scope in_G4VisAttributes=
|
||||
class_<G4VisAttributes, G4VisAttributes*>
|
||||
("G4VisAttributes", "visualization attributes")
|
||||
// constructors
|
||||
@@ -79,7 +78,7 @@ void export_G4VisAttributes()
|
||||
.def_readonly("Invisible", &G4VisAttributes::Invisible)
|
||||
.def("GetInvisible", &G4VisAttributes::GetInvisible,
|
||||
return_value_policy<reference_existing_object>())
|
||||
.staticmethod("GetInvisible")
|
||||
.staticmethod("GetInvisible")
|
||||
.def("IsVisible", &G4VisAttributes::IsVisible)
|
||||
.def("IsDaughtersInvisible", &G4VisAttributes::IsDaughtersInvisible)
|
||||
// ---
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pymodG4graphics_reps.cc,v 1.4 2006-06-29 15:33:59 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pymodG4graphics_reps.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// pymodG4graphics_reps.cc [Geant4Py module]
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user