Developer Documentation
OVMPropertyModel< MeshT > Class Template Reference
Inheritance diagram for OVMPropertyModel< MeshT >:
OVMPropertyModelSubclass SingleObjectPropertyModel PropertyModel

Public Member Functions

 OVMPropertyModel (MeshT *mesh, int objectID, QObject *parent=0)
 
virtual void updateWidget (const QModelIndexList &selectedIndices)
 Updates the widget. More...
 
void resetPicking ()
 Disables picking. More...
 
virtual void pickProperty ()
 Toggle picking on and off. More...
 
virtual void pickModeChanged (const std::string &_mode)
 Handles changing of pick mode. More...
 
virtual void mouseEvent (QMouseEvent *_event)
 Handles mouse events for picking. More...
 
virtual bool parseHeader (QString header, PropertyVisualizer *&propVis, unsigned int &n)
 Parses the property file header. More...
 
- Public Member Functions inherited from OVMPropertyModelSubclass
 OVMPropertyModelSubclass (QObject *parent=0)
 
- Public Member Functions inherited from SingleObjectPropertyModel
virtual void pickModeChanged (const std::string &_mode) override
 
virtual void mouseEvent (QMouseEvent *_event) override
 
 SingleObjectPropertyModel (QObject *parent=0)
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
virtual QModelIndex index (int row, int column, QModelIndex const &parent=QModelIndex()) const override
 
virtual void objectUpdated () override
 Revisualizes visualized properties. More...
 
virtual void visualize (QModelIndexList selectedIndices, QWidgetList widgets=QWidgetList()) override
 Visualizes the selected properties. More...
 
virtual void removeProperty (QModelIndexList selectedIndices) override
 Removes the selected properties. More...
 
virtual void duplicateProperty (QModelIndexList selectedIndices) override
 Duplicates the selected properties. More...
 
virtual void gatherProperties () override
 Searches for properties and creates PropertyVisualizers. More...
 
virtual void clear (QModelIndexList selectedIndices) override
 Clears the selected property visualization. More...
 
void hideWidget () override
 Hides the widget. More...
 
QWidget * getWidget () override
 Returns the widget. More...
 
virtual void updateWidget (const QModelIndexList &selectedIndices) override
 Updates the widget. More...
 
void connectLogs (PropertyVisualizer *propViz) override
 Connects the PropertyVisualizer log signals with the log slot. More...
 
virtual PropertyInfo getPropertyInfo (const QModelIndex index) const override
 Returns the property info for the property with the given index. More...
 
virtual QScriptValue getScriptObject (const QModelIndex index, QScriptContext *ctx)
 Returns a qscript object that can be used to access visualisation parameters. More...
 
- Public Member Functions inherited from PropertyModel
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...
 

Static Public Member Functions

static bool isBoolType (const PropertyInfo &propInfo)
 
static bool isBoolType (const TypeInfoWrapper &typeInfo)
 
static bool isIntType (const PropertyInfo &propInfo)
 
static bool isIntType (const TypeInfoWrapper &typeInfo)
 
static bool isDoubleType (const PropertyInfo &propInfo)
 
static bool isDoubleType (const TypeInfoWrapper &typeInfo)
 
static bool isUnsignedIntType (const PropertyInfo &propInfo)
 
static bool isUnsignedIntType (const TypeInfoWrapper &typeInfo)
 
static bool isVec3dType (const PropertyInfo &propInfo)
 
static bool isVec3dType (const TypeInfoWrapper &typeInfo)
 
static bool isVec3dOVMType (const PropertyInfo &propInfo)
 
static bool isVec3dOVMType (const TypeInfoWrapper &typeInfo)
 
static bool isVec3fType (const PropertyInfo &propInfo)
 
static bool isVec3fType (const TypeInfoWrapper &typeInfo)
 
static bool isVectorType (const PropertyInfo &propInfo)
 
static bool isVectorType (const TypeInfoWrapper &typeInfo)
 
static bool isVectorOVMType (const PropertyInfo &propInfo)
 
static bool isVectorOVMType (const TypeInfoWrapper &typeInfo)
 
static bool isMatrix3x3Type (const PropertyInfo &propInfo)
 
static bool isMatrix3x3Type (const TypeInfoWrapper &typeInfo)
 

