|
ACTS
Experiment-independent tracking
|
Partially abstract base class which provides an interface to visualization helper classes. More...
#include <Acts/Visualization/IVisualization3D.hpp>
Public Types | |
| using | FaceType = std::vector<std::size_t> |
| Type alias for face definition as vertex indices. | |
Public Member Functions | |
| virtual | ~IVisualization3D ()=default |
| virtual void | clear ()=0 |
| Remove all contents of this helper. | |
| virtual void | face (const std::vector< Vector3 > &vtxs, Color color=s_defaultColor)=0 |
| Draw a face that connects a list of vertices. | |
| virtual void | faces (const std::vector< Vector3 > &vtxs, const std::vector< FaceType > &faces, Color color=s_defaultColor)=0 |
| Draw a faces that connects a list of vertices - expert only. | |
| virtual void | line (const Vector3 &a, const Vector3 &b, Color color=s_defaultColor)=0 |
| Draw a line from a vertex to another. | |
| virtual void | object (const std::string &name)=0 |
| Start a new object context. | |
| virtual void | vertex (const Vector3 &vtx, Color color=s_defaultColor)=0 |
| Draw a vertex at a given location and a color. | |
| virtual void | write (const std::filesystem::path &path) const =0 |
| Write the content of the helper to an outstream. | |
| virtual void | write (std::ostream &os) const =0 |
| Write the content of the helper to an outstream. | |
Static Public Attributes | |
| static constexpr Color | s_defaultColor = {120, 120, 120} |
| Default color used for visualization when no color is specified. | |
Partially abstract base class which provides an interface to visualization helper classes.
It provides a number of methods that all the helpers need to conform to.
| using Acts::IVisualization3D::FaceType = std::vector<std::size_t> |
Type alias for face definition as vertex indices.
|
virtualdefault |
|
pure virtual |
Remove all contents of this helper.
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Draw a face that connects a list of vertices.
| vtxs | The vertices that make up the face |
| color | The color of the face |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Draw a faces that connects a list of vertices - expert only.
| vtxs | The vertices that make up the faceS |
| faces | The face presections (i.e. connecting vertices) |
| color | The color of the face |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Draw a line from a vertex to another.
| a | The start vertex |
| b | The end vertex |
| color | The color of the line |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Start a new object context.
| name | The name of the object |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Draw a vertex at a given location and a color.
| vtx | The vertex position |
| color | The color |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Write the content of the helper to an outstream.
| path | is the file system path for writing the file |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
pure virtual |
Write the content of the helper to an outstream.
| os | The output stream for file |
Implemented in Acts::ObjVisualization3D, and Acts::PlyVisualization3D< T >.
|
staticconstexpr |
Default color used for visualization when no color is specified.