Skip to content
Snippets Groups Projects
Commit 332c0093 authored by pospelov's avatar pospelov
Browse files

Merge branch 'PythonAPI' into develop

parents c17449c7 c091ff42
No related branches found
No related tags found
No related merge requests found
Showing
with 109 additions and 23 deletions
......@@ -65,9 +65,9 @@ class IFormFactor : public ISample
std::vector<IFormFactor *>& form_factors,
std::vector<double>& probabilities,
size_t nbr_samples) const {
(void)form_factors; // to prevent unused-variable warning
(void)probabilities; // to prevent unused-variable warning
(void)nbr_samples; // to prevent unused-variable warning
(void)form_factors;
(void)probabilities;
(void)nbr_samples;
}
};
......@@ -80,14 +80,12 @@ inline double IFormFactor::getVolume() const
inline double IFormFactor::getHeight() const
{
double result = std::pow(getVolume(), 1.0/3.0);
return result;
return std::pow(getVolume(), 1.0/3.0);
}
inline double IFormFactor::getRadius() const
{
double result = std::sqrt(getVolume()/getHeight()/M_PI);
return result;
return std::sqrt(getVolume()/getHeight()/M_PI);
}
#endif // IFORMFACTOR_H
......
......@@ -15,6 +15,7 @@
#ifndef GEOMETRY_ITRANSFROM3D_H
#define GEOMETRY_ITRANSFROM3D_H
#include "Types.h"
#include "BasicVector3D.h"
#include <boost/shared_ptr.hpp>
......@@ -51,6 +52,13 @@ class ITransform3D {
};
//class PTransform3DWrapper {
//public:
// PTransform3D
//};
} // namespace Geometry
#endif /* GEOMETRY_ITRANSFROM3D_H */
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef Beam_hpp__pyplusplus_wrapper
#define Beam_hpp__pyplusplus_wrapper
void register_Beam_class();
#endif//Beam_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef Bin1D_hpp__pyplusplus_wrapper
#define Bin1D_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef Bin1DCVector_hpp__pyplusplus_wrapper
#define Bin1DCVector_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef Crystal_hpp__pyplusplus_wrapper
#define Crystal_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef Detector_hpp__pyplusplus_wrapper
#define Detector_hpp__pyplusplus_wrapper
void register_Detector_class();
#endif//Detector_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
#ifndef DiffuseDWBASimulation_hpp__pyplusplus_wrapper
#define DiffuseDWBASimulation_hpp__pyplusplus_wrapper
void register_DiffuseDWBASimulation_class();
#endif//DiffuseDWBASimulation_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
#ifndef DiffuseParticleInfo_hpp__pyplusplus_wrapper
#define DiffuseParticleInfo_hpp__pyplusplus_wrapper
void register_DiffuseParticleInfo_class();
#endif//DiffuseParticleInfo_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FTDistribution2DCauchy_hpp__pyplusplus_wrapper
#define FTDistribution2DCauchy_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorBox_hpp__pyplusplus_wrapper
#define FormFactorBox_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorCone_hpp__pyplusplus_wrapper
#define FormFactorCone_hpp__pyplusplus_wrapper
void register_FormFactorCone_class();
#endif//FormFactorCone_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorCrystal_hpp__pyplusplus_wrapper
#define FormFactorCrystal_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorCylinder_hpp__pyplusplus_wrapper
#define FormFactorCylinder_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorDecoratorDebyeWaller_hpp__pyplusplus_wrapper
#define FormFactorDecoratorDebyeWaller_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorEllipsoid_hpp__pyplusplus_wrapper
#define FormFactorEllipsoid_hpp__pyplusplus_wrapper
void register_FormFactorEllipsoid_class();
#endif//FormFactorEllipsoid_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorFullSphere_hpp__pyplusplus_wrapper
#define FormFactorFullSphere_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorFullSpheroid_hpp__pyplusplus_wrapper
#define FormFactorFullSpheroid_hpp__pyplusplus_wrapper
void register_FormFactorFullSpheroid_class();
#endif//FormFactorFullSpheroid_hpp__pyplusplus_wrapper
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorGauss_hpp__pyplusplus_wrapper
#define FormFactorGauss_hpp__pyplusplus_wrapper
......
// This file has been generated by Py++.
// BornAgain: simulate and fit scattering at grazing incidence
//! @brief automatically generated boost::python code for PythonCoreAPI
#ifndef FormFactorHemiSpheroid_hpp__pyplusplus_wrapper
#define FormFactorHemiSpheroid_hpp__pyplusplus_wrapper
void register_FormFactorHemiSpheroid_class();
#endif//FormFactorHemiSpheroid_hpp__pyplusplus_wrapper
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