31 MRVIEWER_API
virtual void drawSceneContextMenu_(
const std::vector<std::shared_ptr<Object>>& selected,
const std::string& uniqueStr )
override;
40 MRVIEWER_API
virtual const char* getSceneItemIconByTypeName_(
const std::string& typeName )
const;
42 bool drawTreeOpenedState_(
Object&
object,
bool leaf,
const std::string& uniqueStr,
int depth );
43 void drawObjectLine_(
Object&
object,
const std::string& uniqueStr,
bool opened );
44 void drawEyeButton_(
Object&
object,
const std::string& uniqueStr,
bool frameHovered );
46 void drawHierarhyLine_(
const Vector2f& startScreenPos,
int depth,
bool skipped );
54 std::vector<LastDepthInfo> lastDrawnSibling_;
55 int currentElementId_{ 0 };
56 RibbonMenu* ribbonMenu_ =
nullptr;
57 bool closeContextOnChange_ =
true;
named object in the data model
Definition MRObject.h:62
class for drawing a list of scene objects in RibbonMenu style
Definition MRRibbonSceneObjectsListDrawer.h:16
class for drawing a list of scene objects (and handling interaction with it)
Definition MRSceneObjectsListDrawer.h:19
auto height(const Box< V > &box)
returns size along y axis
Definition MRBox.h:361
auto depth(const Box< V > &box)
returns size along z axis
Definition MRBox.h:368
void initRibbonMenu(RibbonMenu *ribbonMenu)
float screenPosY
Definition MRRibbonSceneObjectsListDrawer.h:50
virtual void draw(float height) override
virtual bool drawSkippedObject_(Object &object, const std::string &uniqueStr, int depth) override
draw dummy container for skipped object
virtual bool collapsingHeader_(const std::string &uniqueName, ImGuiTreeNodeFlags flags) override
override this to customize CollapsingHeader draw
bool getCloseContextOnChange()
get flag closing scene context menu on any change
Definition MRRibbonSceneObjectsListDrawer.h:25
void setCloseContextOnChange(bool deselect)
set closing scene context menu on any change
Definition MRRibbonSceneObjectsListDrawer.h:23
virtual void drawSceneContextMenu_(const std::vector< std::shared_ptr< Object > > &selected, const std::string &uniqueStr) override
Signal< void()> onDrawContextSignal
this signal is emitted each frame inside scene context window
Definition MRRibbonSceneObjectsListDrawer.h:28
virtual bool drawObject_(Object &object, const std::string &uniqueStr, int depth) override
override this to customize whole object line
virtual void drawCustomObjectPrefixInScene_(const Object &obj, bool opened) override
int ImGuiTreeNodeFlags
Definition MRSceneObjectsListDrawer.h:78
virtual std::string objectLineStrId_(const Object &object, const std::string &uniqueStr) override
only for bindings generation
Definition MRCameraOrientationPlugin.h:8