@kv  0.0.4
Library for graph problems in C and Python
sliceviewer.h
1 
18 #if !defined(AT_GUI_H_INSIDE)
19 #error "Only <at/gui.h> can be included directly."
20 #endif
21 #ifndef AT_SLICEVIEWER_H
22 #define AT_SLICEVIEWER_H
23 #include <at/gui.h>
24 AT_BEGIN_DECLS
25 
26 /*=============================================================================
27  PUBLIC STRUCTURE
28  ============================================================================*/
29 typedef enum{
30  AT_SLICEVIEWER_3_1,
31  AT_SLICEVIEWER_2_2
32 }AtSliceViewerLayout;
33 
34 typedef enum{
35  AT_AXIAL = 0,
36  AT_CORONAL = 1,
37  AT_SAGITAL = 2
38 }AtSliceType;
39 
40 #define AT_TYPE_SLICEVIEWER at_sliceviewer_get_type()
41 G_DECLARE_DERIVABLE_TYPE(AtSliceViewer,at_sliceviewer,AT,SLICEVIEWER,GtkBin)
43 typedef struct _AtSliceViewerClass{
44  GtkBinClass parent_class;
45 }AtSliceViewerClass;
47 
48 /*=============================================================================
49  PUBLIC API
50  ============================================================================*/
51 
56 AtSliceViewer*
57 at_sliceviewer_new();
58 
64 void
65 at_sliceviewer_set_layout(AtSliceViewer* viewer, AtSliceViewerLayout layout);
71 void
72 at_sliceviewer_set_nifti(AtSliceViewer* viewer, AtNiftiImage* nifti);
78 void
79 at_sliceviewer_rotate_cw(AtSliceViewer* viewer, AtSliceType type);
85 void
86 at_sliceviewer_rotate_ccw(AtSliceViewer* viewer, AtSliceType type);
93 void
94 at_sliceviewer_set_index(AtSliceViewer* viewer, AtSliceType type, uint16_t index);
95 AT_END_DECLS
96 #endif
Nifti Image.
Definition: nifti.h:98