/****************************************************************************** * Computes the bounding box of the visual representation of the modifier. ******************************************************************************/ Box3 SliceModifier::boundingBox(TimePoint time, ObjectNode* contextNode, ModifierApplication* modApp) { if(isBeingEdited()) return renderVisual(time, contextNode, nullptr); else return Box3(); }
String Label::getText (const bool returnActiveEditorContents) const { return (returnActiveEditorContents && isBeingEdited()) ? editor->getText() : textValue.toString(); }
/****************************************************************************** * Lets the modifier render itself into the viewport. ******************************************************************************/ void SliceModifier::render(TimePoint time, ObjectNode* contextNode, ModifierApplication* modApp, SceneRenderer* renderer, bool renderOverlay) { if(!renderOverlay && isBeingEdited() && renderer->isInteractive() && !renderer->isPicking()) renderVisual(time, contextNode, renderer); }