15 #ifndef _OM_VISUALISER_H_
16 #define _OM_VISUALISER_H_
18 #include <OpenMesh\Core\Mesh\BaseKernel.hh>
19 #include <OpenMesh\Core\IO\importer\ImporterT.hh>
29 template <
class Mesh,
class Scalar>
44 void ComputeColors(OpenMesh::VPropHandleT<Scalar> vertexProperty, Scalar ommitExtremaPercent);
51 void ComputeColors(OpenMesh::FPropHandleT<Scalar> faceProperty, Scalar ommitExtremaPercent);
59 void getLegend(Scalar &maxBlue, Scalar &maxGreen, Scalar &maxRed);
68 OpenMesh::Vec4uc
getColor(Scalar current);
106 template <
class Mesh,
class Vector>
113 typedef typename Vector::value_type
Scalar;
130 bool ComputeColors(OpenMesh::VPropHandleT<Vector> vertexProperty,
unsigned int vectorComponent,
Scalar ommitExtremaPercent);
141 OpenMesh::Vec4uc
getColor(
float current,
float min,
float max);