Analysis Software
Documentation for sPHENIX simulation software
|
Helper to write out PlyVisualization3D visualization format. More...
#include <acts/blob/sPHENIX/Core/include/Acts/Visualization/PlyVisualization3D.hpp>
Public Types | |
using | ValueType = T |
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< size_t > |
Public Member Functions | |
void | vertex (const Vector3 &vtx, ColorRGB color={120, 120, 120}) final |
| |
void | face (const std::vector< Vector3 > &vtxs, ColorRGB color={120, 120, 120}) final |
| |
void | faces (const std::vector< Vector3 > &vtxs, const std::vector< FaceType > &faces, ColorRGB color={120, 120, 120}) final |
| |
void | line (const Vector3 &a, const Vector3 &b, ColorRGB color={120, 120, 120}) final |
| |
void | write (const std::string &path) const final |
| |
void | write (std::ostream &os) const final |
| |
void | clear () final |
| |
Private Attributes | |
std::vector< std::pair < VertexType, ColorRGB > > | m_vertices |
std::vector< FaceType > | m_faces |
std::vector< std::pair < std::pair< size_t, size_t > , ColorRGB > > | m_edges |
Additional Inherited Members | |
Protected Member Functions inherited from Acts::IVisualization3D | |
bool | hasExtension (const std::string &path) const |
void | replaceExtension (std::string &path, const std::string &suffix) const |
Helper to write out PlyVisualization3D visualization format.
Definition at line 26 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 26 of file PlyVisualization3D.hpp
using Acts::PlyVisualization3D< T >::ValueType = T |
Stored value type, should be double or float.
Definition at line 32 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 32 of file PlyVisualization3D.hpp
using Acts::PlyVisualization3D< T >::VertexType = Eigen::Matrix<ValueType, 3, 1> |
Type of a vertex based on the value type.
Definition at line 35 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 35 of file PlyVisualization3D.hpp
|
finalvirtual |
Remove all contents of this helper
Implements Acts::IVisualization3D.
Definition at line 98 of file PlyVisualization3D.ipp.
View newest version in sPHENIX GitHub at line 98 of file PlyVisualization3D.ipp
References Acts::PlyVisualization3D< T >::clear().
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::PlyVisualization3D< T >::clear().
|
finalvirtual |
Draw a face that connects a list of vertices.
vtxs | The vertices that make up the face |
color | The color of the face |
Implements Acts::IVisualization3D.
Definition at line 15 of file PlyVisualization3D.ipp.
View newest version in sPHENIX GitHub at line 15 of file PlyVisualization3D.ipp
References testing::internal::move().
|
finalvirtual |
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 |
Implements Acts::IVisualization3D.
Definition at line 27 of file PlyVisualization3D.ipp.
View newest version in sPHENIX GitHub at line 27 of file PlyVisualization3D.ipp
|
finalvirtual |
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.
Definition at line 34 of file PlyVisualization3D.ipp.
View newest version in sPHENIX GitHub at line 34 of file PlyVisualization3D.ipp
Referenced by item.Item::__eq__(), and item.Item::__hash__().
|
finalvirtual |
Draw a vertex at a given location and a color.
vtx | The vertex position |
color | The color |
Implements Acts::IVisualization3D.
Definition at line 10 of file PlyVisualization3D.ipp.
View newest version in sPHENIX GitHub at line 10 of file PlyVisualization3D.ipp
|
finalvirtual |
Write the content of the helper to an outstream.
path | is the file system path for writing the file |
Implements Acts::IVisualization3D.
Definition at line 45 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 45 of file PlyVisualization3D.hpp
|
finalvirtual |
Write the content of the helper to an outstream.
os | The output stream for file |
Implements Acts::IVisualization3D.
Definition at line 57 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 57 of file PlyVisualization3D.hpp
|
private |
Definition at line 65 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 65 of file PlyVisualization3D.hpp
|
private |
Definition at line 64 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 64 of file PlyVisualization3D.hpp
|
private |
Definition at line 63 of file PlyVisualization3D.hpp.
View newest version in sPHENIX GitHub at line 63 of file PlyVisualization3D.hpp