Code Search for Developers
 
 
  

CSceneGraphModel.h from osgDesigner at Krugle


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

osgDesigner

osgDesigner is a graphical tool used to modify an OpenSceneGraph (OSG) scene using the osgIntrospection framework. OpenSceneGraph developpers will be able to extend osgDesigner at need using (editor | render | osgIntrospection wrapper) plugin system.

Project homepage: http://sourceforge.net/projects/osgdesigner
Programming language(s): C++,Shell Script
License: other

  CConfig.h
  CFileMenu.h
  CMainWindow.h
  CPropertiesModel.h
  CPropertiesView.h
  CPropertiesWidget.h
  CPropertyInfoModel.h
  CSceneGraphEditMenu.h
  CSceneGraphModel.h
  CSceneGraphView.h
  CSceneGraphWidget.h
  CTypeModel.h
  CTypeWidget.h
  CValueMimeData.h
  CValueModel.h
  CValueView.h
  Export.h
  FlagsConstructorDialog.h
  FlowLayout.h
  IEditorWidgetABC.h
  IListModel.h
  ITreeModel.h
  MACRO.h
  PluginManagerDialog.h
  SConfigManager.h
  SWorkSpace.h