HLIBpro 3.1
Loading...
Searching...
No Matches
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

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

Member Enumeration Documentation

◆ coltype_t

Enumerator
NO_COLOUR 

do not colour connections

VAL_COLOUR 

use absolute value of matrix coefficients to determine colour

LOG_COLOUR 

use logarithm of absolute value instead

Member Function Documentation

◆ print() [1/2]

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]

template<typename value_t >
void print ( const TCoordinate coord,
const TSparseMatrix< value_t > *  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