class PSView : public View


Inheritance:


Public Fields

PSView* next_

Public Methods

virtual void BoundingBox(BBox& bb)
void circle(float x, float y, float r, int color)
static int command(ClientData, Tcl_Interp*, int argc, char **argv)
void draw()
void fill(const float* x, const float* y, int n, int color)
int height()
void line(float x0, float y0, float x1, float y1, int color)
Graphics interface
void polygon(const float* x, const float* y, int n, int color)
PSView(const char *name, NetModel *m)
void rect(float x0, float y0, float x1, float y1, int color)
void redrawModel()
virtual void render()
void string(float fx, float fy, float dim, const char* s, int anchor, const char* color = NULL)
int width()

Protected Fields

FILE* file_
NetModel* model_
char* name_
float scale_

Protected Methods

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

Inherited from View:

Public Methods

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

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()
int lookup_font(int d)

Protected

#define NFONT

Documentation

PSView(const char *name, NetModel *m)

PSView* next_

void draw()

void redrawModel()

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

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

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

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

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

void string(float fx, float fy, float dim, const char* s, int anchor, const char* color = NULL)

int width()

int height()

virtual void render()

virtual void BoundingBox(BBox& bb)

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

void resize(int width, int height)

FILE* file_

NetModel* model_

char* name_

float scale_

void zoom(float mag)

void pan(float x, float y)

void load_fonts()


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