ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvHObject.h File Reference
#include "BoundingBox.h"
#include "ecvColorTypes.h"
#include "ecvDrawableObject.h"
#include "ecvGLMatrix.h"
#include "ecvGenericDisplayTools.h"
#include "ecvObject.h"
Include dependency graph for ecvHObject.h:

Go to the source code of this file.

Classes

class  ccHObject
 Hierarchical CLOUDVIEWER Object. More...
 

Macros

#define ccHObject_recursive_call0(baseName, recursiveName)
 
#define ccHObject_recursive_call1(baseName, param1Type, recursiveName)
 

Functions

void ConvertToGroup (const ccHObject::Container &origin, ccHObject &dest, int dependencyFlags=ccHObject::DP_NONE)
 Puts all entities inside a container in a group. More...
 

Macro Definition Documentation

◆ ccHObject_recursive_call0

#define ccHObject_recursive_call0 (   baseName,
  recursiveName 
)
Value:
inline virtual void recursiveName() { \
baseName(); \
for (Container::iterator it = m_children.begin(); \
it != m_children.end(); ++it) \
(*it)->recursiveName(); \
}

Definition at line 519 of file ecvHObject.h.

◆ ccHObject_recursive_call1

#define ccHObject_recursive_call1 (   baseName,
  param1Type,
  recursiveName 
)
Value:
inline virtual void recursiveName(param1Type p) { \
baseName(p); \
for (Container::iterator it = m_children.begin(); \
it != m_children.end(); ++it) \
(*it)->recursiveName(p); \
}

Definition at line 528 of file ecvHObject.h.

Function Documentation

◆ ConvertToGroup()

void ConvertToGroup ( const ccHObject::Container origin,
ccHObject dest,
int  dependencyFlags = ccHObject::DP_NONE 
)
inline

Puts all entities inside a container in a group.

Automatically removes siblings so as to get a valid hierarchy object.

Parameters
originorigin container
destdestination group
dependencyFlagsdefault dependency link for the children added to the group

Definition at line 742 of file ecvHObject.h.

References ccHObject::addChild(), and count.

Referenced by ccEntityAction::toggleProperty().