Esempio n. 1
0
//==============================================================================
void InteractiveFrame::deleteAllVisualizationShapes()
{
  removeAllShapeFrames();

  for(size_t i=0; i<InteractiveTool::NUM_TYPES; ++i)
  {
    for(size_t j=0; j<3; ++j)
    {
      InteractiveTool* tool = mTools[i][j];
      tool->removeAllShapeFrames();
    }
  }
}
Esempio n. 2
0
void CollisionGroup::removeShapeFramesOf(
    const CollisionGroup* otherGroup, const Others*... others)
{
  assert(otherGroup);

  if (otherGroup)
  {
    if (this == otherGroup)
    {
      removeAllShapeFrames();
      return;
    }

    for (const auto& pair : otherGroup->mShapeFrameMap)
      removeShapeFrame(pair.first);
  }

  removeShapeFramesOf(others...);
}