29#define CSO_PRINT(msg) \
31 std::stringstream strstream; \
33 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_COUT, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, \
34 NULL, NULL, ML_RESULT_OK); \
38#define CSO_ERROR(msg) \
40 std::stringstream strstream; \
42 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_ERROR, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, \
43 NULL, NULL, ML_RESULT_OK); \
47#define CSO_WARNING(msg) \
49 std::stringstream strstream; \
51 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_WARNING, "CSO", "", "", strstream.str(), "", __FILE__, \
52 __LINE__, NULL, NULL, ML_RESULT_OK); \
56#define CSO_DEBUG(msg) \
58 std::stringstream strstream; \
60 ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_COUT, "CSO Debug", "", "", strstream.str(), "", __FILE__, \
61 __LINE__, NULL, NULL, ML_RESULT_OK); \
68#include <ThirdPartyWarningsDisable.h>
69#include <boost/unordered_map.hpp>
70#include <ThirdPartyWarningsRestore.h>
74#define MAX_VOXEL_BOUNDING_BOX_CACHE_SIZE 12
std::map< unsigned int, unsigned int > CSOIdToCSOIdMap
Defines a map type to map old CSOIds to new CSOIds when merging CSOLists.
const unsigned int INVALID_CSO_ID
Defines a CSO/CSOGroup ID that is invalid.
std::vector< unsigned int > CSOIdVector
Defines a vector to hold CSO and CSOGroup IDs.
const int CSO_VERSION
Global include file for MLCSO library with definitions and includes.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Struct for retrieving a hash key for a Matrix4 that is used in the caches for voxel bounding boxes.
size_t operator()(const MatrixHashPair &hashPair) const
Struct for storing hash information for hashing by a Matrix4 and its precomputed hash key.
bool operator==(const MatrixHashPair &other) const