Skip to content
Snippets Groups Projects
Commit 824e07c6 authored by Andrew Wilson's avatar Andrew Wilson :elephant:
Browse files

REFAC: Removed unused files, update name, makes all .i files visible in visual studios

parent 7a63e9e8
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,27 @@ swig_add_library(iMSTKCWrapper
TYPE SHARED
OUTPUT_DIR "${CMAKE_BINARY_DIR}/Source/Wrappers/csharp"
LANGUAGE csharp
SOURCES SwigInterface/imstkCWrapper.i)
SOURCES
SwigInterface/imstkCWrapper.i)
if (MSVC)
# These files should not be provided via swig_add_library SOURCES
# But still displayed in visual studios
set(NOTGENERATED_FILES
SwigInterface/callback.i
SwigInterface/common.i
SwigInterface/debug.i
SwigInterface/ignored.i
SwigInterface/modifiers.i
SwigInterface/shared_ptr_instantiation.i
SwigInterface/std_function.i
SwigInterface/type_cast.i
SwigInterface/weak_ptr.i)
target_sources(iMSTKCWrapper PRIVATE ${NOTGENERATED_FILES})
set_source_files_properties(${NOTGENERATED_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
endif()
set_target_properties(iMSTKCWrapper PROPERTIES SWIG_COMPILE_OPTIONS "-namespace;imstk")
if(iMSTK_SWIG_PINNED_ARRAY)
......
......@@ -75,7 +75,6 @@
#include "imstkPbdFEMConstraint.h"
#include "imstkPbdCollisionConstraint.h"
#include "imstkSPHBoundaryConditions.h"
/* #include "imstkSPHHemorrhage.h" */
#include "imstkInternalForceModelTypes.h"
#include "imstkFEMDeformableBodyModel.h"
#include "imstkRigidBodyState2.h"
......@@ -114,7 +113,6 @@
/*
* CollisionDetection
*/
/* #include "imstkCollisionDetection.h" */
#include "imstkCollisionData.h"
#include "imstkCollisionDetectionAlgorithm.h"
#include "imstkBidirectionalPlaneToSphereCD.h"
......@@ -200,7 +198,7 @@
namespace std {
%template(VectorInt) vector<int>;
%template(VectorSizet) vector<std::size_t>;
%template(VectorCollisionData) vector<imstk::CollisionElement>;
%template(VectorCollisionElement) vector<imstk::CollisionElement>;
}
%include "shared_ptr_instantiation.i"
......@@ -211,6 +209,7 @@ namespace std {
%include "std_function.i"
%include "callback.i"
/* rename these operators to "compute" due to lack of operator overloading */
%rename(compute) imstk::ImplicitFunctionGradient::operator();
%rename(compute) imstk::ImplicitFunctionCentralGradient::operator();
......@@ -271,6 +270,7 @@ namespace std {
*/
%include "../../../MeshIO/imstkMeshIO.h";
%template(readImageData) imstk::MeshIO::read<imstk::ImageData>;
%template(readPointSet) imstk::MeshIO::read<imstk::PointSet>;
%template(readSurfaceMesh) imstk::MeshIO::read<imstk::SurfaceMesh>;
%template(readTetrahedralMesh) imstk::MeshIO::read<imstk::TetrahedralMesh>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment