44#include "iniPlugin.hh"
47#include <OpenFlipper/ACGHelper/DrawModeConverter.hh>
48#include <ObjectTypes/MeshObject/MeshObjectT.hh>
51template <
class MeshObject>
56 std::vector< QString > draw_modes;
58 if( _ini.
get_entry(draw_modes, _object->
name(),
"MeshDrawMode") )
59 _object->
meshNode()->drawMode( listToDrawMode(draw_modes) );
64template <
class MeshObject>
70 drawModeToList( _object->
meshNode()->drawMode()) );
QString name() const
return the name of the object. The name defaults to NONAME if unset.
Class for the handling of simple configuration files.
bool get_entry(QString &_val, const QString &_section, const QString &_key) const
Access to a string entry.
void add_entry(const QString &_section, const QString &_key, const QString &_value)
Addition / modification of a string entry.
ACG::SceneGraph::MeshNodeT< MeshT > * meshNode()
Get the Scenegraph Mesh Node.