Struct Acts::GeometryView3D¶
-
struct GeometryView3D
Public Static Functions
-
static void drawArrowBackward(IVisualization3D &helper, const Vector3 &start, const Vector3 &end, double arrowLength, double arrowWidth, const ViewConfig &viewConfig = s_viewLine)
Convenience function : arrow pointing back.
- Parameters
helper – [inout] The visualization helper
start – The start point
end – The end point
arrowLength – wrt thickness
arrowWidth – wrt thickness
viewConfig – The drawing configuration for this segment
-
static void drawArrowForward(IVisualization3D &helper, const Vector3 &start, const Vector3 &end, double arrowLength, double arrowWidth, const ViewConfig &viewConfig = s_viewLine)
Convenience function : arrow pointing forward.
- Parameters
helper – [inout] The visualization helper
start – The start point
end – The end point
arrowLength – wrt thickness
arrowWidth – wrt thickness
viewConfig – The drawing configuration for this segment
-
static void drawArrowsBoth(IVisualization3D &helper, const Vector3 &start, const Vector3 &end, double arrowLength, double arrowWidth, const ViewConfig &viewConfig = s_viewLine)
Convenience function : arrow pointing both directions.
- Parameters
helper – [inout] The visualization helper
start – The start point
end – The end point
arrowLength – wrt thickness
arrowWidth – wrt thickness
viewConfig – The drawing configuration for this segment
-
static void drawDetectorVolume(IVisualization3D &helper, const Acts::Experimental::DetectorVolume &volume, const GeometryContext &gctx, const Transform3 &transform = Transform3::Identity(), const ViewConfig &connected = ViewConfig({0, 255, 0}), const ViewConfig &unconnected = ViewConfig({255, 0, 0}), const ViewConfig &viewConfig = s_viewSensitive)
Helper method to draw DetectorVolume objects.
- Parameters
helper – [inout] The visualization helper
volume – The DetectorVolume to be drawn
gctx – The geometry context for which it is drawn
transform – An option additional transform
connected – The config for connected portals
unconnected – The config for unconnected portals
viewConfig – The drawing configuration
-
static void drawLayer(IVisualization3D &helper, const Layer &layer, const GeometryContext &gctx, const ViewConfig &layerConfig = s_viewPassive, const ViewConfig &sensitiveConfig = s_viewSensitive, const ViewConfig &gridConfig = s_viewGrid, const std::string &outputDir = ".")
Helper method to draw AbstractVolume objects.
- Parameters
helper – [inout] The visualization helper
layer – The tracking layer to be drawn
gctx – The geometry context for which it is drawn
layerConfig – The drawing configuration for passive surfaces
sensitiveConfig – The drawing configuration for sensitive surfaces
gridConfig – The drawing configuration for grid display
outputDir – Directory to write to
-
static void drawPolyhedron(IVisualization3D &helper, const Polyhedron &polyhedron, const ViewConfig &viewConfig = s_viewVolume)
Helper method to draw Polyhedron objects.
- Parameters
helper – [inout] The visualization helper
polyhedron – The surface to be drawn
viewConfig – The drawing configuration
-
static void drawPortal(IVisualization3D &helper, const Experimental::Portal &portal, const GeometryContext &gctx, const Transform3 &transform = Transform3::Identity(), const ViewConfig &connected = ViewConfig({0, 255, 0}), const ViewConfig &disconnected = ViewConfig({255, 0, 0}))
Helper method to draw portals objects.
- Parameters
helper – [inout] The visualization helper
portal – The portal to be drawn
gctx – The geometry context for which it is drawn
transform – An option additional transform
connected – The config for connected portals
disconnected – The config for disconnected portals
-
static void drawSegment(IVisualization3D &helper, const Vector3 &start, const Vector3 &end, const ViewConfig &viewConfig = s_viewLine)
Convenience function : line.
- Parameters
helper – [inout] The visualization helper
start – The start point
end – The end point
viewConfig – The drawing configuration for this segment
-
static void drawSegmentBase(IVisualization3D &helper, const Vector3 &start, const Vector3 &end, int arrows = 0, double arrowLength = 0., double arrowWidth = 0., const ViewConfig &viewConfig = s_viewLine)
Helper method to draw lines - base for all lines.
- Parameters
helper – [inout] The visualization helper
start – The start point
end – The end point
arrows – [ -1 | 0 | 1 | 2 ] = [ start | none | end | both ]
arrowLength – wrt halflength
arrowWidth – wrt thickness
viewConfig – The drawing configuration for this segment
-
static void drawSurface(IVisualization3D &helper, const Surface &surface, const GeometryContext &gctx, const Transform3 &transform = Transform3::Identity(), const ViewConfig &viewConfig = s_viewSensitive)
Helper method to draw Surface objects.
- Parameters
helper – [inout] The visualization helper
surface – The surface to be drawn
gctx – The geometry context for which it is drawn
transform – An option additional transform
viewConfig – The drawing configuration
-
static void drawSurfaceArray(IVisualization3D &helper, const SurfaceArray &surfaceArray, const GeometryContext &gctx, const Transform3 &transform = Transform3::Identity(), const ViewConfig &sensitiveConfig = s_viewSensitive, const ViewConfig &passiveConfig = s_viewPassive, const ViewConfig &gridConfig = s_viewGrid, const std::string &outputDir = ".")
Helper method to draw SurfaceArray objects.
- Parameters
helper – [inout] The visualization helper
surfaceArray – The surface to be drawn
gctx – The geometry context for which it is drawn
transform – An option additional transform
sensitiveConfig – The drawing configuration for sensitive surfaces
passiveConfig – The drawing configuration for passive surfaces
gridConfig – The drawing configuration for grid
outputDir – Directory to write to
-
static void drawTrackingVolume(IVisualization3D &helper, const TrackingVolume &tVolume, const GeometryContext &gctx, const ViewConfig &containerView = s_viewVolume, const ViewConfig &volumeView = s_viewVolume, const ViewConfig &layerView = s_viewPassive, const ViewConfig &sensitiveView = s_viewSensitive, const ViewConfig &gridView = s_viewGrid, bool writeIt = true, const std::string &tag = "", const std::string &outputDir = ".")
Helper method to draw AbstractVolume objects.
- Parameters
helper – [inout] The visualization helper
tVolume – The tracking volume to be drawn
gctx – The geometry context for which it is drawn
containerView – The drawing configuration for a container volume
volumeView – The drawing configuration for the navigation level volume
layerView – The drawing configuration for passive surfaces
sensitiveView – The drawing configuration for sensitive surfaces
gridView – The drawing configuration for grid display
writeIt – The prescription to write it or not
tag – The (optional) additional output tag
outputDir – Directory to write to
-
static void drawVolume(IVisualization3D &helper, const AbstractVolume &volume, const GeometryContext &gctx, const Transform3 &transform = Transform3::Identity(), const ViewConfig &viewConfig = s_viewVolume)
Helper method to draw AbstractVolume objects.
- Parameters
helper – [inout] The visualization helper
volume – The volume to be drawn
gctx – The geometry context for which it is drawn
transform – An option additional transform
viewConfig – The drawing configuration for boundary surfaces
-
static void drawArrowBackward(IVisualization3D &helper, const Vector3 &start, const Vector3 &end, double arrowLength, double arrowWidth, const ViewConfig &viewConfig = s_viewLine)