|
DHART
|
#include <vector>#include <array>
Include dependency graph for cinterface_utils.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | HF |
| Perform human scale analysis on 3D environments. | |
Macros | |
| #define | C_INTERFACE extern "C" __declspec(dllexport) int |
Functions | |
| std::vector< std::array< float, 3 > > | ConvertRawFloatArrayToPoints (const float *raw_array, int size) |
| Convert a raw array from an external caller to an organized vector of points More... | |
| std::vector< std::array< int, 3 > > | ConvertRawIntArrayToPoints (const int *raw_array, int size) |
| Convert a raw array from an external caller to an organized vector of points More... | |
| C_INTERFACE | DestroyFloatVector (std::vector< float > *float_vector) |
| Delete a float vector that's pointed to by float_vector More... | |
| C_INTERFACE | DestroyIntVector (std::vector< int > *int_vector) |
| Delete a vector of integers. More... | |
| C_INTERFACE | DestroyCharArray (char *char_array) |
| template<typename T > | |
| void | DeleteRawPtr (T *ptr) |
| Delete some object pointed to by ptr More... | |
| #define C_INTERFACE extern "C" __declspec(dllexport) int |
Definition at line 18 of file cinterface_utils.h.
| std::vector< std::array< float, 3 > > ConvertRawFloatArrayToPoints | ( | const float * | raw_array, |
| int | size | ||
| ) |
Convert a raw array from an external caller to an organized vector of points
| raw_array | Pointer to the external array |
| size | The number of points stored in the raw array, equal to the total number of floats / 3 |
| raw_array | Pointer to the external array |
| size | The number of points stored in the raw array, equal to the total number of floats / 3 |
Definition at line 24 of file CInterface.cpp.
Referenced by CastMultipleDirectionsOneOrigin(), CastMultipleOriginsOneDirection(), CastMultipleRays(), CastOcclusionRays(), CastRaysDistance(), CreateVisibilityGraphAllToAll(), CreateVisibilityGraphAllToAllUndirected(), CreateVisibilityGraphGroupToGroup(), SphereicalViewAnalysisAggregateFlat(), and SphericalViewAnalysisNoAggregateFlat().
Here is the caller graph for this function:| std::vector< std::array< int, 3 > > ConvertRawIntArrayToPoints | ( | const int * | raw_array, |
| int | size | ||
| ) |
Convert a raw array from an external caller to an organized vector of points
| raw_array | Pointer to the external array |
| size | The number of points stored in the raw array, equal to the total number of ints / 3 |
Definition at line 35 of file CInterface.cpp.
|
inline |
Delete some object pointed to by ptr
| T | datatype of ptr |
Definition at line 112 of file cinterface_utils.h.
Referenced by DestroyFloatVector(), DestroyIntVector(), DestroyMeshInfo(), DestroyPath(), and DestroyRayResultVector().
Here is the caller graph for this function:| C_INTERFACE DestroyCharArray | ( | char * | char_array | ) |
Definition at line 39 of file cinterface_utils.cpp.
References HF::Exceptions::OK.
| C_INTERFACE DestroyFloatVector | ( | std::vector< float > * | float_vector | ) |
Delete a float vector that's pointed to by float_vector
Definition at line 27 of file cinterface_utils.cpp.
References DeleteRawPtr(), and HF::Exceptions::OK.
Here is the call graph for this function:| C_INTERFACE DestroyIntVector | ( | std::vector< int > * | int_vector | ) |
Delete a vector of integers.
| int_vector | A pointer to a vector of integers to delete. |
HF_STATUS.OK on completion. Definition at line 33 of file cinterface_utils.cpp.
References DeleteRawPtr(), and HF::Exceptions::OK.
Here is the call graph for this function: