C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
model_entity.h File Reference

Geometric model. More...

#include <model_item.h>
#include <vector>

Classes

class  MbModel
 Geometric model. More...
 
class  MbModel::ItemIterator
 Simple iterator on objects of model. More...
 
class  MbModel::ItemConstIterator
 Constant iterator on objects of the model. More...
 

Functions

bool ReadModelItems (reader &, MbModel &)
 Read MbModel model from reader stream. More...
 
void ReadModelItemsFromTree (reader &in, const c3d::IModelTree *tree, std::vector< SPtr< MbItem > > &items)
 Read items, defined in the given model tree, from a stream. More...
 
void ReadModelItemsFromTree (reader &in, const c3d::IModelTreeNode *node, MbModel &model, bool addAttr=false)
 Read items, defined in a subtree with a root at the given node, from a stream. More...
 
void WriteModelItems (writer &, const MbModel &)
 Write MbModel model to writer stream. More...
 

Detailed Description

Geometric model.

Function Documentation

◆ ReadModelItemsFromTree() [1/2]

void ReadModelItemsFromTree ( reader in,
const c3d::IModelTree tree,
std::vector< SPtr< MbItem > > &  items 
)

Read items, defined in the given model tree, from a stream.

Read items, defined in the given model tree including its root(s), from a stream.

Parameters
[in]in- Stream to read from.
[in]tree- Model tree.
[out]items- Read objects.

◆ ReadModelItemsFromTree() [2/2]

void ReadModelItemsFromTree ( reader in,
const c3d::IModelTreeNode node,
MbModel model,
bool  addAttr = false 
)

Read items, defined in a subtree with a root at the given node, from a stream.

Read items, defined in a subtree with a root at the given node, from a stream, excluding the node itself. If defined by the flag (addAttr == true), attributes are read from an object defined by the given node and added to the model.

Parameters
[in]in- Stream to read from.
[in]node- Node of Model tree.
[out]model- Model where to add read objects.
[in]addAttr- Attributes read flag.