Struct GeometryVisualization¶
Defined in File GeometryVisualization.hpp
Struct Documentation¶
-
struct
Acts
::
GeometryVisualization
¶ Public Static Functions
-
void
drawArrowBackward
(IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, double arrowLength, double arrowWidth, size_t lseg = 72, const IVisualization::ColorType &color = {120, 120, 120})¶ Convenience function : arrow pointing back.
- Parameters
helper
: [in, out] The visualization helperstart
: The start pointend
: The end pointthickness
: of the line, if bigger 0, approximated by cylinderarrowLength
: wrt thicknessarrowWidth
: wrt thicknesslseg
: The number of segments for a full arch (if needed)color
: the (optional) color of the object to be written
-
void
drawArrowForward
(IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, double arrowLength, double arrowWidth, size_t lseg = 72, const IVisualization::ColorType &color = {120, 120, 120})¶ Convenience function : arrow pointing forwad.
- Parameters
helper
: [in, out] The visualization helperstart
: The start pointend
: The end pointthickness
: of the line, if bigger 0, approximated by cylinderarrowLength
: wrt thicknessarrowWidth
: wrt thicknesslseg
: The number of segments for a full arch (if needed)color
: the (optional) color of the object to be written
-
void
drawArrowsBoth
(IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, double arrowLength, double arrowWidth, size_t lseg = 72, const IVisualization::ColorType &color = {120, 120, 120})¶ Convenience function : arrow pointing both directions.
- Parameters
helper
: [in, out] The visualization helperstart
: The start pointend
: The end pointthickness
: of the line, if bigger 0, approximated by cylinderarrowLength
: wrt thicknessarrowWidth
: wrt thicknesslseg
: The number of segments for a full arch (if needed)color
: the (optional) color of the object to be written
-
void
drawSegment
(IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, size_t lseg = 72, const IVisualization::ColorType &color = {20, 120, 120})¶ Convenience function : line.
- Parameters
helper
: [in, out] The visualization helperstart
: The start pointend
: The end pointthickness
: of the line, if bigger 0, approximated by cylinderlseg
: The number of segments for a full arch (if needed)color
: the (optional) color of the object to be written
-
void
drawSegmentBase
(IVisualization &helper, const Vector3D &start, const Vector3D &end, double thickness, int arrows = 0, double arrowLength = 0., double arrowWidth = 0., size_t lseg = 72, const IVisualization::ColorType &color = {120, 120, 120})¶ Helper method to draw lines - base for all lines.
- Parameters
helper
: [in, out] The visualization helperstart
: The start pointend
: The end pointthickness
: of the line, if bigger 0, approximated by cylinderarrows
: [ -1 | 0 | 1 | 2 ] = [ start | none | end | both ]arrowLength
: wrt halflengtharrowWidth
: wrt thicknesslseg
: The number of segments for a full arch (if needed)color
: the (optional) color of the object to be written
-
void
drawSurface
(IVisualization &helper, const Surface &surface, const GeometryContext &gctx, const Transform3D &transform = Transform3D::Identity(), size_t lseg = 72, bool triangulate = false, const IVisualization::ColorType &color = {120, 120, 120})¶ Helper method to Surface objects.
- Parameters
helper
: [in, out] The visualization helpersurface
: The surface to be drawngctx
: The geometry context for which it is drawntransform
: An option additional transformlseg
: The number of segments for a full arch (if needed)triangulate
: The (optional) boolean diretive to triangulate the facescolor
: the (optional) color of the object to be written
-
void
drawSurfaceArray
(IVisualization &helper, const SurfaceArray &surfaceArray, const GeometryContext &gctx, std::vector<BinningValue> binning = {}, const Transform3D &transform = Transform3D::Identity(), size_t lseg = 72, bool triangulate = false, const IVisualization::ColorType &sfcolor = {120, 120, 120}, const IVisualization::ColorType &gcolor = {200, 0, 0})¶ Helper method to Surface objects.
- Parameters
helper
: [in, out] The visualization helpersurfaceArray
: The surface to be drawngctx
: The geometry context for which it is drawnbinning
: The binning prescritotion, if empty, the grid is not drawntransform
: An option additional transformlseg
: The number of segments for a full arch (if needed)triangulate
: The (optional) boolean diretive to triangulate the facessfcolor
: the (optional) color for the surfacesgcolor
: the (otional) color of the grid
-
void
drawVolume
(IVisualization &helper, const AbstractVolume &volume, const GeometryContext &gctx, const Transform3D &transform = Transform3D::Identity(), size_t lseg = 72, bool triangulate = false, const IVisualization::ColorType &color = {120, 120, 120})¶ Helper method for volume objects.
- Parameters
helper
: [in, out] The visualization helpervolume
: The surface to be drawngctx
: The geometry context for which it is drawntransform
: An option additional transformlseg
: The number of segments for a full arch (if needed)triangulate
: The (optional) boolean diretive to triangulate the facescolor
: the (optional) color of the object to be written
-
void