class EditView : public NetView


Inheritance:


Public Methods

virtual void BoundingBox(BBox &bb)
virtual void circle(float x, float y, float r, int color)
int cmdaddAgent(float, float, char*)
int cmdaddAgentLinker(float, float)
int cmdaddLink(float, float)
int cmdaddNode(float, float)
int cmdDeleteObj(float, float)
int cmdgetCurrentObj(float, float)
int cmdgetObjProperty(float, float)
int cmdMoveTo(float, float)
int cmdReleasePoint(float, float)
int cmdRemoveSel(float, float)
int cmdsetAgentProperty(int, char*, int)
int cmdsetLinkProperty(int, int, char*, int)
int cmdsetNodeProperty(int, char*, int)
int cmdSetPoint(float, float, int)
static int command(ClientData, Tcl_Interp*, int argc, char **argv)
static void DeleteCmdProc(ClientData)
virtual void draw()
EditView(const char* name, NetModel *m)
EditView(const char* name, NetModel *m, int height, int width)
virtual void fill(const float* x, const float* y, int n, int color)
virtual void line(float x0, float y0, float x1, float y1, int color)
void moveNode(Node *n)
virtual void polygon(const float* x, const float* y, int n, int color)
virtual void rect(float x0, float y0, float x1, float y1, int color)
virtual void render()
virtual void string(float fx, float fy, float dim, const char* s, int anchor)
void view_mode()
virtual ~EditView()

Protected Classes

enum EditType

Protected Fields

Animation* curObj_
float cx_
current point
Tag* defTag_
Grouping/interactive stuff
float link_end_x_
link origin
float link_start_x_
link origin
EditType objType_
current selection type
float oldx_
old rubber band position, used for erasion
BBox rb_
rubber band rectangle

Protected Methods

inline void startRubberBand(float cx, float cy)
inline 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)
xor-draw rectangle

Protected

enum EditType

Inherited from NetView:

Public Methods

int record(char *file)
void redrawModel()

Protected Fields

Tcl_Command cmd_
NetModel* model_

Inherited from View:

Public Fields

View* next_

Public Methods

void clearClipRect()
void destroy()
int getCoord(char *xs, char *ys, float &x, float &y)
static void handle(ClientData, XEvent*)
int height()
void imap(float& tx, float& ty)
void map(float& x, float& y)
void setClipRect(BBox &)
void setFunction(int)
Tk_Window tk()
int width()

Public

#define ANCHOR_CENTER
#define ANCHOR_EAST
#define ANCHOR_NORTH
#define ANCHOR_SOUTH
#define ANCHOR_WEST

Protected Fields

int aspect_
GC background_
int bClip_
BBox clip_
GC font_gc_[NFONT]
Tk_Font fonts_[NFONT]
int height_
float magnification_
Transform matrix_
int nfont_
Drawable offscreen_
float panx_
float pany_
double pixelsPerMM_
Tk_Window tk_
int width_
char* xscroll_
char* yscroll_

Protected Methods

void free_fonts()
void load_fonts()
int lookup_font(int d)
void pan(float x, float y)
void resize(int width, int height)
void zoom(float mag)

Protected

#define NFONT

Documentation

EditView(const char* name, NetModel *m)

EditView(const char* name, NetModel *m, int height, int width)

virtual ~EditView()

static int command(ClientData, Tcl_Interp*, int argc, char **argv)

static void DeleteCmdProc(ClientData)

virtual void draw()

virtual void render()

virtual void BoundingBox(BBox &bb)

int cmdSetPoint(float, float, int)

int cmdMoveTo(float, float)

int cmdReleasePoint(float, float)

int cmdRemoveSel(float, float)

int cmdaddNode(float, float)

int cmdaddLink(float, float)

int cmdaddAgent(float, float, char*)

int cmdaddAgentLinker(float, float)

int cmdgetCurrentObj(float, float)

int cmdgetObjProperty(float, float)

int cmdsetNodeProperty(int, char*, int)

int cmdsetAgentProperty(int, char*, int)

int cmdsetLinkProperty(int, int, char*, int)

int cmdDeleteObj(float, float)

void moveNode(Node *n)

virtual void line(float x0, float y0, float x1, float y1, int color)

virtual void rect(float x0, float y0, float x1, float y1, int color)

virtual void polygon(const float* x, const float* y, int n, int color)

virtual void fill(const float* x, const float* y, int n, int color)

virtual void circle(float x, float y, float r, int color)

virtual void string(float fx, float fy, float dim, const char* s, int anchor)

void view_mode()

void xrect(float x0, float y0, float x1, float y1, GC gc)
xor-draw rectangle

void xline(float x0, float y0, float x1, float y1, GC gc)

enum EditType

inline void startRubberBand(float cx, float cy)

inline void startSetObject(Animation *p, float cx, float cy)

Tag* defTag_
Grouping/interactive stuff

Animation* curObj_

float cx_
current point

EditType objType_
current selection type

BBox rb_
rubber band rectangle

float oldx_
old rubber band position, used for erasion

float link_start_x_
link origin

float link_end_x_
link origin


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de