Struct GeometryVisualization

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 helper

  • start: The start point

  • end: The end point

  • thickness: of the line, if bigger 0, approximated by cylinder

  • arrowLength: wrt thickness

  • arrowWidth: wrt thickness

  • lseg: 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 helper

  • start: The start point

  • end: The end point

  • thickness: of the line, if bigger 0, approximated by cylinder

  • arrowLength: wrt thickness

  • arrowWidth: wrt thickness

  • lseg: 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 helper

  • start: The start point

  • end: The end point

  • thickness: of the line, if bigger 0, approximated by cylinder

  • arrowLength: wrt thickness

  • arrowWidth: wrt thickness

  • lseg: 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 helper

  • start: The start point

  • end: The end point

  • thickness: of the line, if bigger 0, approximated by cylinder

  • lseg: 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 helper

  • start: The start point

  • end: The end point

  • thickness: of the line, if bigger 0, approximated by cylinder

  • arrows: [ -1 | 0 | 1 | 2 ] = [ start | none | end | both ]

  • arrowLength: wrt halflength

  • arrowWidth: wrt thickness

  • lseg: 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 helper

  • surface: The surface to be drawn

  • gctx: The geometry context for which it is drawn

  • transform: An option additional transform

  • lseg: The number of segments for a full arch (if needed)

  • triangulate: The (optional) boolean diretive to triangulate the faces

  • color: 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 helper

  • surfaceArray: The surface to be drawn

  • gctx: The geometry context for which it is drawn

  • binning: The binning prescritotion, if empty, the grid is not drawn

  • transform: An option additional transform

  • lseg: The number of segments for a full arch (if needed)

  • triangulate: The (optional) boolean diretive to triangulate the faces

  • sfcolor: the (optional) color for the surfaces

  • gcolor: 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 helper

  • volume: The surface to be drawn

  • gctx: The geometry context for which it is drawn

  • transform: An option additional transform

  • lseg: The number of segments for a full arch (if needed)

  • triangulate: The (optional) boolean diretive to triangulate the faces

  • color: the (optional) color of the object to be written