MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / drawObject_

Method drawObject_

source/MRViewer/MRRibbonSceneObjectsListDrawer.cpp:153–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153bool RibbonSceneObjectsListDrawer::drawObject_( Object& object, const std::string& uniqueStr, int depth )
154{
155 const bool hasRealChildren = !object.isAncillary() && objectHasSelectableChildren( object );
156
157 auto isOpened = drawTreeOpenedState_( object, !hasRealChildren, uniqueStr, depth );
158 ImGui::SameLine();
159 drawObjectLine_( object, uniqueStr, isOpened );
160
161 // update last sibling
162 if ( lastDrawnSibling_.size() <= depth )
163 lastDrawnSibling_.resize( depth + 1 );
164 lastDrawnSibling_[depth] = { ImGui::GetCursorScreenPos().y,currentElementId_ };
165 ++currentElementId_;
166
167 return isOpened;
168}
169
170bool RibbonSceneObjectsListDrawer::drawSkippedObject_( Object& object, const std::string& uniqueStr, int depth )
171{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected