diff --git a/src/Math/Makefile.am b/src/Math/Makefile.am deleted file mode 100644 index e8add8c..0000000 --- a/src/Math/Makefile.am +++ /dev/null @@ -1,42 +0,0 @@ -SUBDIRS = . - -include $(top_srcdir)/Common.am - -library_includedir = $(includedir)/libmutom-${PACKAGE_VERSION}/Math -library_include_HEADERS = ContainerBox.h \ - Dense.h \ - Geometry.h \ - Transform.h \ - StructuredData.h\ - StructuredGrid.h\ - VoxImage.h \ - VoxRaytracer.h \ - Utils.h \ - VoxImageFilter.h\ - VoxImageFilter.hpp \ - VoxImageFilterLinear.hpp \ - VoxImageFilterMedian.hpp \ - VoxImageFilterABTrim.hpp \ - VoxImageFilterBilateral.hpp \ - VoxImageFilterThreshold.hpp \ - VoxImageFilter2ndStat.hpp \ - VoxImageFilterCustom.hpp \ - Accumulator.h \ - TriangleMesh.h - - -_MATH_SOURCES = \ - VoxRaytracer.cpp \ - StructuredData.cpp \ - StructuredGrid.cpp \ - VoxImage.cpp \ - TriangleMesh.cpp \ - Dense.cpp - - - - -noinst_LTLIBRARIES = libmutommath.la -libmutommath_la_SOURCES = ${_MATH_SOURCES} - - diff --git a/src/Vtk/vtkObjectsContext.cpp b/src/Vtk/vtkObjectsContext.cpp index 4894890..98daba8 100644 --- a/src/Vtk/vtkObjectsContext.cpp +++ b/src/Vtk/vtkObjectsContext.cpp @@ -3,7 +3,9 @@ #include "Vtk/Math/vtkCylinder.h" #include "Vtk/Math/vtkAssembly.h" #include "Vtk/Math/vtkVoxImage.h" + #include "HEP/Detectors/vtkDetectorChamber.h" +#include "HEP/Geant/vtkBoxSolid.h" #include #include @@ -127,6 +129,9 @@ Puppet* vtkObjectsContext::CreatePuppet(uLib::Object* obj) { } else if (auto* assembly = dynamic_cast(obj)) { return new Assembly(assembly); } + else if (auto* box = dynamic_cast(obj)) { + return new vtkBoxSolid(box); + } // Fallback if we don't know the exact class but it might be a context itself if (auto subCtx = dynamic_cast(obj)) {