Protected Member Functions

virtual QString getLoadFilenameFilter ()
 Returns the filename filter for loading. More...
 
virtual QString getSaveFilenameFilter (unsigned int propId)
 Returns the filename filter for saving. More...
 
- Protected Member Functions inherited from SingleObjectPropertyModel
PropertyVisualizergetPropertyVisualizer (QString propName, PropertyInfo::ENTITY_FILTER filter, TypeInfoWrapper typeInfo)
 Returns a PropertyVisualizer. More...
 
bool isPropertyFree (QString propName, PropertyInfo::ENTITY_FILTER filter, TypeInfoWrapper typeInfo)
 Checks if the property name is still available. More...
 
QString getLoadFilename ()
 Asks the user for a file to load. More...
 
virtual QString getLoadFilenameFilter ()
 Returns the filename filter for loading. More...
 
QString getSaveFilename (unsigned int propId)
 Asks the user for a file to load. More...
 
virtual QString getSaveFilenameFilter (unsigned int propId)
 Returns the filename filter for saving. More...
 
virtual QString getDefaultSaveFilename (unsigned int propId)
 Returns the default file name. More...
 
void saveProperty (unsigned int propId)
 Saves property. More...
 
void loadProperty ()
 Loads property. More...
 
virtual void setPropertyFromFile (QTextStream &file_stream, unsigned int n, PropertyVisualizer *propVis)
 Sets the property values from a given file. More...
 
virtual bool parseHeader (QString header, PropertyVisualizer *&propVis, unsigned int &n)
 Parses the property file header. More...
 

Private Types

typedef std::set< TypeInfoWrapperTypeInfoWrapperSet
 

Private Member Functions

virtual void combine ()
 Combines two properties. More...
 
bool combinable (PropertyVisualizer *propertyVisualizer1, PropertyVisualizer *propertyVisualizer2) const
 Checks if two properties are combinable. More...
 
virtual void saveProperty ()
 Saves the currently slected properties. More...
 
template<typename PropIter >
void gatherProperties (MeshT *mesh, PropIter props_first, PropIter props_last, PropertyInfo::ENTITY_FILTER filter)
 Searches for properties with a specific entity type and creates visualizers. More...
 
void gatherProperties ()
 Searches for all properties and creates the visualizers. More...
 
bool isSupported (OpenVolumeMesh::BasePropertyPtr *const baseProp) const
 Checks if visualizing this property is supported. More...
 
bool isSupported (QString friendlyName) const
 Checks if visualizing this type of property is supported. More...
 
bool isNew (OpenVolumeMesh::BasePropertyPtr *const baseProp, PropertyInfo::ENTITY_FILTER filter) const
 Checks if we already created a PropertyVisualizer for this property. More...
 
bool isPropertyFree (QString propName, PropertyInfo::ENTITY_FILTER filter, TypeInfoWrapper typeInfo)
 Checks if a property name is still available for an entity type and a property type. More...
 
TypeInfoWrapper getSupportedTypeInfoWrapper (OpenVolumeMesh::BasePropertyPtr *const baseProp) const
 Returns the TypeInfoWrapper for the property if it is supported. More...
 
TypeInfoWrapper getSupportedTypeInfoWrapper (QString friendlyName, PropertyInfo::ENTITY_FILTER filter) const
 Returns the TypeInfoWrapper for the type of property if it is supported. More...
 
bool isEntityType (const TypeInfoWrapper &typeInfo, PropertyInfo::ENTITY_FILTER entity_type) const
 
void addPropertyVisualizer (OpenVolumeMesh::BasePropertyPtr *const baseProp, MeshT *mesh, PropertyInfo::ENTITY_FILTER filter)
 Adds a new PropertyVisualizer. More...
 
void addProperty (QString propName, QString friendlyTypeName, PropertyInfo::ENTITY_FILTER filter)
 Adds a new property to the mesh. More...
 
void initializeSupportedPropertyTypes ()
 

Private Attributes

MeshTmesh_
 
int objectID_
 
QPushButton bCombine
 
const PropertyInfomCombineProperty1
 
const PropertyInfomCombineProperty2
 
LoadSaveWidget mLoadSaveWidget
 
PickWidget mPickWidget
 
bool pickModeActive
 
std::string lastPickMode
 
Viewer::ActionMode lastActionMode
 
TypeInfoWrapperSet supportedPropertyTypes
 

Additional Inherited Members

- Public Slots inherited from OVMPropertyModelSubclass
virtual void slotCombine ()
 
virtual void slotSaveProperty ()
 
virtual void slotLoadProperty ()
 
virtual void slotPickProperty ()
 
- Signals inherited from SingleObjectPropertyModel
void log (Logtype _type, QString _message)
 
void log (QString _message)
 
- Protected Attributes inherited from SingleObjectPropertyModel
std::vector< PropertyVisualizer * > propertyVisualizers
 
QWidget * widgets
 
QModelIndexList currentlySelectedIndices
 
std::vector< unsigned int > currentlyVisualizedIndices
 

Detailed Description

template<typename MeshT>
class OVMPropertyModel< MeshT >

Definition at line 73 of file OVMPropertyModelT.hh.

Member Typedef Documentation

◆ TypeInfoWrapperSet

template<typename MeshT >
typedef std::set<TypeInfoWrapper> OVMPropertyModel< MeshT >::TypeInfoWrapperSet
private

Definition at line 202 of file OVMPropertyModelT.hh.

Constructor & Destructor Documentation

◆ OVMPropertyModel()

template<typename MeshT >
OVMPropertyModel< MeshT >::OVMPropertyModel ( MeshT mesh,
int  objectID,
QObject *  parent = 0 
)

Definition at line 47 of file OVMPropertyModelT_impl.hh.

◆ ~OVMPropertyModel()

template<typename MeshT >
virtual OVMPropertyModel< MeshT >::~OVMPropertyModel ( )
inlinevirtual

Definition at line 77 of file OVMPropertyModelT.hh.

Member Function Documentation

◆ addProperty()

template<typename MeshT >
void OVMPropertyModel< MeshT >::addProperty ( QString  propName,
QString  friendlyTypeName,
PropertyInfo::ENTITY_FILTER  filter 
)
private

Adds a new property to the mesh.

Parameters
propNameThe name of the property that should be added.
friendlyTypeNameThe type of the property.
filterThe entity type of the property.

This method adds a new property to the mesh. The types "Vec3d", "Vec3d", "double", "unsigned int", "int" and "bool" can be added for every entity type.

Definition at line 811 of file OVMPropertyModelT_impl.hh.

◆ addPropertyVisualizer()

template<typename MeshT >
void OVMPropertyModel< MeshT >::addPropertyVisualizer ( OpenVolumeMesh::BasePropertyPtr *const  baseProp,
MeshT mesh,
PropertyInfo::ENTITY_FILTER  filter 
)
private

Adds a new PropertyVisualizer.

Parameters
basePropA pointer to the property that should be visualized.
meshA pointer to the mesh whose properties should be visualized.
filterThe entity type that should be visualized.

This method creates a new PropertyVisualizer depending on the provieded parameters and adds it to the list of PropertyVisualizers.

Definition at line 780 of file OVMPropertyModelT_impl.hh.

◆ combinable()

template<typename MeshT >
bool OVMPropertyModel< MeshT >::combinable ( PropertyVisualizer propertyVisualizer1,
PropertyVisualizer propertyVisualizer2 
) const
private

Checks if two properties are combinable.

Parameters
propertyVisualizer1First PropertyVisualizer for combination.
propertyVisualizer2Second PropertyVisualizer for combination.
Returns
True if the two properties are combinable, false if not.

If the user selects two properties which are both of a vector type (Vec3f or Vec3d) they can be combined. This method will check if the two provided PropertyVisualizers can be comined. Currently PropertyVisualizers can only be combined if both visualize a property with a vector type and the same entity type.

Definition at line 398 of file OVMPropertyModelT_impl.hh.

◆ combine()

template<typename MeshT >
void OVMPropertyModel< MeshT >::combine
privatevirtual

Combines two properties.

If the user selects two properties which are both of a vector type (Vec3f or Vec3d) they can be combined. This method will create a new PropertyVisualizer (an OVMPropertyVisualizerVectorFieldDifference<MeshT> to be exact) but not an additional property.

Reimplemented from OVMPropertyModelSubclass.

Definition at line 368 of file OVMPropertyModelT_impl.hh.

