ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PdmsTools.cpp File Reference
#include "PdmsTools.h"
#include <QSet>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <CVMath.h>
Include dependency graph for PdmsTools.cpp:

Go to the source code of this file.

Macros

#define memalert(e, s)
 
#define memfail(e, s)
 
#define PDMS_SQR(a)   (a * a)
 

Typedefs

typedef QSet< PdmsObjects::GenericItem * > ElementsStack
 

Variables

static GroupElement defaultWorld (PDMS_WORLD)
 
static ElementsStack s_elementsStack
 

Macro Definition Documentation

◆ memalert

#define memalert (   e,
 
)
Value:
std::cerr << "Memory alert [" << __FILE__ << ", line " << __LINE__ \
<< "] with size " << s << " : " << e.what() << std::endl;
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718

Definition at line 28 of file PdmsTools.cpp.

◆ memfail

#define memfail (   e,
 
)
Value:
memalert(e, s); \
abort();
#define memalert(e, s)
Definition: PdmsTools.cpp:28

Definition at line 31 of file PdmsTools.cpp.

◆ PDMS_SQR

#define PDMS_SQR (   a)    (a * a)

Definition at line 36 of file PdmsTools.cpp.

Typedef Documentation

◆ ElementsStack

Definition at line 45 of file PdmsTools.cpp.

Variable Documentation

◆ defaultWorld

GroupElement defaultWorld(PDMS_WORLD) ( PDMS_WORLD  )
static

◆ s_elementsStack