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.
 
#define CSO_ERROR(msg)
 Output macro for error messages; displays the file name and the line where the error occurred.
 
#define CSO_WARNING(msg)
 Output macro for warning messages; displays the file name and the line where the error occurred.
 
#define CSO_DEBUG(msg)
 Output macro for debug output.
 
#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.
 

Typedefs

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

Variables

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

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:724
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
@ ML_COUT
Definition mlTypeDefs.h:700

Output macro for debug output.

Definition at line 44 of file MLCSOIncludes.h.

Referenced by ml::CSOList::getCenterOfSelectedCSOs(), and ml::CSOList::getCenterOfSelectedGroups().

◆ 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:697

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.

Referenced by ml::CSOBoundingBox::print().

◆ 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:696

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

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

Definition at line 61 of file MLCSOIncludes.h.

◆ 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.