◆ gatherProperties() [1/2]

template<typename MeshT >
void OVMPropertyModel< MeshT >::gatherProperties
privatevirtual

Searches for all properties and creates the visualizers.

Reimplemented from SingleObjectPropertyModel.

Definition at line 424 of file OVMPropertyModelT_impl.hh.

◆ gatherProperties() [2/2]

template<typename MeshT >
template<typename PropIter >
void OVMPropertyModel< MeshT >::gatherProperties ( MeshT mesh,
PropIter  props_first,
PropIter  props_last,
PropertyInfo::ENTITY_FILTER  filter 
)
private

Searches for properties with a specific entity type and creates visualizers.

Definition at line 410 of file OVMPropertyModelT_impl.hh.

◆ getLoadFilenameFilter()

template<typename MeshT >
QString OVMPropertyModel< MeshT >::getLoadFilenameFilter
protectedvirtual

Returns the filename filter for loading.

Reimplemented from SingleObjectPropertyModel.

Definition at line 309 of file OVMPropertyModelT_impl.hh.

◆ getSaveFilenameFilter()

template<typename MeshT >
QString OVMPropertyModel< MeshT >::getSaveFilenameFilter ( unsigned int  propId)
protectedvirtual

Returns the filename filter for saving.

Reimplemented from SingleObjectPropertyModel.

Definition at line 323 of file OVMPropertyModelT_impl.hh.

◆ getSupportedTypeInfoWrapper() [1/2]

template<typename MeshT >
TypeInfoWrapper OVMPropertyModel< MeshT >::getSupportedTypeInfoWrapper ( OpenVolumeMesh::BasePropertyPtr *const  baseProp) const
private

Returns the TypeInfoWrapper for the property if it is supported.

Parameters
basePropA pointer to the property.
Returns
A TypeInfoWrapper containing all the type information for the provided property.

Definition at line 506 of file OVMPropertyModelT_impl.hh.

◆ getSupportedTypeInfoWrapper() [2/2]

template<typename MeshT >
TypeInfoWrapper OVMPropertyModel< MeshT >::getSupportedTypeInfoWrapper ( QString  friendlyName,
PropertyInfo::ENTITY_FILTER  filter 
) const
private

Returns the TypeInfoWrapper for the type of property if it is supported.

Returns the TypeInfoWrapper for the type of property and entity if it is supported.

Parameters
friendlyNameThe type we want to visualize in text form.
filterThe type of the entity
Returns
A TypeInfoWrapper containing all the type information for the property type.

Definition at line 528 of file OVMPropertyModelT_impl.hh.

◆ initializeSupportedPropertyTypes()

template<typename MeshT >
void OVMPropertyModel< MeshT >::initializeSupportedPropertyTypes
private

Definition at line 991 of file OVMPropertyModelT_impl.hh.

◆ isBoolType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isBoolType ( const PropertyInfo propInfo)
static

Definition at line 542 of file OVMPropertyModelT_impl.hh.

◆ isBoolType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isBoolType ( const TypeInfoWrapper typeInfo)
static

Definition at line 548 of file OVMPropertyModelT_impl.hh.

◆ isDoubleType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isDoubleType ( const PropertyInfo propInfo)
static

Definition at line 576 of file OVMPropertyModelT_impl.hh.

◆ isDoubleType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isDoubleType ( const TypeInfoWrapper typeInfo)
static

Definition at line 582 of file OVMPropertyModelT_impl.hh.

◆ isEntityType()

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isEntityType ( const TypeInfoWrapper typeInfo,
PropertyInfo::ENTITY_FILTER  entity_type 
) const
private

Definition at line 702 of file OVMPropertyModelT_impl.hh.

◆ isIntType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isIntType ( const PropertyInfo propInfo)
static

Definition at line 559 of file OVMPropertyModelT_impl.hh.

◆ isIntType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isIntType ( const TypeInfoWrapper typeInfo)
static

Definition at line 565 of file OVMPropertyModelT_impl.hh.

◆ isMatrix3x3Type() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isMatrix3x3Type ( const PropertyInfo propInfo)
static

Definition at line 685 of file OVMPropertyModelT_impl.hh.

◆ isMatrix3x3Type() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isMatrix3x3Type ( const TypeInfoWrapper typeInfo)
static

