#include <OMVisualiser.h>
|
| OMVisualiser (Mesh *mesh) |
|
void | ComputeColors (OpenMesh::VPropHandleT< Scalar > vertexProperty, Scalar ommitExtremaPercent) |
|
void | ComputeColors (OpenMesh::FPropHandleT< Scalar > faceProperty, Scalar ommitExtremaPercent) |
|
void | getLegend (Scalar &maxBlue, Scalar &maxGreen, Scalar &maxRed) |
|
|
OpenMesh::Vec4uc | getColor (Scalar current) |
|
template<class Mesh, class Scalar>
class OMToolkit::OMVisualiser< Mesh, Scalar >
Class computing a mesh color from specified scalar attributes
- Template Parameters
-
Mesh | Specifies a mesh type to work with |
Scalar | Specifies a scalar type of attribute (Attention, class expects a scalar type!!) |
template<class Mesh, class Scalar>
OMVisualiser::OMVisualiser |
( |
Mesh * |
mesh | ) |
|
Constructor - creates a link to a mesh and initializes variables
- Parameters
-
template<class Mesh, class Scalar>
void OMVisualiser::ComputeColors |
( |
OpenMesh::VPropHandleT< Scalar > |
vertexProperty, |
|
|
Scalar |
ommitExtremaPercent |
|
) |
| |
Computes colors from a vertex scalar property and saves them into mesh
- Parameters
-
vertexProperty | Handle to a property, from which we will compute colors |
ommitExtremaPercent | Number of percent which will be ommited from extrema (for ex. value 2.0 ommits 2% of brightest and darkest points) |
template<class Mesh, class Scalar>
void OMVisualiser::ComputeColors |
( |
OpenMesh::FPropHandleT< Scalar > |
faceProperty, |
|
|
Scalar |
ommitExtremaPercent |
|
) |
| |
Computes colors from a face scalar property and saves them into mesh
- Parameters
-
vertexProperty | Handle to a property, from which we will compute colors |
ommitExtremaPercent | Number of percent which will be ommited from extrema (for ex. value 2.0 ommits 2% of brightest and darkest points) |
template<class Mesh, class Scalar>
OpenMesh::Vec4uc OMVisualiser::getColor |
( |
Scalar |
current | ) |
|
|
protected |
Method computes a color from given value
- Parameters
-
- Returns
- Color vector
template<class Mesh, class Scalar>
void OMVisualiser::getLegend |
( |
Scalar & |
maxBlue, |
|
|
Scalar & |
maxGreen, |
|
|
Scalar & |
maxRed |
|
) |
| |
Returns values of Red, Green and Blue extremas (for painting a legend)
- Parameters
-
maxBlue | Property value for (0, 0, 255, 255) color |
maxGreen | Property value for (0, 255, 0, 255) color |
maxRed | Property value for (255, 0, 0, 255) color |
template<class Mesh, class Scalar>
template<class Mesh, class Scalar>
Difference between real values and shifted ones
template<class Mesh, class Scalar>
template<class Mesh, class Scalar>
template<class Mesh, class Scalar>
template<class Mesh, class Scalar>
The documentation for this class was generated from the following files: