AmitkLineProfile

AmitkLineProfile

Synopsis

#define             AMITK_LINE_PROFILE_VIEW             (linep)
#define             AMITK_LINE_PROFILE_ANGLE            (linep)
#define             AMITK_LINE_PROFILE_VISIBLE          (linep)
#define             AMITK_LINE_PROFILE_START_POINT      (linep)
#define             AMITK_LINE_PROFILE_END_POINT        (linep)
struct              AmitkLineProfile;
struct              AmitkLineProfileClass;
struct              AmitkLineProfileDataElement;
AmitkLineProfile *    amitk_line_profile_new            (void);
void                amitk_line_profile_copy_in_place    (AmitkLineProfile *dest_profile,
                                                         const AmitkLineProfile *src_profile);
void                amitk_line_profile_set_view         (AmitkLineProfile *line_profile,
                                                         const AmitkView view);
void                amitk_line_profile_set_angle        (AmitkLineProfile *line_profile,
                                                         const amide_real_t angle);
void                amitk_line_profile_set_visible      (AmitkLineProfile *line_profile,
                                                         const gboolean visible);
void                amitk_line_profile_set_start_point  (AmitkLineProfile *line_profile,
                                                         const AmitkPoint start_point);
void                amitk_line_profile_set_end_point    (AmitkLineProfile *line_profile,
                                                         const AmitkPoint end_point);

Description

Details

AMITK_LINE_PROFILE_VIEW()

#define AMITK_LINE_PROFILE_VIEW(linep)        (AMITK_LINE_PROFILE(linep)->view)


AMITK_LINE_PROFILE_ANGLE()

#define AMITK_LINE_PROFILE_ANGLE(linep)       (AMITK_LINE_PROFILE(linep)->angle)


AMITK_LINE_PROFILE_VISIBLE()

#define AMITK_LINE_PROFILE_VISIBLE(linep)     (AMITK_LINE_PROFILE(linep)->visible)


AMITK_LINE_PROFILE_START_POINT()

#define AMITK_LINE_PROFILE_START_POINT(linep) (AMITK_LINE_PROFILE(linep)->start_point)


AMITK_LINE_PROFILE_END_POINT()

#define AMITK_LINE_PROFILE_END_POINT(linep)   (AMITK_LINE_PROFILE(linep)->end_point)


struct AmitkLineProfile

struct AmitkLineProfile {
  GObject parent;

  AmitkView view;
  amide_real_t angle; /* in radians */
  gboolean visible;

  /* in base coordinate frame.  These are updated by the canvas */
  AmitkPoint start_point;
  AmitkPoint end_point;
};


struct AmitkLineProfileClass

struct AmitkLineProfileClass {
  GObjectClass parent_class;
  void (* line_profile_changed) (AmitkLineProfile * line_profile);
};


struct AmitkLineProfileDataElement

struct AmitkLineProfileDataElement {
  amide_real_t value;
  amide_real_t location;
};


amitk_line_profile_new ()

AmitkLineProfile *    amitk_line_profile_new            (void);


amitk_line_profile_copy_in_place ()

void                amitk_line_profile_copy_in_place    (AmitkLineProfile *dest_profile,
                                                         const AmitkLineProfile *src_profile);


amitk_line_profile_set_view ()

void                amitk_line_profile_set_view         (AmitkLineProfile *line_profile,
                                                         const AmitkView view);


amitk_line_profile_set_angle ()

void                amitk_line_profile_set_angle        (AmitkLineProfile *line_profile,
                                                         const amide_real_t angle);


amitk_line_profile_set_visible ()

void                amitk_line_profile_set_visible      (AmitkLineProfile *line_profile,
                                                         const gboolean visible);


amitk_line_profile_set_start_point ()

void                amitk_line_profile_set_start_point  (AmitkLineProfile *line_profile,
                                                         const AmitkPoint start_point);


amitk_line_profile_set_end_point ()

void                amitk_line_profile_set_end_point    (AmitkLineProfile *line_profile,
                                                         const AmitkPoint end_point);