MeVisLab Toolbox Reference
MLCSOIncludes.h File Reference
#include "MLCSOSystem.h"
#include <mlModuleIncludes.h>
#include <mlModule.h>
#include <fstream>
#include <mlUnicode.h>
#include <ThirdPartyWarningsDisable.h>
#include <boost/unordered_map.hpp>
#include <ThirdPartyWarningsRestore.h>

Go to the source code of this file.

Classes

struct  MatrixHashPair
 Struct for storing hash information for hashing by a Matrix4 and its precomputed hash key. More...
 
struct  MatrixHashFunction
 Struct for retrieving a hash key for a Matrix4 which is used in the caches for voxel bounding boxes. More...
 

Macros

#define CSO_PRINT(msg)
 Output macro for testing. More...
 
#define CSO_ERROR(msg)
 Output macro for error messages; displays the file name and the line where the error occurred. More...
 
#define CSO_WARNING(msg)
 Output macro for warning messages; displays the file name and the line where the error occurred. More...
 
#define CSO_DEBUG(msg)
 Output macro for debug output. More...
 
#define MAX_VOXEL_BOUNDING_BOX_CACHE_SIZE   12
 The voxel bounding box caches for CSOPathPoints and for the CSOs themselves can store this amount of bounding boxes before they are cleared. More...
 

Typedefs

typedef std::map< unsigned int, unsigned int > CSOIdToCSOIdMap
 Defines a map type to map old CSOIds to new CSOIds when merging CSOLists. More...
 
typedef std::vector< unsigned int > CSOIdVector
 Defines a vector to hold CSO and CSOGroup ids. More...
 

Variables

const int CSO_VERSION = 6
 Global include file for MLCSO library with definitions and includes. More...
 
const unsigned int INVALID_CSO_ID = static_cast<unsigned int>(-1)
 Defines a CSO/CSOGroup id that is invalid. More...
 

Macro Definition Documentation

◆ CSO_DEBUG

#define CSO_DEBUG (   msg)
Value:
{ std::stringstream strstream; \
strstream << msg; \
ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_COUT, "CSO Debug", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); }
#define ML_RESULT_OK
No error. Everything seems to be okay.
Definition: mlTypeDefs.h:826
void printAndNotify(MLMessageType messageType, const std::string &libraryPrefix, const std::string &fPrefix, const std::string &functionName, const std::string &reason, const std::string &handling="", const std::string &file="", int line=-1, const void *dumpObj=nullptr, const RuntimeType *dumpObjRT=nullptr, MLErrorCode errCode=ML_RESULT_OK) const
Core error printing function used by all other functions.
@ ML_COUT
Definition: mlTypeDefs.h:802
ML_UTILS_EXPORT ErrorOutput MLErrorOutput
This is a singleton used for all ML Error input and output;.

Output macro for debug output.

Definition at line 44 of file MLCSOIncludes.h.

◆ CSO_ERROR

#define CSO_ERROR (   msg)
Value:
{ std::stringstream strstream; \
strstream << msg; \
ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_ERROR, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); }
@ ML_ERROR
Definition: mlTypeDefs.h:799

Output macro for error messages; displays the file name and the line where the error occurred.

Definition at line 34 of file MLCSOIncludes.h.

◆ CSO_PRINT

#define CSO_PRINT (   msg)
Value:
{ std::stringstream strstream; \
strstream << msg; \
ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_COUT, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); }

Output macro for testing.

Definition at line 29 of file MLCSOIncludes.h.

◆ CSO_WARNING

#define CSO_WARNING (   msg)
Value:
{ std::stringstream strstream; \
strstream << msg; \
ML_UTILS_NAMESPACE::MLErrorOutput.printAndNotify(ML_WARNING, "CSO", "", "", strstream.str(), "", __FILE__, __LINE__, NULL, NULL, ML_RESULT_OK); }
@ ML_WARNING
Definition: mlTypeDefs.h:798

Output macro for warning messages; displays the file name and the line where the error occurred.

Definition at line 39 of file MLCSOIncludes.h.

◆ MAX_VOXEL_BOUNDING_BOX_CACHE_SIZE

#define MAX_VOXEL_BOUNDING_BOX_CACHE_SIZE   12

The voxel bounding box caches for CSOPathPoints and for the CSOs themselves can store this amount of bounding boxes before they are cleared.

Definition at line 58 of file MLCSOIncludes.h.

Typedef Documentation

◆ CSOIdToCSOIdMap

typedef std::map<unsigned int, unsigned int> CSOIdToCSOIdMap

Defines a map type to map old CSOIds to new CSOIds when merging CSOLists.

Definition at line 61 of file MLCSOIncludes.h.

◆ CSOIdVector

typedef std::vector<unsigned int> CSOIdVector

Defines a vector to hold CSO and CSOGroup ids.

Definition at line 63 of file MLCSOIncludes.h.

Variable Documentation

◆ CSO_VERSION

const int CSO_VERSION = 6

Global include file for MLCSO library with definitions and includes.

The version number of the CSO library; is checked in the persistence methods.

Definition at line 21 of file MLCSOIncludes.h.

◆ INVALID_CSO_ID

const unsigned int INVALID_CSO_ID = static_cast<unsigned int>(-1)

Defines a CSO/CSOGroup id that is invalid.

Definition at line 65 of file MLCSOIncludes.h.