Logo Search packages:      
Sourcecode: nam version File versions  Download package

Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes

EditView Class Reference

Inheritance diagram for EditView:
Inheritance graph
[legend]
Collaboration diagram for EditView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void BoundingBox (BBox &bb)
void boxedString (const char *text, double world_x, double world_y, double vertical_size, int paint, const char *color=NULL)
virtual void circle (float x, float y, float r, int color)
void clearClipRect ()
int cmdaddAgent (float, float, const char *)
int cmdaddAgentLinker (float, float)
int cmdaddLink (float, float)
int cmdaddLossModel (float cx, float cy, const char *type)
int cmdaddNode (float, float)
int cmdaddTrafficSource (float cx, float cy, const char *type)
int cmdDeleteObj (float, float)
int cmdgetObjectInformation (float cx, float cy)
int cmdgetObjectProperties (float cx, float cy, const char *type)
int cmdgetObjProperty (float cx, float cy)
int cmdMoveTo (float, float)
int cmdReleasePoint (float, float)
int cmdRemoveSel (float, float)
int cmdsetAgentProperty (int id, const char *value, const char *variable)
int cmdsetLinkProperty (int sid, int did, const char *value, const char *variable)
int cmdsetLossModelProperty (int id, const char *value, const char *variable)
int cmdsetNodeProperty (int id, const char *value, const char *variable)
int cmdSetPoint (float, float, int)
int cmdsetTrafficSourceProperty (int id, const char *value, const char *variable)
void destroy ()
virtual void draw (double current_time)
virtual void draw ()
 EditView (const char *name, NetModel *m, int height, int width)
 EditView (const char *name, NetModel *m)
virtual void fill (const float *x, const float *y, int n, int color)
int getCoord (char *xs, char *ys, float &x, float &y)
int getStringHeight (char *text)
int getStringScreenWidth (const char *text, int screen_height)
double getStringWidth (const char *text, double height)
virtual void getWorldBox (BBox &world_boundary)
int height ()
void imap (float &tx, float &ty) const
virtual void line (float x0, float y0, float x1, float y1, int color)
void map (float &x, float &y) const
void moveNode (Node *n) const
virtual void polygon (const float *x, const float *y, int n, int color)
int record (const char *file)
virtual void rect (float x0, float y0, float x1, float y1, int color)
void redrawModel ()
virtual void render ()
virtual void render (BBox &)
void setClipRect (BBox &)
void setFunction (int)
int showAgentLink (float cx, float cy)
virtual void string (float fx, float fy, float dim, const char *s, int anchor, const char *color=NULL)
int string (const char *text, double world_x, double world_y, double size, const char *color=NULL)
virtual void string (float fx, float fy, float dim, const char *s, int anchor)
Tk_Window tk ()
void view_mode ()
int width ()

Static Public Member Functions

static int command (ClientData, Tcl_Interp *, int argc, CONST84 char **argv)
static void DeleteCmdProc (ClientData)
static void handle (ClientData, XEvent *)

Public Attributes

Viewnext_

Protected Types

enum  EditType {
  START_RUBBERBAND, MOVE_RUBBERBAND, END_RUBBERBAND, START_OBJECT,
  MOVE_OBJECT, END_OBJECT, NONE, START_LINK,
  MOVE_LINK, END_LINK
}

Protected Member Functions

void free_fonts ()
void load_fonts ()
int lookup_font (int d)
void pan (float x, float y)
void resize (int width, int height)
void startRubberBand (float cx, float cy)
void startSetObject (Animation *p, float cx, float cy)
void xline (float x0, float y0, float x1, float y1, GC gc)
void xrect (float x0, float y0, float x1, float y1, GC gc)
void zoom (float mag)

Protected Attributes

int aspect_
GC background_
int bClip_
BBox canvas_clip_
BBox clip_
Tcl_Command cmd_
AnimationcurObj_
float cx_
float cy_
int default_font_
TagdefTag_
EditType editing_stage_
GC font_gc_ [NFONT]
Tk_Font fonts_ [NFONT]
int height_
float link_end_x_
float link_end_y_
float link_start_x_
float link_start_y_
float magnification_
Transform matrix_
NetModelmodel_
int nfont_
Drawable offscreen_
float oldx_
float oldy_
float panx_
float pany_
double pixelsPerMM_
BBox rb_
Tk_Window tk_
int width_
char * xscroll_
char * yscroll_

Detailed Description

Definition at line 67 of file editview.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index