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: BSD-3-Clause
4
25#ifndef EBGEOMETRY_VIEWER_HPP
26#define EBGEOMETRY_VIEWER_HPP
27
28// Std includes
29#include <cstdint>
30#include <vector>
31
32// Our includes
34#include "EBGeometry_Expr.hpp"
37#include "EBGeometry_Render.hpp"
38
39namespace EBGeometry::Render {
40
52template <class S>
53inline void
54view(const S& a_shape, int a_argc, char** a_argv);
55
67template <class S>
68inline void
69view(const S& a_shape,
70 const Camera<ShapePrecision<S>>& a_camera,
71 const Settings<ShapePrecision<S>>& a_settings,
72 int a_argc,
73 char** a_argv);
74
86template <class S>
87inline void
88view(const S& a_shape, const S& a_deviceShape, int a_argc, char** a_argv);
89
102template <class S>
103inline void
104view(const S& a_shape,
105 const S& a_deviceShape,
106 const Camera<ShapePrecision<S>>& a_camera,
107 const Settings<ShapePrecision<S>>& a_settings,
108 int a_argc,
109 char** a_argv);
110
126template <class S>
127inline void
128view(const S& a_shape, Pool& a_pool, int a_argc, char** a_argv);
129
142template <class S>
143inline void
144view(const S& a_shape,
145 Pool& a_pool,
146 const Camera<ShapePrecision<S>>& a_camera,
147 const Settings<ShapePrecision<S>>& a_settings,
148 int a_argc,
149 char** a_argv);
150
165template <class S>
166inline void
167view(const S& a_shape,
168 const Camera<ShapePrecision<S>>& a_camera,
169 const Settings<ShapePrecision<S>>& a_settings,
170 const RegionNames& a_names,
171 int a_argc,
172 char** a_argv);
173
188template <class S>
189inline void
190view(const S& a_shape,
191 Pool& a_pool,
192 const Camera<ShapePrecision<S>>& a_camera,
193 const Settings<ShapePrecision<S>>& a_settings,
194 const RegionNames& a_names,
195 int a_argc,
196 char** a_argv);
197
203template <class S>
205{
211
215 std::vector<uint32_t> m_wholeRegion;
216};
217
239template <class S>
240inline void
241view(const S& a_shape,
242 Pool& a_pool,
243 const Camera<ShapePrecision<S>>& a_camera,
244 const Settings<ShapePrecision<S>>& a_settings,
245 const RegionNames& a_names,
246 const std::vector<DomainShape<S>>& a_domains,
247 int a_argc,
248 char** a_argv);
249
250} // namespace EBGeometry::Render
251
252#include "EBGeometry_ViewerImplem.hpp"
253
254#endif
The viewer's exploded view of regions: each region moved by its own offset, as in an assembly drawing...
The tape's front end: Expr, a host-side value that describes a composed object, and the free function...
RegionNames: the names of an object's regions, materials, surfaces and surface groups,...
RegionView: the visible regions of a tape (see Overlay()) as a shape to look at, its surfaces those o...
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:205
The names of an object's regions, materials, surfaces and surface labels, from its expression's index...
Definition EBGeometry_RegionNames.hpp:39
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:176
A camera orbiting a target point.
Definition EBGeometry_Render.hpp:208
One domain's own shape, for the viewer's cost views of the domain shown alone (see view(const S&,...
Definition EBGeometry_Viewer.hpp:205
S m_shape
The shape: a RegionView of a tape compiled from the domain's own object (Language::DomainObject,...
Definition EBGeometry_Viewer.hpp:210
std::vector< uint32_t > m_wholeRegion
The whole shape's region of each of its regions (RegionNeighborhood::wholeRegion()).
Definition EBGeometry_Viewer.hpp:215
What to render and how. A plain value; every field has a default.
Definition EBGeometry_Render.hpp:327