#ifndef PLYFILLSCALARVALUESSETTER_H #define PLYFILLSCALARVALUESSETTER_H #include "plyabstractvaluessetter.h" #include /** * @brief This class will set values of one element to the entire array of the manager (0 to (size-1)). * * Use this class if a PlyElement contains only 1 element but the array in the manager contains many * elements and you want to fill it with the single element readed. * * Show comments from PlyAbstractValuesSetter for more information. */ template class PlyFillScalarValuesSetter : public PlyAbstractValuesSetter { public: typedef typename Manager::value_type value_type; PlyFillScalarValuesSetter(const size_t& size, const Manager* manager) : PlyAbstractValuesSetter(size) { m_manager = const_cast(manager); } void beginReadElement() { m_manager->resize(m_size); } void setValue(const double& value, const int& channelIndex) { Q_UNUSED(channelIndex) m_scalarValue = value; } void endReadElement() { for(size_t i=0; i