39display(
const Array<3, elemT>& plane_stack,
double maxi,
const char*
const title,
int zoom)
43 scale_factors.
fill(1.);
46 constexpr std::size_t label_size = 10;
49 text[i] =
new char[label_size];
50 snprintf(text[i], label_size,
"%d", i);
53 display(plane_stack, scale_factors, text, maxi, title, zoom);
68display(
const Array<2, elemT>& plane,
const char*
const text,
double maxi,
int zoom)
78 scale_factors[0] = 1.F;
82 display(stack, scale_factors, texts, maxi, text, zoom);
85#if defined(__GNUC__) && (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
92template <
class elemT,
class scaleT,
class CHARP>
94display(
const Array<3, elemT>& plane_stack,
95 const VectorWithOffset<scaleT>& scale_factors,
96 const VectorWithOffset<CHARP>& text,
98 const char*
const title)
100 display(plane_stack, scale_factors, text, maxi, title, 0);
103template <
class elemT,
class scaleT,
class CHARP>
105display(
const Array<3, elemT>& plane_stack,
106 const VectorWithOffset<scaleT>& scale_factors,
107 const VectorWithOffset<CHARP>& text,
110 display(plane_stack, scale_factors, text, maxi, 0, 0);
113template <
class elemT,
class scaleT,
class CHARP>
115display(
const Array<3, elemT>& plane_stack,
const VectorWithOffset<scaleT>& scale_factors,
const VectorWithOffset<CHARP>& text)
117 display(plane_stack, scale_factors, text, 0., 0, 0);
120template <
class elemT>
122display(
const Array<3, elemT>& plane_stack,
double maxi,
const char*
const title)
124 display(plane_stack, maxi, title, 0);
127template <
class elemT>
129display(
const Array<3, elemT>& plane_stack,
double maxi)
131 display(plane_stack, maxi, 0, 0);
134template <
class elemT>
136display(
const Array<3, elemT>& plane_stack)
138 display(plane_stack, 0., 0, 0);
141template <
class elemT>
143display(
const Array<2, elemT>& plane,
const char*
const text,
double maxi)
145 display(plane, text, maxi, 0);
148template <
class elemT>
150display(
const Array<2, elemT>& plane,
const char*
const text)
152 display(plane, text, 0., 0);
155template <
class elemT>
157display(
const Array<2, elemT>& plane)
159 display(plane, 0, 0., 0);
This file declares the class stir::IndexRange3D.
This class defines multi-dimensional (numeric) arrays.
Definition Array.h:78
a 'convenience' class for 3D index ranges. Provides an easier constructor for regular ranges.
Definition IndexRange3D.h:39
A templated class for vectors, but with indices starting not from 0.
Definition VectorWithOffset.h:65
int get_max_index() const
get value of last valid index
Definition VectorWithOffset.inl:131
int get_min_index() const
get value of first valid index
Definition VectorWithOffset.inl:124
int get_length() const
return number of elements in this vector
Definition VectorWithOffset.inl:538
void fill(const T &n)
fill elements with value n
Definition VectorWithOffset.inl:571