OMToolkit
1.0
The polygonal mesh processing tool.
|
#include <OMVisualiser.h>
Public Member Functions | |
OMVectorVisualiser (Mesh *mesh) | |
bool | ComputeColors (OpenMesh::VPropHandleT< Vector > vertexProperty, unsigned int vectorComponent, Scalar ommitExtremaPercent) |
![]() | |
OMVisualiser (Mesh *mesh) | |
void | ComputeColors (OpenMesh::VPropHandleT< Vector::value_type > vertexProperty, Vector::value_typeommitExtremaPercent) |
void | ComputeColors (OpenMesh::FPropHandleT< Vector::value_type > faceProperty, Vector::value_typeommitExtremaPercent) |
void | getLegend (Vector::value_type &maxBlue, Vector::value_type &maxGreen, Vector::value_type &maxRed) |
Protected Types | |
typedef Vector::value_type | Scalar |
Additional Inherited Members | |
![]() | |
OpenMesh::Vec4uc | getColor (Vector::value_typecurrent) |
![]() | |
Mesh * | m_mesh |
OpenMesh::IO::ImporterT< Mesh > | importer |
Vector::value_type | m_maxRed |
Vector::value_type | m_maxGreen |
Vector::value_type | m_maxBlue |
Vector::value_type | m_Difference |
Extension of Visualiser to handle vector types
Mesh | Mesh type to work with |
Vector | Vector type of the property |
|
protected |
Vector scalar type
|
inline |
Constructor - creates a link to a mesh and initializes variables
mesh | Pointer to a mesh |
bool OMVectorVisualiser::ComputeColors | ( | OpenMesh::VPropHandleT< Vector > | vertexProperty, |
unsigned int | vectorComponent, | ||
Scalar | ommitExtremaPercent | ||
) |
Computes colors from a vertex vector property and saves them into mesh
vertexProperty | Handle to a property, from which we will compute colors |
vectorComponent | Number of vector component to be visualised |
ommitExtremaPercent | Number of percent which will be ommited from extrema (for ex. value 2.0 ommits 2% of brightest and darkest points) |