44 #include "Models/SingleObjectPropertyModel.hh" 45 #include "OMPropertyModelSubclass.hh" 46 #include "OMPropertyVisualizer.hh" 47 #include "Widgets/LoadSaveWidget.hh" 48 #include "Widgets/PickWidget.hh" 55 template<
typename MeshT>
62 virtual void updateWidget(
const QModelIndexList& selectedIndices);
99 typename MeshT::prop_iterator props_first,
100 typename MeshT::prop_iterator props_last,
101 PropertyInfo::ENTITY_FILTER filter);
124 void addProperty(QString propName, QString friendlyTypeName, PropertyInfo::ENTITY_FILTER filter);
126 void initializeSupportedPropertyTypes();
138 #ifdef ENABLE_SKELETON_SUPPORT 147 QPushButton bCombine;
155 std::string lastPickMode;
158 typedef std::set<TypeInfoWrapper> TypeInfoWrapperSet;
159 TypeInfoWrapperSet supportedPropertyTypes;
183 #ifdef ENABLE_SKELETON_SUPPORT 189 #if defined(INCLUDE_TEMPLATES) && !defined(OM_PROPERTY_MODEL_CC) 190 #include "OMPropertyModelT_impl.hh"
bool isSupported(OpenMesh::BaseProperty *const baseProp) const
Checks if visualizing this property is supported.
virtual void setPropertyFromFile(QTextStream &file_stream, unsigned int n, PropertyVisualizer *propVis)
Sets the property values from a given file.
Wraps the information of a type.
virtual void saveProperty()
Saves the currently slected properties.
virtual QString getLoadFilenameFilter()
Returns the filename filter for loading.
ActionMode
Enum listing action modes of the viewers.
bool isNew(OpenMesh::BaseProperty *const baseProp, PropertyInfo::ENTITY_FILTER filter)
Checks if we already created a PropertyVisualizer for this property.
Added for signal/slot support.
virtual bool parseHeader(QString header, PropertyVisualizer *&propVis, unsigned int &n)
Parses the property file header.
virtual void pickModeChanged(const std::string &_mode)
Handles changing of pick mode.
Default property class for any type T.
void resetPicking()
Disables picking.
virtual QString getSaveFilenameFilter(unsigned int propId)
Returns the filename filter for saving.
void addPropertyVisualizer(OpenMesh::BaseProperty *const baseProp, MeshT *mesh, PropertyInfo::ENTITY_FILTER filter)
Adds a new PropertyVisualizer.
TypeInfoWrapper getSupportedTypeInfoWrapper(OpenMesh::BaseProperty *const baseProp)
Returns the TypeInfoWrapper for the property if it is supported.
Cellection of information about a property.
void addProperty(QString propName, QString friendlyTypeName, PropertyInfo::ENTITY_FILTER filter)
Adds a new property to the mesh.
This class vizualizes a property.
virtual void updateWidget(const QModelIndexList &selectedIndices)
Updates the widget.
void gatherProperties()
Searches for all properties and creates the visualizers.
virtual void pickProperty()
Toggle picking on and off.
virtual void combine()
Combines two properties.
virtual void mouseEvent(QMouseEvent *_event)
Handles mouse events for picking.
bool combinable(PropertyVisualizer *propertyVisualizer1, PropertyVisualizer *propertyVisualizer2)
Checks if two properties are combinable.