The visible regions of a tape, as a shape to look at: its surfaces are the regions' surfaces, the internal ones between two regions included, found exactly along a ray.
More...
|
| | RegionView (const TapeType &a_tape) noexcept |
| | Every region visible, colored by region.
|
| |
| T | signedDistance (const Vec3T< T > &a_point) const noexcept |
| | The value: the function of the visible regions, as a subdomain's (see Tape::signedDistance(p, subdomains,
subdomain)): half the difference of the smallest function of a visible region and of one not visible; the largest value when none is visible.
|
| |
| DistanceQuality | getDistanceQuality () const noexcept |
| | The distance quality of the view's functions: the tape's (Tape::getDistanceQuality()), since they are made of its regions' values.
|
| |
| T | contourValue (const Vec3T< T > &a_point) const noexcept |
| | The field a section plane shows (its contours and lines of equal distance), its value (see contourSample()).
|
| |
| ContourSample< T > | contourSample (const Vec3T< T > &a_point) const noexcept |
| | The field a section plane shows (its contours and lines of equal distance): with a whole domain shown (RegionSettings::m_sectionDomain), the function of each point's own subdomain (see domainSample()), secondary in the excluded regions; with section regions set (RegionSettings::m_sectionRegions), their function as a subdomain's, what a cut-cell code cuts for it, zero on the subdomain's boundary alone, secondary outside it; without them, the distance to the nearest surface of a visible region (the smallest |function| of a visible region), zero on every visible region's surface, the interfaces between two of them included, which the value (the visible regions' outer surface) does not have, signed as the value. Negative inside.
|
| |
| uint32_t | sectionKey (const Vec3T< T > &a_point) const noexcept |
| | What a point is in, for a section plane's fill: its region's material, whatever the surfaces are colored by (the background's included, never drawn otherwise).
|
| |
| LeafRef< T > | closestLeaf (const Vec3T< T > &a_point) const noexcept |
| | The key of the region a point inside the view is in (for a cut face), as a leaf reference (only m_leaf is set).
|
| |
| HitT< T > | firstHit (const RayT< T > &a_ray, const T a_tMin, const T a_tMax, const RayOptions< T > &a_options) const noexcept |
| | The first crossing along a ray that touches a visible region (see the class description).
|
| |
| HitT< T > | firstSeenThrough (const RayT< T > &a_ray, const T a_tMin, const T a_tMax, const RayOptions< T > &a_options) const noexcept |
| | The first crossing along a ray on a surface seen through (setSeenThrough()), where firstHit() passes on: what a renderer draws translucent in front of what firstHit() finds.
|
| |
| RegionView | rebasedView (const Pool &a_pool) const |
| | The same view of the tape rebased onto another pool, a mirror of its own (for a device: see Tape::rebasedView()); the visibility, coloring and keys are kept.
|
| |
| SurfaceRef< T > | pieceAt (const Vec3T< T > &a_point, const Vec3T< T > &a_normal) const noexcept |
| | The piece of surface at a point a ray met (firstHit()): the surface, its part and label, and the regions on its two sides there, the region whose surface was seen the owner (SurfaceRef::m_ownerRegion) and the one across the neighbor, with their materials; what a click picks, for a surface group's selector (SurfaceSelector::piece()).
|
| |
| const TapeType & | getTape () const noexcept |
| | The tape the view shows.
|
| |
| BoundingVolumes::AABBT< T > | computeBoundingVolume () const noexcept |
| | The tape's box.
|
| |
| uint32_t | getNumRegions () const noexcept |
| | How many regions the tape has, the background included.
|
| |
| const RegionSettings & | getSettings () const noexcept |
| | What the view shows.
|
| |
| RegionView | withSettings (const RegionSettings &a_settings) const noexcept |
| | The same view, showing what other settings say (the renderer gives it its own, Render::Settings::m_regions).
|
| |
| HitT< T > | objectHit (const RayT< T > &a_ray, const T a_tMax, const RayOptions< T > &a_options) const noexcept |
| | The first crossing of the whole object's surface along a ray, from the tape's ray program, as firstHit() on the tape finds it without RayOptions::m_march (the program is traced whatever a_options.m_march says).
|
| |
| bool | showsWholeObject () const noexcept |
| | Whether the view shows the whole object's outer surface, as the tape itself is drawn: every region shown, none alone, nothing seen through, no surface group hidden, not only the selected surfaces. A ray from outside the object then meets the view's surface where it meets the tape's (only the keys differ), so that a renderer can trace the tape for what needs only where (shadows, occlusion).
|
| |
| bool | isVisible (const uint32_t a_region) const noexcept |
| | Whether a region is shown (the background never is).
|
| |
| bool | isSeenThrough (const uint32_t a_key) const noexcept |
| | Whether the surfaces with a key are seen through.
|
| |
| RegionView | withVisible (const uint32_t a_region, const bool a_visible) const noexcept |
| | The same view with a region shown or hidden (RegionSettings::setVisible()).
|
| |
| RegionView | withAllVisible () const noexcept |
| | The same view with every region shown.
|
| |
| RegionView | withOnly (const uint32_t a_region) const noexcept |
| | The same view with one region shown and the others hidden.
|
| |
| RegionView | withOnlyKey (const uint32_t a_key) const noexcept |
| | The same view, showing only the surfaces with a key (by the coloring); None shows them all.
|
| |
| RegionView | withSeenThrough (const uint32_t a_key, const bool a_through) const noexcept |
| | The same view with the surfaces of a key seen through, or opaque again (RegionSettings::setSeenThrough()).
|
| |
| RegionView | withNoneSeenThrough () const noexcept |
| | The same view with every surface opaque.
|
| |
| RegionView | withColoring (const RegionColoring a_coloring) const noexcept |
| | The same view, naming surfaces by another key (RegionSettings::setColoring()).
|
| |
| RegionView | withSurfaceGroups (const SurfaceGroups &a_groups) const noexcept |
| | The same view with a domain's surface groups (RegionColoring::SurfaceGroup colors by them).
|
| |
template<class TapeType>
class EBGeometry::RegionView< TapeType >
The visible regions of a tape, as a shape to look at: its surfaces are the regions' surfaces, the internal ones between two regions included, found exactly along a ray.
Along a ray, its crossings are the changes of region that touch a visible region: entering one, passing from one visible region to another (an internal surface, reached by seeing through the one in front), and leaving one for a hidden region (its far wall); changes between hidden regions are passed through. Each is found with Tape::firstRegionChange(), exactly where the shapes have ray forms, with the surface's own normal, outward of the region whose surface is seen. Its value (for a section plane, contours and shading) is the visible regions' subdomain function, negative exactly in them and zero only on their outer surface. Each crossing is named by the coloring (RegionColoring) in HitT::m_primitive, so a renderer coloring by primitive colors by region, material, surface label, surface, part or interface (the pair of regions on its two sides), and a viewer's pick reports it; a view can show only the surfaces with one key (withOnlyKey()), the interface between two regions alone, say, passing the others through. What is shown is a RegionSettings, which the renderer gives the view from its settings (Render::Settings::m_regions); the view's own (withSettings(), and the with... functions) serve where it is used outside a render. Up to 64 regions can be hidden; later ones are always shown. A value type: it holds the tape's handle, so the tape's pool must outlive it; rebasedView() views the same tape on a mirror of its pool, so Render::view(view, pool, ...) renders it on a device.
- Template Parameters
-