HLIBpro  2.9.1
TVTKCoordVis Class Reference

Coordinate visualisation in VTK format.

#include <TCoordVis.hh>

Public Types

enum  coltype_t { NO_COLOUR , VAL_COLOUR , LOG_COLOUR }
 colourisation options for drawing connectivity More...

Public Member Functions

virtual void print (const TCoordinate *coord, const std::string &filename) const
 print coord to file filename
virtual void print (const TCoordinate *coord, const std::vector< uint > &label, const std::string &filename) const
virtual void print (const TCoordinate *coord, const TSparseMatrix *S, const std::string &filename, const coltype_t col_type=TVTKCoordVis::NO_COLOUR) const

Member Enumeration Documentation

◆ coltype_t

enum coltype_t

do not colour connections


use absolute value of matrix coefficients to determine colour


use logarithm of absolute value instead

Member Function Documentation

◆ print() [1/2]

virtual void print ( const TCoordinate coord,
const std::vector< uint > &  label,
const std::string &  filename 
) const

print coordinates coord and colour coordinates with same label with same colour; the labels are defined by label and must begin with 0

◆ print() [2/2]

virtual void print ( const TCoordinate coord,
const TSparseMatrix S,
const std::string &  filename,
const coltype_t  col_type = TVTKCoordVis::NO_COLOUR 
) const

print coordinates coord and the connections between them as defined by the coefficients of the sparse matrix S

  • the ordering of S is assumed to be equal to coord
  • if log_scale is true, coefficient scaling is logarithmic