32 namespace visualization {
49 Margins(
int horiz_px,
int vert_px);
50 Margins(
int left_px,
int top_px,
int right_px,
int bottom_px);
66 static void debug_PrintPreferredSizes(
Layout1D* layout,
76 const std::vector<std::shared_ptr<Widget>>& children);
79 int GetSpacing()
const;
80 const Margins& GetMargins()
const;
83 void SetSpacing(
int spacing);
86 void SetMargins(
const Margins& margins);
93 void AddFixed(
int size);
118 int GetMinorAxisPreferredSize()
const;
119 void SetMinorAxisPreferredSize(
int size);
125 std::unique_ptr<Impl> impl_;
131 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
132 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
140 const std::vector<std::shared_ptr<Widget>>& children);
143 int GetPreferredWidth()
const;
144 void SetPreferredWidth(
int w);
164 void SetIsOpen(
bool is_open);
170 void SetFontId(
FontId font_id);
179 std::unique_ptr<Impl> impl_;
191 const std::vector<std::shared_ptr<Widget>>& children);
198 std::unique_ptr<Impl> impl_;
204 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
205 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
206 static std::shared_ptr<Horiz> MakeCentered(std::shared_ptr<Widget> w);
214 const std::vector<std::shared_ptr<Widget>>& children);
217 int GetPreferredHeight()
const;
218 void SetPreferredHeight(
int h);
231 int GetSpacing()
const;
232 const Margins& GetMargins()
const;
234 int GetPreferredWidth()
const;
235 void SetPreferredWidth(
int w);
243 std::unique_ptr<Impl> impl_;
void Draw(const std::vector< std::shared_ptr< geometry::Geometry3D >> &geometries, const std::string &window_name, int width, int height, const std::vector< DrawAction > &actions)
Definition: Draw.cpp:63
Lays out widgets vertically.
Definition: Layout.h:129
unsigned int FontId
Definition: Gui.h:87
ImGuiContext * context
Definition: Window.cpp:95
int size
Definition: FilePCD.cpp:59
Dir
Definition: Layout.h:64
int GetVert() const
Convenience function that returns top + bottom.
Definition: Layout.cpp:139
int GetHoriz() const
Convenience function that returns left + right.
Definition: Layout.cpp:137
Definition: PinholeCameraIntrinsic.cpp:35
int right
Definition: Layout.h:38
Definition: Layout.cpp:386
Margins()
Definition: Layout.cpp:130
int top
Definition: Layout.h:37
Lays out widgets horizontally.
Definition: Layout.h:202
int left
Definition: Layout.h:36
int bottom
Definition: Layout.h:39
Definition: Layout.cpp:567