|
ACTS
Experiment-independent tracking
|
This helper produces output for Python visualization. More...
#include <Acts/Visualization/VisualizationBuffer.hpp>
Public Types | |
| using | LineType = std::pair<std::size_t, std::size_t> |
| Type of a line. | |
| using | ValueType = double |
| Stored value type, should be double or float. | |
| using | VertexType = Eigen::Matrix<ValueType, 3, 1> |
| Type of a vertex based on the value type. | |
| Public Types inherited from Acts::IVisualization3D | |
| using | FaceType = std::vector<std::size_t> |
| Type alias for face definition as vertex indices. | |
Public Member Functions | |
| VisualizationBuffer (unsigned int, double) | |
| Constructor. | |
| void | clear () override |
| Remove all contents of this helper. | |
| void | face (const std::vector< Vector3 > &, Color) override |
| This implementation does not support face. | |
| const std::vector< Color > & | faceColors () const |
| Vector that contains the colors of a set of faces forming a surface. | |
| void | faces (const std::vector< Vector3 > &vtxs, const std::vector< FaceType > &, Color color=s_defaultColor) override |
| void | line (const Vector3 &a, const Vector3 &b, Color color=s_defaultColor) override |
| Draw a line from a vertex to another. | |
| void | line (const Vector3 &a, const Vector3 &b, const double lineThickness, Color color=s_defaultColor) |
| Draw a line from a vertex to another. | |
| const std::vector< Color > & | lineColors () const |
| Vector that contains the colors of a set of line segments forming a line. | |
| const std::vector< double > & | lineThickness () const |
| Vector that contains the line thickness of a set of line segments forming a line. | |
| void | object (const std::string &) override |
| const std::vector< std::vector< Vector3 > > & | segments () const |
| Two vertices that form a line segment are collected in a vector All of these vectors are again stored as a vector which can be understood as the whole line. | |
| const std::vector< std::vector< Vector3 > > & | surfaces () const |
| All vertices that make up a surface are collected in a vector All of these vectors are again stored as a vector which can be understood as a vector of surfaces. | |
| void | vertex (const Vector3 &vtx, Color color=s_defaultColor) override |
| Draw a vertex at a given location and a color. | |
| const std::vector< Color > & | vertexColors () const |
| Vector that contains the colors of vertices. | |
| const std::vector< Vector3 > & | vertices3D () const |
| void | write (const std::filesystem::path &) const override |
| void | write (std::ostream &) const override |
| void | write (std::ostream &, std::ostream &) const |
| Write the object and the material file. | |
Additional Inherited Members | |
| Static Public Attributes inherited from Acts::IVisualization3D | |
| static constexpr Color | s_defaultColor = {120, 120, 120} |
| Default color used for visualization when no color is specified. | |
This helper produces output for Python visualization.
Note that colors are not supported in this implementation.
|
overridevirtual |
Remove all contents of this helper.
Implements Acts::IVisualization3D.
This implementation does not support face.
Implements Acts::IVisualization3D.
| const std::vector< Color > & Acts::VisualizationBuffer::faceColors | ( | ) | const |
Vector that contains the colors of a set of faces forming a surface.
|
overridevirtual |
| vtxs | The vertices that make up the faceS |
| color | The color of the face |
Implements Acts::IVisualization3D.
|
overridevirtual |
Draw a line from a vertex to another.
| a | The start vertex |
| b | The end vertex |
| color | The color of the line |
Implements Acts::IVisualization3D.
| void Acts::VisualizationBuffer::line | ( | const Vector3 & | a, |
| const Vector3 & | b, | ||
| const double | lineThickness, | ||
| Color | color = s_defaultColor ) |
Draw a line from a vertex to another.
| a | The start vertex |
| b | The end vertex |
| color | The color of the line |
| lineThickness | optional parameter to define the thickness of the line |
| const std::vector< Color > & Acts::VisualizationBuffer::lineColors | ( | ) | const |
Vector that contains the colors of a set of line segments forming a line.
| const std::vector< double > & Acts::VisualizationBuffer::lineThickness | ( | ) | const |
Vector that contains the line thickness of a set of line segments forming a line.
|
overridevirtual |
Implements Acts::IVisualization3D.
| const std::vector< std::vector< Vector3 > > & Acts::VisualizationBuffer::segments | ( | ) | const |
Two vertices that form a line segment are collected in a vector All of these vectors are again stored as a vector which can be understood as the whole line.
| const std::vector< std::vector< Vector3 > > & Acts::VisualizationBuffer::surfaces | ( | ) | const |
All vertices that make up a surface are collected in a vector All of these vectors are again stored as a vector which can be understood as a vector of surfaces.
|
overridevirtual |
Draw a vertex at a given location and a color.
| vtx | The vertex position |
| color | The color |
Implements Acts::IVisualization3D.
| const std::vector< Color > & Acts::VisualizationBuffer::vertexColors | ( | ) | const |
Vector that contains the colors of vertices.
| const std::vector< Vector3 > & Acts::VisualizationBuffer::vertices3D | ( | ) | const |
|
overridevirtual |
Implements Acts::IVisualization3D.
|
overridevirtual |
Implements Acts::IVisualization3D.
| void Acts::VisualizationBuffer::write | ( | std::ostream & | , |
| std::ostream & | ) const |
Write the object and the material file.