Definition at line 691 of file OVMPropertyModelT_impl.hh.

◆ isNew()

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isNew ( OpenVolumeMesh::BasePropertyPtr *const  baseProp,
PropertyInfo::ENTITY_FILTER  filter 
) const
private

Checks if we already created a PropertyVisualizer for this property.

Parameters
basePropA pointer to the property.
filterThe entity type.
Returns
True if we do not have PropertyVisualizer yet for that property, False if we do.

Definition at line 486 of file OVMPropertyModelT_impl.hh.

◆ isPropertyFree()

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isPropertyFree ( QString  propName,
PropertyInfo::ENTITY_FILTER  filter,
TypeInfoWrapper  typeInfo 
)
private

Checks if a property name is still available for an entity type and a property type.

Parameters
propNameThe name of the property.
filterThe entity type of the property.
typeInfoThe type of the property.
Returns
True if the name is still available, False if already in use.

Definition at line 354 of file OVMPropertyModelT_impl.hh.

◆ isSupported() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isSupported ( OpenVolumeMesh::BasePropertyPtr *const  baseProp) const
private

Checks if visualizing this property is supported.

Parameters
basePropA pointer to the property that we want to visualize.
Returns
True if the property can be visualized, False if not.

Definition at line 447 of file OVMPropertyModelT_impl.hh.

◆ isSupported() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isSupported ( QString  friendlyName) const
private

Checks if visualizing this type of property is supported.

Checks if visualizing this property is supported.

Parameters
friendlyNameThe type we want to visualize in text form.
Returns
True if the property type can be visualized, False if not.

Currently supported are the types "bool", "int", "unsigned int", "double", "Vec3d" "Vec3dOVM" and "Vec3f"

Definition at line 465 of file OVMPropertyModelT_impl.hh.

◆ isUnsignedIntType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isUnsignedIntType ( const PropertyInfo propInfo)
static

Definition at line 593 of file OVMPropertyModelT_impl.hh.

◆ isUnsignedIntType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isUnsignedIntType ( const TypeInfoWrapper typeInfo)
static

Definition at line 599 of file OVMPropertyModelT_impl.hh.

◆ isVec3dOVMType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVec3dOVMType ( const PropertyInfo propInfo)
static

Definition at line 627 of file OVMPropertyModelT_impl.hh.

◆ isVec3dOVMType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVec3dOVMType ( const TypeInfoWrapper typeInfo)
static

Definition at line 633 of file OVMPropertyModelT_impl.hh.

◆ isVec3dType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVec3dType ( const PropertyInfo propInfo)
static

Definition at line 610 of file OVMPropertyModelT_impl.hh.

◆ isVec3dType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVec3dType ( const TypeInfoWrapper typeInfo)
static

Definition at line 616 of file OVMPropertyModelT_impl.hh.

◆ isVec3fType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVec3fType ( const PropertyInfo propInfo)
static

Definition at line 644 of file OVMPropertyModelT_impl.hh.

◆ isVec3fType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVec3fType ( const TypeInfoWrapper typeInfo)
static

Definition at line 650 of file OVMPropertyModelT_impl.hh.

◆ isVectorOVMType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVectorOVMType ( const PropertyInfo propInfo)
static

Definition at line 673 of file OVMPropertyModelT_impl.hh.

◆ isVectorOVMType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVectorOVMType ( const TypeInfoWrapper typeInfo)
static

Definition at line 679 of file OVMPropertyModelT_impl.hh.

