Open CASCADE Technology
6.5.4
|
Interactive object that draws data from Poly_Triangulation, optionally with colors associated
with each triangulation vertex. For maximum efficiency colors are represented as 32-bit integers
instead of classic Quantity_Color values.
Interactive selection of triangles and vertices is not yet implemented.
#include <AIS_Triangulation.hxx>
Public Member Functions | |
AIS_Triangulation (const Handle< Poly_Triangulation > &aTriangulation) | |
Constructs the Triangulation display object | |
void | SetColors (const Handle< TColStd_HArray1OfInteger > &aColor) |
Set the color for each node. Each 32-bit color is Alpha << 24 + Blue << 16 + Green << 8 + Red Order of color components is essential for further usage by OpenGL | |
Handle_TColStd_HArray1OfInteger | GetColors () const |
Get the color for each node. Each 32-bit color is Alpha << 24 + Blue << 16 + Green << 8 + Red | |
void | SetTriangulation (const Handle< Poly_Triangulation > &aTriangulation) |
Handle_Poly_Triangulation | GetTriangulation () const |
Returns Poly_Triangulation . |
AIS_Triangulation::AIS_Triangulation | ( | const Handle< Poly_Triangulation > & | aTriangulation | ) |
Handle_TColStd_HArray1OfInteger AIS_Triangulation::GetColors | ( | ) | const |
Handle_Poly_Triangulation AIS_Triangulation::GetTriangulation | ( | ) | const |
void AIS_Triangulation::SetColors | ( | const Handle< TColStd_HArray1OfInteger > & | aColor | ) |
void AIS_Triangulation::SetTriangulation | ( | const Handle< Poly_Triangulation > & | aTriangulation | ) |