EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
EBGeometry_Viewer.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Robert Marskar <robert.marskar@sintef.no>
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
24#ifndef EBGEOMETRY_VIEWER_HPP
25#define EBGEOMETRY_VIEWER_HPP
26
27// Our includes
28#include "EBGeometry_Expr.hpp"
29#include "EBGeometry_Render.hpp"
30
31namespace EBGeometry::Render {
32
44template <class S>
45inline void
46view(const S& a_shape, int a_argc, char** a_argv);
47
59template <class S>
60inline void
61view(const S& a_shape,
62 const Camera<ShapePrecision<S>>& a_camera,
63 const Settings<ShapePrecision<S>>& a_settings,
64 int a_argc,
65 char** a_argv);
66
78template <class S>
79inline void
80view(const S& a_shape, const S& a_deviceShape, int a_argc, char** a_argv);
81
94template <class S>
95inline void
96view(const S& a_shape,
97 const S& a_deviceShape,
98 const Camera<ShapePrecision<S>>& a_camera,
99 const Settings<ShapePrecision<S>>& a_settings,
100 int a_argc,
101 char** a_argv);
102
118template <class S>
119inline void
120view(const S& a_shape, Pool& a_pool, int a_argc, char** a_argv);
121
134template <class S>
135inline void
136view(const S& a_shape,
137 Pool& a_pool,
138 const Camera<ShapePrecision<S>>& a_camera,
139 const Settings<ShapePrecision<S>>& a_settings,
140 int a_argc,
141 char** a_argv);
142
143} // namespace EBGeometry::Render
144
145#include "EBGeometry_ViewerImplem.hpp"
146
147#endif
The tape's front end: Expr, a host-side value that describes a composed object, and the free function...
A renderer for looking at shapes: Camera, Settings, Image and Renderer, in namespace Render.
void view(const S &a_shape, int a_argc, char **a_argv)
Look at a shape in a window, from a camera fitted to its box, with default settings.
Growable bump arena over a MemoryResource.
Definition EBGeometry_Pool.hpp:183
typename ExprDetail::ShapeInfo< S >::precision ShapePrecision
The precision of a shape type: T for a shape whose box type is AABBT<T>.
Definition EBGeometry_Expr.hpp:158
A camera orbiting a target point.
Definition EBGeometry_Render.hpp:122
What to render and how. A plain value; every field has a default.
Definition EBGeometry_Render.hpp:241