◆ isVectorType() [1/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVectorType ( const PropertyInfo propInfo)
static

Definition at line 661 of file OVMPropertyModelT_impl.hh.

◆ isVectorType() [2/2]

template<typename MeshT >
bool OVMPropertyModel< MeshT >::isVectorType ( const TypeInfoWrapper typeInfo)
static

Definition at line 667 of file OVMPropertyModelT_impl.hh.

◆ mouseEvent()

template<typename MeshT >
void OVMPropertyModel< MeshT >::mouseEvent ( QMouseEvent *  _event)
virtual

Handles mouse events for picking.

If picking mode is active this method will find the picked entity and display its handle and value in the PickWidget.

Reimplemented from SingleObjectPropertyModel.

Definition at line 167 of file OVMPropertyModelT_impl.hh.

◆ parseHeader()

template<typename MeshT >
bool OVMPropertyModel< MeshT >::parseHeader ( QString  header,
PropertyVisualizer *&  propVis,
unsigned int &  n 
)
virtual

Parses the property file header.

Parameters
headerThe header.
[out]propVisThe PropertyVisualizer that will visualize the new property.
[out]nThe number of values stored in the file
Returns
True if parsing was successfull, False if not.

When loading a property from a file this method parses the header placed in the file's first line. If parsing was successfull a new property and a PropertyVisualizer will be created.

Reimplemented from SingleObjectPropertyModel.

Definition at line 213 of file OVMPropertyModelT_impl.hh.

◆ pickModeChanged()

template<typename MeshT >
void OVMPropertyModel< MeshT >::pickModeChanged ( const std::string &  _mode)
virtual

Handles changing of pick mode.

Reimplemented from SingleObjectPropertyModel.

Definition at line 148 of file OVMPropertyModelT_impl.hh.

◆ pickProperty()

template<typename MeshT >
void OVMPropertyModel< MeshT >::pickProperty
virtual

Toggle picking on and off.

This method will start and stop the picking.

Reimplemented from OVMPropertyModelSubclass.

Definition at line 132 of file OVMPropertyModelT_impl.hh.

◆ resetPicking()

template<typename MeshT >
void OVMPropertyModel< MeshT >::resetPicking

Disables picking.

Definition at line 119 of file OVMPropertyModelT_impl.hh.

◆ saveProperty()

template<typename MeshT >
void OVMPropertyModel< MeshT >::saveProperty
privatevirtual

Saves the currently slected properties.

Reimplemented from OVMPropertyModelSubclass.

Definition at line 376 of file OVMPropertyModelT_impl.hh.

◆ updateWidget()

template<typename MeshT >
void OVMPropertyModel< MeshT >::updateWidget ( const QModelIndexList &  selectedIndices)
virtual

Updates the widget.

Reimplemented from SingleObjectPropertyModel.

Definition at line 85 of file OVMPropertyModelT_impl.hh.

Member Data Documentation

◆ bCombine

template<typename MeshT >
QPushButton OVMPropertyModel< MeshT >::bCombine
private

Definition at line 190 of file OVMPropertyModelT.hh.

◆ lastActionMode

template<typename MeshT >
Viewer::ActionMode OVMPropertyModel< MeshT >::lastActionMode
private

Definition at line 200 of file OVMPropertyModelT.hh.

◆ lastPickMode

template<typename MeshT >
std::string OVMPropertyModel< MeshT >::lastPickMode
private

Definition at line 199 of file OVMPropertyModelT.hh.

◆ mCombineProperty1

template<typename MeshT >
const PropertyInfo* OVMPropertyModel< MeshT >::mCombineProperty1
private

Definition at line 191 of file OVMPropertyModelT.hh.

◆ mCombineProperty2

template<typename MeshT >
const PropertyInfo* OVMPropertyModel< MeshT >::mCombineProperty2
private

Definition at line 192 of file OVMPropertyModelT.hh.

◆ mesh_

template<typename MeshT >
MeshT* OVMPropertyModel< MeshT >::mesh_
private

Definition at line 186 of file OVMPropertyModelT.hh.

◆ mLoadSaveWidget

template<typename MeshT >
LoadSaveWidget OVMPropertyModel< MeshT >::mLoadSaveWidget
private

Definition at line 194 of file OVMPropertyModelT.hh.

◆ mPickWidget

template<typename MeshT >
PickWidget OVMPropertyModel< MeshT >::mPickWidget
private

Definition at line 196 of file OVMPropertyModelT.hh.

◆ objectID_

template<typename MeshT >
int OVMPropertyModel< MeshT >::objectID_
private

Definition at line 188 of file OVMPropertyModelT.hh.

◆ pickModeActive

template<typename MeshT >
bool OVMPropertyModel< MeshT >::pickModeActive
private

Definition at line 198 of file OVMPropertyModelT.hh.

◆ supportedPropertyTypes

template<typename MeshT >
TypeInfoWrapperSet OVMPropertyModel< MeshT >::supportedPropertyTypes
private

Definition at line 203 of file OVMPropertyModelT.hh.


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