HLIBpro  2.4
Public Types | Public Member Functions | List of all members
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

enum 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

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

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

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

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