SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | List of all members
smtk::model::SelectionFootprint Struct Reference

Identify model components highlighted to display a selection. More...

#include <SelectionFootprint.h>

Inheritance diagram for smtk::model::SelectionFootprint:
[legend]
Collaboration diagram for smtk::model::SelectionFootprint:
[legend]

Public Member Functions

bool operator() (smtk::resource::PersistentObject &selectedObject, std::unordered_set< smtk::resource::PersistentObject * > &footprint, const smtk::geometry::Backend &backend) const override
 Add the "selection footprint" of selectedObject to the footprint set. More...
 
bool addComponentFootprint (smtk::model::Entity *ent, std::unordered_set< smtk::resource::PersistentObject * > &footprint, std::unique_ptr< smtk::geometry::Geometry > &geom, bool stopRecursingAtGeometry=true) const
 

Detailed Description

Identify model components highlighted to display a selection.

Member Function Documentation

◆ operator()()

bool smtk::model::SelectionFootprint::operator() ( smtk::resource::PersistentObject selectedObject,
std::unordered_set< smtk::resource::PersistentObject * > &  footprint,
const smtk::geometry::Backend backend 
) const
inlineoverride

Add the "selection footprint" of selectedObject to the footprint set.

If a model entity has geometry, it is its own footprint. Otherwise,

  1. If it is a cell, we add its boundaries (if they have geometry)
  2. If it is a group, we add its members' footprints.
  3. If it is a model, we add its free cells and all their boundaries.

Returns true if at least one persistent object was added to (or was already in) the footprint set — either selectedObject itself or some other object.


The documentation for this struct was generated from the following file: