50 #ifdef ENABLE_OPENVOLUMEMESH_SUPPORT
52 #ifndef OVM_PROPERTY_VISUALIZER_INTEGER_HH
53 #define OVM_PROPERTY_VISUALIZER_INTEGER_HH
55 #include "OVMPropertyVisualizer.hh"
57 #include "Widgets/IntegerWidget.hh"
59 #include <ACG/Utils/HuePartitioningColors.hh>
64 template <
typename MeshT,
typename T>
65 class OVMPropertyVisualizerInteger:
public OVMPropertyVisualizer<MeshT>{
68 OVMPropertyVisualizerInteger(MeshT* _mesh,
int objectID,
PropertyInfo _propertyInfo,
bool isUnsigned);
69 virtual ~OVMPropertyVisualizerInteger(){}
72 template <
typename PropType,
typename EntityIterator>
73 void visualizeProp(PropType prop, EntityIterator e_begin, EntityIterator e_end);
74 virtual void duplicateProperty();
76 virtual void visualizeFaceProp(
bool _setDrawMode =
true);
77 virtual void visualizeEdgeProp(
bool _setDrawMode =
true);
78 virtual void visualizeHalfedgeProp(
bool _setDrawMode =
true);
79 virtual void visualizeVertexProp(
bool _setDrawMode =
true);
80 virtual void visualizeCellProp(
bool _setDrawMode =
true);
81 virtual void visualizeHalffaceProp(
bool _setDrawMode =
true);
83 virtual QString getPropertyText(
unsigned int index);
85 virtual void setCellPropertyFromText(
unsigned int index, QString text);
86 virtual void setFacePropertyFromText(
unsigned int index, QString text);
87 virtual void setHalffacePropertyFromText(
unsigned int index, QString text);
88 virtual void setEdgePropertyFromText(
unsigned int index, QString text);
89 virtual void setHalfedgePropertyFromText(
unsigned int index, QString text);
90 virtual void setVertexPropertyFromText(
unsigned int index, QString text);
92 std::unique_ptr<ACG::IColorCoder> buildColorCoder()
override;
102 #if defined(INCLUDE_TEMPLATES) && !defined(OVM_PROPERTY_VISUALIZER_INTEGER_CC)
103 #include "OVMPropertyVisualizerIntegerT.cc"
Cellection of information about a property.