Developer Documentation
PropertyModel Class Referenceabstract
Inheritance diagram for PropertyModel:
MultiObjectPropertyModel SingleObjectPropertyModel OMPropertyModelSubclass OVMPropertyModelSubclass OMPropertyModel< MeshT > OVMPropertyModel< MeshT >

Public Member Functions

virtual void pickModeChanged (const std::string &_mode)
 
virtual void mouseEvent (QMouseEvent *_event)
 
 PropertyModel (QObject *parent=0)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const =0
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const =0
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const =0
 
virtual QModelIndex index (int row, int column, QModelIndex const &parent=QModelIndex()) const =0
 
virtual void objectUpdated ()=0
 Revisualizes visualized properties. More...
 
virtual void visualize (QModelIndexList selectedIndices, QWidgetList widgets=QWidgetList())=0
 Visualizes the selected properties. More...
 
virtual void removeProperty (QModelIndexList selectedIndices)=0
 Removes the selected properties. More...
 
virtual void duplicateProperty (QModelIndexList selectedIndices)=0
 Duplicates the selected properties. More...
 
virtual void gatherProperties ()=0
 Searches for properties and creates PropertyVisualizers. More...
 
virtual void clear (QModelIndexList selectedIndices)=0
 Clears the selected property visualization. More...
 
virtual void hideWidget ()=0
 Hides the widget. More...
 
virtual QWidget * getWidget ()=0
 Returns the widget. More...
 
virtual void updateWidget (const QModelIndexList &selectedIndices)=0
 Updates the widget. More...
 
virtual void connectLogs (PropertyVisualizer *propViz)=0
 Connects the PropertyVisualizer log signals with the log slot. More...
 
virtual PropertyInfo getPropertyInfo (const QModelIndex index) const =0
 Returns the property info for the property with the given index. More...
 
QModelIndex indexFromFancyPropName (const QString &propName) const
 Returns the index of the property with the given name. More...
 
QModelIndex indexFromPlainPropName (const QString &propName) const
 Returns the index of the property with the given name. More...
 

Detailed Description

Definition at line 52 of file PropertyModel.hh.

Constructor & Destructor Documentation

◆ PropertyModel()

PropertyModel::PropertyModel ( QObject *  parent = 0)
inlineexplicit

Definition at line 60 of file PropertyModel.hh.

◆ ~PropertyModel()

virtual PropertyModel::~PropertyModel ( )
inlinevirtual

Definition at line 61 of file PropertyModel.hh.

Member Function Documentation

◆ clear()

virtual void PropertyModel::clear ( QModelIndexList  selectedIndices)
pure virtual

Clears the selected property visualization.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ connectLogs()

virtual void PropertyModel::connectLogs ( PropertyVisualizer propViz)
pure virtual

Connects the PropertyVisualizer log signals with the log slot.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ duplicateProperty()

virtual void PropertyModel::duplicateProperty ( QModelIndexList  selectedIndices)
pure virtual

Duplicates the selected properties.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ gatherProperties()

virtual void PropertyModel::gatherProperties ( )
pure virtual

Searches for properties and creates PropertyVisualizers.

Implemented in OMPropertyModel< MeshT >, OVMPropertyModel< MeshT >, MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ getPropertyInfo()

virtual PropertyInfo PropertyModel::getPropertyInfo ( const QModelIndex  index) const
pure virtual

Returns the property info for the property with the given index.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ getWidget()

virtual QWidget * PropertyModel::getWidget ( )
pure virtual

Returns the widget.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ hideWidget()

virtual void PropertyModel::hideWidget ( )
pure virtual

Hides the widget.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ indexFromFancyPropName()

QModelIndex PropertyModel::indexFromFancyPropName ( const QString &  propName) const

Returns the index of the property with the given name.

Definition at line 45 of file PropertyModel.cc.

◆ indexFromPlainPropName()

QModelIndex PropertyModel::indexFromPlainPropName ( const QString &  propName) const

Returns the index of the property with the given name.

Definition at line 56 of file PropertyModel.cc.

◆ mouseEvent()

virtual void PropertyModel::mouseEvent ( QMouseEvent *  _event)
inlinevirtual

Reimplemented in OMPropertyModel< MeshT >, and OVMPropertyModel< MeshT >.

Definition at line 58 of file PropertyModel.hh.

◆ objectUpdated()

virtual void PropertyModel::objectUpdated ( )
pure virtual

Revisualizes visualized properties.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ pickModeChanged()

virtual void PropertyModel::pickModeChanged ( const std::string &  _mode)
inlinevirtual

Reimplemented in OMPropertyModel< MeshT >, and OVMPropertyModel< MeshT >.

Definition at line 57 of file PropertyModel.hh.

◆ removeProperty()

virtual void PropertyModel::removeProperty ( QModelIndexList  selectedIndices)
pure virtual

Removes the selected properties.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.

◆ updateWidget()

virtual void PropertyModel::updateWidget ( const QModelIndexList &  selectedIndices)
pure virtual

◆ visualize()

virtual void PropertyModel::visualize ( QModelIndexList  selectedIndices,
QWidgetList  widgets = QWidgetList() 
)
pure virtual

Visualizes the selected properties.

Implemented in MultiObjectPropertyModel, and SingleObjectPropertyModel.


The documentation for this class was generated from the following files: