Krita Source Code Documentation
Loading...
Searching...
No Matches
gmic_image< T > Struct Template Reference

#include <gmic.h>

Public Member Functions

void assign (unsigned int w, unsigned int h, unsigned int d, unsigned int s)
 
 ~gmic_image ()
 

Public Attributes

T * _data {nullptr}
 
unsigned int _depth {1}
 
unsigned int _height {0}
 
bool _is_shared {false}
 
unsigned int _spectrum {3}
 
unsigned int _width {0}
 
QString name {}
 

Detailed Description

template<typename T>
struct gmic_image< T >

Definition at line 36 of file gmic.h.

Constructor & Destructor Documentation

◆ ~gmic_image()

template<typename T >
gmic_image< T >::~gmic_image ( )
inline

Definition at line 46 of file gmic.h.

47 {
48 if (!_is_shared)
49 delete[] _data;
50 }
T * _data
Definition gmic.h:42
bool _is_shared
Definition gmic.h:41

References gmic_image< T >::_data, and gmic_image< T >::_is_shared.

Member Function Documentation

◆ assign()

template<typename T >
void gmic_image< T >::assign ( unsigned int w,
unsigned int h,
unsigned int d,
unsigned int s )
inline

Definition at line 52 of file gmic.h.

53 {
54 _width = w;
55 _height = h;
56 _depth = d;
57 _spectrum = s;
58 }
unsigned int _depth
Definition gmic.h:39
unsigned int _height
Definition gmic.h:38
unsigned int _spectrum
Definition gmic.h:40
unsigned int _width
Definition gmic.h:37

References gmic_image< T >::_depth, gmic_image< T >::_height, gmic_image< T >::_spectrum, and gmic_image< T >::_width.

Member Data Documentation

◆ _data

template<typename T >
T* gmic_image< T >::_data {nullptr}

Definition at line 42 of file gmic.h.

42{nullptr}; // Pointer to the first pixel value.

◆ _depth

template<typename T >
unsigned int gmic_image< T >::_depth {1}

Definition at line 39 of file gmic.h.

39{1}; // Number of image slices (dimension along the Z-axis).

◆ _height

template<typename T >
unsigned int gmic_image< T >::_height {0}

Definition at line 38 of file gmic.h.

38{0}; // Number of image lines (dimension along the Y-axis)

◆ _is_shared

template<typename T >
bool gmic_image< T >::_is_shared {false}

Definition at line 41 of file gmic.h.

41{false}; // Tells if the data buffer is shared by another structure.

◆ _spectrum

template<typename T >
unsigned int gmic_image< T >::_spectrum {3}

Definition at line 40 of file gmic.h.

40{3}; // Number of image channels (dimension along the C-axis).

◆ _width

template<typename T >
unsigned int gmic_image< T >::_width {0}

Definition at line 37 of file gmic.h.

37{0}; // Number of image columns (dimension along the X-axis).

◆ name

template<typename T >
QString gmic_image< T >::name {}

Definition at line 43 of file gmic.h.

43{}; // Layer name

The documentation for this struct was generated from the following file: