Show CSceneGraphModel.h syntax highlighted
#ifndef __CSCENEGRAPHMODEL_H__
#define __CSCENEGRAPHMODEL_H__ 1
#include <osgDesigner/core/CValueModel.h>
#include <string>
#include <vector>
namespace osgDesigner
{
class CSceneGraphModel: public CValueModel
{
public:
typedef std::vector<std::string> NameList;
public:
CSceneGraphModel();
virtual ~CSceneGraphModel();
// ** Drag and Drop Interface
virtual Qt::DropActions supportedDropActions() const;
virtual QStringList mimeTypes() const;
virtual QMimeData* mimeData(const QModelIndexList &indexes) const;
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
virtual Qt::ItemFlags flags(const QModelIndex&) const;
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole ) const;
//virtual bool setData(const QModelIndex & index, const QVariant& value, int role = Qt::EditRole);
// void addToModel(osg::Referenced* refPtr, std::string name);
void addToModel(osgIntrospection::Value & val);
void explore(const QModelIndex& index);
};
}
#endif // ** __CSCENEGRAPHMODEL_H__ ** //
See more files for this project here