21 #ifndef SNARK_GRAPHICS_APPLICATIONS_VIEWPOINTS_MODEL_READER_H_
22 #define SNARK_GRAPHICS_APPLICATIONS_VIEWPOINTS_MODEL_READER_H_
26 #include "./PlyLoader.h"
28 class QGLAbstractScene;
30 namespace snark {
namespace graphics {
namespace View {
36 ModelReader( QGLView& viewer, comma::csv::options& options,
const std::string& file,
bool flip, coloured* c,
const std::string& label );
39 void update(
const Eigen::Vector3d& offset );
40 const Eigen::Vector3d& somePoint()
const;
42 void render( QGLPainter *painter );
46 boost::scoped_ptr< comma::csv::input_stream< PointWithId > > m_stream;
47 const std::string m_file;
48 QGLAbstractScene* m_scene;
50 boost::optional< PlyLoader > m_plyLoader;