STIR  6.2.0
Namespaces | Macros | Functions | Variables
display_array.cxx File Reference

Functions to display stir::Array objects (2d and 3d) and stir::RelatedViewgrams. More...

#include "stir/display.h"
#include "stir/IndexRange3D.h"
#include "stir/utilities.h"
#include "stir/ML_norm.h"
#include "stir/RelatedViewgrams.h"
#include "stir/info.h"
#include <boost/format.hpp>
#include <iostream>
#include "stir/warning.h"
#include "screen.h"
#include <cstring>
#include "mathlink.h"
#include <cstdio>

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Macros

#define STIR_SIMPLE_BITMAPS
 Preprocessor symbol that needs to be defined to enable X-windows functionality for stir::display. More...
 
#define STIR_MATHLINK
 Preprocessor symbol that needs to be defined to enable MathLink functionality for stir::display. More...
 
#define STIR_PGM
 
#define Min   std::min
 

Functions

template<class elemT , class SCALE , class CHARP >
void stir::display_bitmap (const Array< 3, elemT > &plane_stack, const VectorWithOffset< SCALE > &scale_factors, const VectorWithOffset< CHARP > &text, double maxi, const char *const title, int scale)
 
void init_and_connectlink (char *linkname)
 
template<class elemT , class SCALE , class CHARP >
void stir::display_mathlink (const Array< 3, elemT > &plane_stack, const VectorWithOffset< SCALE > &scale_factors, const VectorWithOffset< CHARP > &text, double maxi, const char *const title, int scale)
 
template<class elemT , class SCALE , class CHARP >
void stir::display_pgm (const Array< 3, elemT > &plane_stack, const VectorWithOffset< SCALE > &scale_factors, const VectorWithOffset< CHARP > &text, double maxi, const char *const title, int scale)
 
template<class elemT , class SCALE , class CHARP >
void stir::display (const Array< 3, elemT > &plane_stack, const VectorWithOffset< SCALE > &scale_factors, const VectorWithOffset< CHARP > &text, double maxi, const char *const title, int scale)
 
template<class elemT >
void stir::display (const RelatedViewgrams< elemT > &v1, double maxi=0, const char *const title=0, int zoom=0)
 Convenience function to display all viewgrams in a RelatedViewgrams object.
 
void stir::display (const DetPairData &det_pair_data, const char *const title)
 
void stir::display (const FanProjData &fan_data, const char *const title)
 
template void stir::display (const Array< 3, short > &plane_stack, const VectorWithOffset< short > &scale_factors, const VectorWithOffset< char *> &text, double maxi, const char *const title, int scale)
 
template void stir::display (const Array< 3, short > &plane_stack, const VectorWithOffset< float > &scale_factors, const VectorWithOffset< char *> &text, double maxi, const char *const title, int scale)
 
template void stir::display (const Array< 3, float > &plane_stack, const VectorWithOffset< float > &scale_factors, const VectorWithOffset< char *> &text, double maxi, const char *const title, int scale)
 
template void stir::display (const Array< 3, short > &plane_stack, const VectorWithOffset< short > &scale_factors, const VectorWithOffset< const char *> &text, double maxi, const char *const title, int scale)
 
template void stir::display (const Array< 3, short > &plane_stack, const VectorWithOffset< float > &scale_factors, const VectorWithOffset< const char *> &text, double maxi, const char *const title, int scale)
 
template void stir::display (const Array< 3, float > &plane_stack, const VectorWithOffset< float > &scale_factors, const VectorWithOffset< const char *> &text, double maxi, const char *const title, int scale)
 
template void stir::display (const RelatedViewgrams< float > &vs, double maxi, const char *const title, int zoom)
 

Variables

MLINK lp
 

Detailed Description

Functions to display stir::Array objects (2d and 3d) and stir::RelatedViewgrams.

Author
Kris Thielemans
PARAPET project
See also
display.h for some comments on the interface.

Three implementations now, depending on which preprocessor symbols are defined at compile-time:

if both STIR_SIMPLE_BITMAPS and STIR_MATHLINK are defined, stir::display asks which version you want to use

Macro Definition Documentation

◆ STIR_SIMPLE_BITMAPS

#define STIR_SIMPLE_BITMAPS

Preprocessor symbol that needs to be defined to enable X-windows functionality for stir::display.

Preprocessor symbol that needs to be defined to enable PGM functionality for stir::display.

See also
display_array.cxx for some info

◆ STIR_MATHLINK

#define STIR_MATHLINK

Preprocessor symbol that needs to be defined to enable MathLink functionality for stir::display.

See also
display_array.cxx for some info