src/Geometry.cpp
bool Geometry::drawable(unsigned int idx)
{
  expandHidden();
  if (idx >= geom.size()) return false;
  if (!geom[idx]->draw->visible) return false;
  //Within bounds and not hidden
  if (geom[idx]->count() > 0 && !hidden[idx])
  {
    //Not filtered by viewport?
    if (!view->filtered) return true;

    //Search viewport object set
    if (view->hasObject(geom[idx]->draw))
      return true;

  }
  return false;
}
//Returns true if passed geometry element index is drawable
//ie: has data, in range, not hidden and in viewport object list
Returns true if passed geometry element index is drawable
ie: has data, in range, not hidden and in viewport object list
Returns true if passed geometry element index is drawable ie : has data in range not hidden and in viewport object list
bool Geometry::drawable(unsigned int idx)
{
  expandHidden();
  if (idx >= geom.size()) return false;
  if (!geom[idx]->draw->visible) return false;
  if (geom[idx]->count() > 0 && !hidden[idx])
  {
    if (!view->filtered) return true;
    if (view->hasObject(geom[idx]->draw))
      return true;
  }
  return false;
}
bool Geometry :: drawable ( unsigned int idx ) { expandHidden ( ) ; if ( idx >= geom . size ( ) ) return false ; if ( ! geom [ idx ] -> draw -> visible ) return false ; if ( geom [ idx ] -> count ( ) > 0 && ! hidden [ idx ] ) { if ( ! view -> filtered ) return true ; if ( view -> hasObject ( geom [ idx ] -> draw ) ) return true ; } return false ; }
Returns true if passed geometry element index is drawable
ie: has data, in range, not hidden and in viewport object list
Returns true if passed geometry element index is drawable ie : has data in range not hidden and in viewport object list
//Within bounds and not hidden //Not filtered by viewport? //Search viewport object set