#include <app_vobj.h>
Inheritance diagram for VObject:
Public Member Functions | |
VObject (GtkWidget *canvas, double *xy0, int npkt, Point2D *P2d, int pflg=FALSE, VOBJ_COORD_MODE cmode=VOBJ_COORD_FROM_MOUSE, gchar *lab=NULL, double Marker_scale=1.) | |
virtual | ~VObject () |
virtual void | Update ()=0 |
virtual void | SetUpPos (VOBJ_COORD_MODE cmode=VOBJ_COORD_FROM_MOUSE) |
virtual void | SetUpScan () |
virtual void | set_offset () |
virtual void | properties () |
virtual void | GoLocMax (int r=10) |
virtual void | follow_on () |
virtual void | follow_off () |
virtual int | follow () |
virtual void | AddNode () |
virtual void | DelNode () |
virtual void | show_label (int flg=-1) |
GnomeCanvasItem * | node_marker (GnomeCanvasItem *item, double *xy, int i) |
void | Activate () |
void | lock_object (int l) |
void | set_color_to_active () |
void | set_color_to_inactive () |
void | set_color_to_hilit () |
void | set_marker_scale (double ms) |
void | set_label_offset (double *xy) |
void | set_scan_event (ScanEvent *se) |
ScanEvent * | get_scan_event () |
int | GetRn (double *xyi, int n) |
double | Dist (int i=0, int j=1) |
double | Area (int i=0, int j=1) |
double | Phi (double dx, double dy) |
double | Phi (int i=0, int j=1) |
void | save (std::ofstream &o) |
void | saveHPGL (std::ofstream &o) |
int | obj_id (int newid=0) |
gchar * | obj_name () |
gchar * | obj_text (const gchar *t=NULL) |
int | obj_num_points () |
void | obj_get_xy_i (int i, double &x, double &y) |
VObject (GtkWidget *canvas, double *xy0, int npkt, Point2D *P2d, int pflg=FALSE, VOBJ_COORD_MODE cmode=VOBJ_COORD_FROM_MOUSE, gchar *lab=NULL, double Marker_scale=1.) | |
virtual | ~VObject () |
virtual void | Update ()=0 |
virtual void | SetUpPos (VOBJ_COORD_MODE cmode=VOBJ_COORD_FROM_MOUSE) |
virtual void | SetUpScan () |
virtual void | set_offset () |
virtual void | properties () |
virtual void | GoLocMax (int r=10) |
virtual void | follow_on () |
virtual void | follow_off () |
virtual int | follow () |
virtual void | AddNode () |
virtual void | DelNode () |
virtual void | show_label (int flg=-1) |
GnomeCanvasItem * | node_marker (GnomeCanvasItem *item, double *xy, int i) |
void | Activate () |
void | lock_object (int l) |
void | set_color_to_active () |
void | set_color_to_inactive () |
void | set_color_to_hilit () |
void | set_marker_scale (double ms) |
void | set_label_offset (double *xy) |
void | set_scan_event (ScanEvent *se) |
ScanEvent * | get_scan_event () |
int | GetRn (double *xyi, int n) |
double | Dist (int i=0, int j=1) |
double | Area (int i=0, int j=1) |
double | Phi (double dx, double dy) |
double | Phi (int i=0, int j=1) |
void | save (std::ofstream &o) |
void | saveHPGL (std::ofstream &o) |
int | obj_id (int newid=0) |
gchar * | obj_name () |
gchar * | obj_text (const gchar *t=NULL) |
int | obj_num_points () |
void | obj_get_xy_i (int i, double &x, double &y) |
Static Public Member Functions | |
static gint | item_event (GnomeCanvasItem *item, GdkEvent *event, VObject *vo) |
static gint | item_event (GnomeCanvasItem *item, GdkEvent *event, VObject *vo) |
Public Attributes | |
GtkWidget * | canvas |
GtkWidget * | canvas |
Protected Attributes | |
ProfileControl * | profile |
gchar * | name |
gchar * | text |
int | np |
double | marker_scale |
double | label_offset_xy [2] |
double * | xy |
Point2D * | p2d |
GnomeCanvasItem ** | abl |
GnomeCanvasItem * | label |
GnomeCanvasItem * | arrow_head |
GtkWidget * | popup |
GtkWidget * | statusbar |
gint | statusid |
ViewInfo * | vinfo |
GnomeCanvasItem * | touched_item |
double | touched_xy [2] |
ScanEvent * | scan_event |
ProfileControl * | profile |
gchar * | name |
gchar * | text |
double * | xy |
Point2D * | p2d |
GnomeCanvasItem ** | abl |
GnomeCanvasItem * | label |
GnomeCanvasItem * | arrow_head |
GtkWidget * | popup |
GtkWidget * | statusbar |
ViewInfo * | vinfo |
GnomeCanvasItem * | touched_item |
ScanEvent * | scan_event |
Private Attributes | |
int | id |
int | lock |
Definition at line 47 of file app_vobj.h.
|
Definition at line 78 of file app_vobj.C. References abl, arrow_head, canvas, DBG_L2, item_event(), label, label_offset_xy, LABEL_XOFF, LABEL_YOFF, lock, marker_scale, name, node_marker(), np, p2d, popup, scan_event, SETUP_ITEM, SetUpPos(), statusbar, statusid, text, touched_item, touched_xy, vinfo, XSM_DEBUG, and xy. |
|
Definition at line 147 of file app_vobj.C. References abl, arrow_head, DBG_L2, label, name, profile, text, XSM_DEBUG, and xy. |
|
|
|
|
|
|
|
Definition at line 313 of file app_vobj.C. References canvas, current_vobject2, DBG_L2, get_obj_coords_wrapper2(), name, set_color_to_active(), text, Scan::update_object(), and XSM_DEBUG. Referenced by VObEvent::Update(), VObCircle::Update(), VObRectangle::Update(), VObKsys::Update(), VObLine::Update(), and VObPoint::Update(). |
|
Reimplemented in VObPolyLine, and VObPolyLine. Definition at line 63 of file app_vobj.h. |
|
Reimplemented in VObPolyLine, and VObPolyLine. Definition at line 63 of file app_vobj.h. Referenced by ViewControl::obj_addnode_callback(). |
|
Definition at line 97 of file app_vobj.h. References xy. |
|
Definition at line 97 of file app_vobj.h. References xy. |
|
Reimplemented in VObPolyLine, and VObPolyLine. Definition at line 64 of file app_vobj.h. |
|
Reimplemented in VObPolyLine, and VObPolyLine. Definition at line 64 of file app_vobj.h. Referenced by ViewControl::obj_delnode_callback(). |
|
Definition at line 91 of file app_vobj.h. |
|
Definition at line 91 of file app_vobj.h. Referenced by VObCircle::Radius(), SetUpScan(), and VObParabel::Update(). |
|
Definition at line 62 of file app_vobj.h. References FALSE. |
|
Definition at line 62 of file app_vobj.h. References FALSE. Referenced by VObPoint::follow_me(), VObPoint::follow_off(), VObPoint::follow_on(), VObPoint::Update(), and VObPoint::VObPoint(). |
|
Reimplemented in VObPoint, and VObPoint. Definition at line 61 of file app_vobj.h. |
|
Reimplemented in VObPoint, and VObPoint. Definition at line 61 of file app_vobj.h. Referenced by ViewControl::obj_follow_callback(). |
|
Reimplemented in VObPoint, and VObPoint. Definition at line 60 of file app_vobj.h. |
|
Reimplemented in VObPoint, and VObPoint. Definition at line 60 of file app_vobj.h. Referenced by ViewControl::obj_follow_callback(). |
|
Definition at line 81 of file app_vobj.h. References scan_event. |
|
Definition at line 81 of file app_vobj.h. References scan_event. Referenced by ViewControl::obj_event_use_callback(), and ViewControl::unflag_scan_event_and_remove_obj(). |
|
Definition at line 83 of file app_vobj.h. |
|
Definition at line 83 of file app_vobj.h. |
|
|
|
Definition at line 495 of file app_vobj.C. References abl, Mem2d::GetDataPkt(), Mem2d::GetNx(), Mem2d::GetNy(), Scan::mem2d, node_marker(), np, R2INT, ViewInfo::sc, Update(), vinfo, and xy. Referenced by ViewControl::move2locmax_obj(), and ViewControl::obj_go_locmax_callback(). |
|
|
|
Definition at line 519 of file app_vobj.C. References abl, arrow_head, FALSE, label, lock, node_marker(), np, popup, show_label(), touched_item, touched_xy, TRUE, Update(), and xy. Referenced by show_label(), VObLine::Update(), VObCircle::VObCircle(), VObject(), VObKsys::VObKsys(), VObLine::VObLine(), VObParabel::VObParabel(), and VObRectangle::VObRectangle(). |
|
Definition at line 70 of file app_vobj.h. References lock. |
|
Definition at line 70 of file app_vobj.h. References lock. Referenced by VObEvent::VObEvent(). |
|
|
|
Definition at line 175 of file app_vobj.C. References canvas, XSMRESOURCES::HandleType, marker_scale, MAXHANDLECOLORS, SQR_HANDLE_LINE_WIDTH, SQR_HANDLE_SIZE, TRI_HANDLE_LINE_WIDTH, TRI_HANDLE_SIZE, and xsmres. Referenced by GoLocMax(), item_event(), and VObject(). |
|
Definition at line 158 of file app_vobj.h. |
|
Definition at line 158 of file app_vobj.h. Referenced by get_obj_coords_wrapper(), and get_obj_coords_wrapper2(). |
|
Definition at line 148 of file app_vobj.h. |
|
Definition at line 148 of file app_vobj.h. Referenced by ViewControl::AddObject(), ViewControl::obj_dump_callback(), ViewControl::remove_obj(), and ViewControl::unflag_scan_event_and_remove_obj(). |
|
Definition at line 149 of file app_vobj.h. |
|
Definition at line 149 of file app_vobj.h. Referenced by ViewControl::AddObject(). |
|
Definition at line 157 of file app_vobj.h. |
|
Definition at line 157 of file app_vobj.h. Referenced by ViewControl::AddObject(). |
|
Definition at line 150 of file app_vobj.h. |
|
Definition at line 150 of file app_vobj.h. Referenced by ViewControl::add_event_obj(), and ViewControl::AddObject(). |
|
Definition at line 112 of file app_vobj.h. |
|
Definition at line 103 of file app_vobj.h. References atan(). |
|
Definition at line 112 of file app_vobj.h. |
|
Definition at line 103 of file app_vobj.h. References atan(). Referenced by Phi(), SetUpScan(), VObParabel::Update(), VObKsys::Update(), and VObLine::Update(). |
|
|
|
Definition at line 335 of file app_vobj.C. References _, FALSE, gapp, GNOME_PAD, info, label, MyGnomeTools::mygtk_add_input(), MyGnomeTools::mygtk_create_input(), name, np, text, TRUE, and xy. Referenced by ViewControl::obj_properties_callback(). |
|
Definition at line 118 of file app_vobj.h. References name, np, text, vinfo, ViewInfo::W2Angstroem(), and xy. |
|
Definition at line 118 of file app_vobj.h. References name, np, text, vinfo, ViewInfo::W2Angstroem(), and xy. Referenced by ViewControl::save_obj(). |
|
Definition at line 134 of file app_vobj.h. |
|
Definition at line 134 of file app_vobj.h. Referenced by ViewControl::save_obj_HPGL(). |
|
|
|
Definition at line 265 of file app_vobj.C. References abl, HANDLE_FILL_COLOR, MAXHANDLECOLORS, name, and np. Referenced by Activate(), and ViewControl::activate_obj(). |
|
|
|
Definition at line 295 of file app_vobj.C. References abl, HANDLE_FILL_COLOR_INACTIVE, and np. |
|
|
|
Definition at line 281 of file app_vobj.C. References abl, HANDLE_FILL_COLOR_INACTIVE, name, and np. Referenced by ViewControl::deactivate_obj(). |
|
Definition at line 77 of file app_vobj.h. References label_offset_xy. |
|
Definition at line 77 of file app_vobj.h. References label_offset_xy. |
|
Definition at line 76 of file app_vobj.h. References marker_scale. |
|
Definition at line 76 of file app_vobj.h. References marker_scale. Referenced by ViewControl::activate_obj(), ViewControl::AddObject(), and ViewControl::deactivate_obj(). |
|
|
|
Definition at line 397 of file app_vobj.C. References Xsm::data, gapp, Mem2d::GetNx(), Mem2d::GetNy(), ViewInfo::GetQfac(), Scan::mem2d, Scan::Pixel2World(), R2INT, SCAN_DATA::s, ViewInfo::sc, SCAN_COORD_ABSOLUTE, App::spm_update_all(), vinfo, Scan_Param::x0, App::xsm, xy, and Scan_Param::y0. Referenced by ViewControl::obj_setoffset_callback(). |
|
Definition at line 80 of file app_vobj.h. References scan_event. |
|
Definition at line 80 of file app_vobj.h. References scan_event. Referenced by ViewControl::add_event_obj(). |
|
|
|
Definition at line 237 of file app_vobj.C. References ViewInfo::Angstroem2W(), canvas, np, vinfo, VOBJ_COORD_ABSOLUT, VOBJ_COORD_FROM_MOUSE, VOBJ_COORD_RELATIV, and xy. Referenced by VObject(). |
|
|
|
Definition at line 414 of file app_vobj.C. References Scan_Param::alpha, Xsm::data, DBG_L3, Dist(), Scan_Param::dx, Scan_Param::dy, gapp, Mem2d::GetNx(), Mem2d::GetNy(), ViewInfo::GetQfac(), Scan::mem2d, np, Scan_Param::nx, Scan_Param::ny, Phi(), Scan::Pixel2World(), R2INT, Scan_Param::rx, Scan_Param::ry, SCAN_DATA::s, ViewInfo::sc, SCAN_COORD_ABSOLUTE, SCAN_COORD_RELATIVE, App::spm_update_all(), sqrt(), vinfo, Scan_Param::x0, App::xsm, XSM_DEBUG, xy, and Scan_Param::y0. Referenced by ViewControl::obj_getcoords_callback(). |
|
|
|
Definition at line 459 of file app_vobj.C. References canvas, item_event(), label, label_offset_xy, marker_scale, XSMRESOURCES::ObjectLabColor, XSMRESOURCES::ObjectLabFont, RGBAColor(), text, xsmres, and xy. Referenced by item_event(), ViewControl::obj_label_off(), and ViewControl::obj_label_on(). |
|
Implemented in VObPoint, VObLine, VObPolyLine, VObTrace, VObKsys, VObParabel, VObRectangle, VObCircle, VObEvent, VObPoint, VObLine, VObPolyLine, VObTrace, VObKsys, VObParabel, VObRectangle, VObCircle, and VObEvent. |
|
Implemented in VObPoint, VObLine, VObPolyLine, VObTrace, VObKsys, VObParabel, VObRectangle, VObCircle, VObEvent, VObPoint, VObLine, VObPolyLine, VObTrace, VObKsys, VObParabel, VObRectangle, VObCircle, and VObEvent. Referenced by ViewControl::AddObject(), GoLocMax(), and item_event(). |
|
Definition at line 185 of file app_vobj.h. |
|
Definition at line 185 of file app_vobj.h. Referenced by GoLocMax(), item_event(), set_color_to_active(), set_color_to_hilit(), set_color_to_inactive(), VObLine::Update(), VObject(), VObKsys::VObKsys(), VObLine::VObLine(), and ~VObject(). |
|
Definition at line 187 of file app_vobj.h. |
|
Definition at line 187 of file app_vobj.h. Referenced by item_event(), VObLine::Update(), VObject(), VObLine::VObLine(), and ~VObject(). |
|
Definition at line 171 of file app_vobj.h. |
|
Definition at line 171 of file app_vobj.h. Referenced by Activate(), node_marker(), ViewControl::obj_dump_callback(), ViewControl::obj_remove_callback(), SetUpPos(), show_label(), VObLine::Update(), and VObject(). |
|
Definition at line 199 of file app_vobj.h. |
|
Definition at line 186 of file app_vobj.h. |
|
Definition at line 186 of file app_vobj.h. Referenced by item_event(), properties(), show_label(), VObject(), and ~VObject(). |
|
Definition at line 182 of file app_vobj.h. Referenced by set_label_offset(), show_label(), and VObject(). |
|
Definition at line 200 of file app_vobj.h. Referenced by item_event(), lock_object(), and VObject(). |
|
Definition at line 181 of file app_vobj.h. Referenced by node_marker(), set_marker_scale(), show_label(), VObLine::Update(), and VObject(). |
|
Definition at line 177 of file app_vobj.h. |
|
Definition at line 177 of file app_vobj.h. Referenced by Activate(), properties(), save(), set_color_to_active(), set_color_to_inactive(), VObCircle::VObCircle(), VObEvent::VObEvent(), VObject(), VObLine::VObLine(), VObParabel::VObParabel(), VObPoint::VObPoint(), VObPolyLine::VObPolyLine(), VObRectangle::VObRectangle(), VObTrace::VObTrace(), and ~VObject(). |
|
Definition at line 180 of file app_vobj.h. Referenced by GoLocMax(), item_event(), properties(), save(), set_color_to_active(), set_color_to_hilit(), set_color_to_inactive(), SetUpPos(), SetUpScan(), VObCircle::Update(), VObRectangle::Update(), VObKsys::Update(), VObTrace::Update(), VObPolyLine::Update(), VObLine::Update(), VObject(), VObPolyLine::VObPolyLine(), and VObTrace::VObTrace(). |
|
Definition at line 184 of file app_vobj.h. |
|
Definition at line 184 of file app_vobj.h. Referenced by VObEvent::Update(), VObCircle::Update(), VObRectangle::Update(), VObParabel::Update(), VObKsys::Update(), VObTrace::Update(), VObPolyLine::Update(), VObLine::Update(), VObPoint::Update(), and VObject(). |
|
Definition at line 188 of file app_vobj.h. |
|
Definition at line 188 of file app_vobj.h. Referenced by item_event(), and VObject(). |
|
Definition at line 176 of file app_vobj.h. |
|
Definition at line 176 of file app_vobj.h. Referenced by VObCircle::Update(), VObKsys::Update(), VObLine::Update(), VObPoint::Update(), and ~VObject(). |
|
Definition at line 196 of file app_vobj.h. |
|
Definition at line 196 of file app_vobj.h. Referenced by get_scan_event(), set_scan_event(), VObEvent::Update(), and VObject(). |
|
Definition at line 189 of file app_vobj.h. |
|
Definition at line 189 of file app_vobj.h. Referenced by VObEvent::Update(), VObCircle::Update(), VObRectangle::Update(), VObKsys::Update(), VObLine::Update(), VObPoint::Update(), and VObject(). |
|
Definition at line 190 of file app_vobj.h. Referenced by VObEvent::Update(), VObCircle::Update(), VObRectangle::Update(), VObKsys::Update(), VObLine::Update(), VObPoint::Update(), and VObject(). |
|
Definition at line 178 of file app_vobj.h. |
|
Definition at line 178 of file app_vobj.h. Referenced by Activate(), properties(), save(), show_label(), VObject(), and ~VObject(). |
|
Definition at line 193 of file app_vobj.h. |
|
Definition at line 193 of file app_vobj.h. Referenced by VObPolyLine::AddNode(), VObPolyLine::DelNode(), item_event(), and VObject(). |
|
Definition at line 194 of file app_vobj.h. Referenced by VObPolyLine::AddNode(), VObPolyLine::DelNode(), item_event(), and VObject(). |
|
Definition at line 191 of file app_vobj.h. |
|
Definition at line 191 of file app_vobj.h. Referenced by VObTrace::Change(), GoLocMax(), save(), set_offset(), SetUpPos(), SetUpScan(), VObEvent::Update(), VObCircle::Update(), VObRectangle::Update(), VObParabel::Update(), VObKsys::Update(), VObTrace::Update(), VObPolyLine::Update(), VObLine::Update(), VObPoint::Update(), VObPoint::update_offset(), VObject(), and VObTrace::VObTrace(). |
|
Definition at line 183 of file app_vobj.h. |
|