class NetView : public View


Inheritance:


Public Methods

virtual void BoundingBox(BBox &bb)
static int command(ClientData, Tcl_Interp*, int argc, char **argv)
static void DeleteCmdProc(ClientData cd)
NetView(const char* name, NetModel*)
int record(char *file)
NetView* next_; void draw();
void redrawModel()
virtual void render()
virtual ~NetView()

Protected Fields

Tcl_Command cmd_
NetModel* model_

Protected Methods

NetView(const char* name)
NetView(const char* name, NetModel*, int width, int height)

Inherited from View:

Public Fields

View* next_

Public Methods

virtual void circle(float x, float y, float r, int color)
void clearClipRect()
void destroy()
virtual void draw()
virtual void fill(const float* x, const float* y, int n, int color)
int getCoord(char *xs, char *ys, float &x, float &y)
static void handle(ClientData, XEvent*)
int height()
void imap(float& tx, float& ty)
virtual void line(float x0, float y0, float x1, float y1, int color)
void map(float& x, float& y)
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)
void setClipRect(BBox &)
void setFunction(int)
virtual void string(float fx, float fy, float dim, const char* s, int anchor, const char* color=NULL)
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

NetView(const char* name, NetModel*)

virtual ~NetView()

int record(char *file)
NetView* next_; void draw();

void redrawModel()

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

virtual void render()

virtual void BoundingBox(BBox &bb)

static void DeleteCmdProc(ClientData cd)

NetView(const char* name, NetModel*, int width, int height)

NetView(const char* name)

NetModel* model_

Tcl_Command cmd_


Direct child classes:
EditView

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