Search in sources :

Example 1 with RenderableComponentList

use of artisynth.core.modelbase.RenderableComponentList in project artisynth_core by artisynth.

the class SelectionPopup method isVisible.

private boolean isVisible(RenderableComponent rcomp) {
    RenderProps props = rcomp.getRenderProps();
    if (props != null) {
        return props.isVisible();
    }
    CompositeComponent parent = rcomp.getParent();
    if (parent instanceof RenderableComponentList) {
        return ((RenderableComponentList<?>) parent).rendersSubComponents();
    }
    return false;
}
Also used : RenderableComponentList(artisynth.core.modelbase.RenderableComponentList) RenderProps(maspack.render.RenderProps) MutableCompositeComponent(artisynth.core.modelbase.MutableCompositeComponent) CompositeComponent(artisynth.core.modelbase.CompositeComponent)

Aggregations

CompositeComponent (artisynth.core.modelbase.CompositeComponent)1 MutableCompositeComponent (artisynth.core.modelbase.MutableCompositeComponent)1 RenderableComponentList (artisynth.core.modelbase.RenderableComponentList)1 RenderProps (maspack.render.RenderProps)1