44 #ifndef OM_PROPERTY_VISUALIZER_HH 45 #define OM_PROPERTY_VISUALIZER_HH 47 #include "PropertyVisualizer/PropertyVisualizer.hh" 54 template <
typename MeshT>
68 virtual void visualize(
bool _setDrawMode, QWidget* _widget);
99 virtual void visualizeFaceProp(
bool _setDrawMode =
true);
100 virtual void visualizeEdgeProp(
bool _setDrawMode =
true);
101 virtual void visualizeHalfedgeProp(
bool _setDrawMode =
true);
102 virtual void visualizeVertexProp(
bool _setDrawMode =
true);
104 template <
typename PropType>
105 void removeProperty_stage1();
106 template <
typename PropType>
107 void removeProperty_stage2();
109 template<
typename PropType>
110 void duplicateProperty_stage1();
111 template<
typename PropHandle,
typename Iterator>
112 void duplicateProperty_stage2(Iterator first, Iterator last);
116 virtual void clearFaceProp();
117 virtual void clearEdgeProp();
118 virtual void clearHalfedgeProp();
119 virtual void clearVertexProp();
121 virtual void setFacePropertyFromText(
unsigned int index, QString text);
122 virtual void setEdgePropertyFromText(
unsigned int index, QString text);
123 virtual void setHalfedgePropertyFromText(
unsigned int index, QString text);
124 virtual void setVertexPropertyFromText(
unsigned int index, QString text);
132 unsigned int getClosestFaceId(
unsigned int _face,
ACG::Vec3d& _hitPoint);
133 unsigned int getClosestEdgeId(
unsigned int _face,
ACG::Vec3d& _hitPoint);
134 unsigned int getClosestHalfedgeId(
unsigned int _face,
ACG::Vec3d& _hitPoint);
135 unsigned int getClosestVertexId(
unsigned int _face,
ACG::Vec3d& _hitPoint);
138 template <
typename InnerType >
139 QString getPropertyText_(
unsigned int index);
141 template<
typename Type>
145 template<
typename PropHandleT>
149 CopyProperty(
const PropHandleT& _p1,
const PropHandleT& _p2, MeshT*& mesh) :
150 p1(_p1), p2(_p2), mesh(mesh) {}
152 template<
typename PrimitiveHandleT>
153 inline void operator() (
const PrimitiveHandleT &pr) {
154 mesh->property(p1, pr) = mesh->property(p2, pr);
158 const PropHandleT &p1, &p2;
165 #if defined(INCLUDE_TEMPLATES) && !defined(OM_PROPERTY_VISUALIZER_CC) 166 #include "OMPropertyVisualizerT_impl.hh" PropertyVisualizer(const PropertyInfo &_propertyInfo)
Constructor.
virtual void removeProperty()
Removes the property.
unsigned int getClosestPrimitiveId(unsigned int _face, ACG::Vec3d &_hitPoint)
Returns the ID of the closest primitive.
virtual void visualize(bool _setDrawMode, QWidget *_widget)
Visualizes the property.
virtual void setPropertyFromText(unsigned int index, QString text)
Returns the value of a property in text form.
virtual int getEntityCount()
Returns the number of entities.
Cellection of information about a property.
virtual void clear()
Clears the property.
This class vizualizes a property.
virtual void duplicateProperty()
Duplicates the property.
virtual QString getHeader()
Returns the header for saving.
virtual QString getPropertyText(unsigned int index)
Returns the value of a property in text form.