class View


Inheritance:


Public Fields

View* next_

Public Methods

virtual void BoundingBox(BBox&)
virtual void circle(float x, float y, float r, int color)
void clearClipRect()
static int command(ClientData, Tcl_Interp*, int argc, char **argv)
Tcl command hooks
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)
Graphics interface
void map(float& x, float& y)
Interface to transform_'s map
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 redrawModel()
virtual void render(BBox &)
virtual void render()
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()
View(const char* name, int aspect, int width, int height)
int width()
virtual ~View()

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_
information for panning and zooming
Transform matrix_
transformation matrix for this view of the model
int nfont_
Drawable offscreen_
float panx_
float pany_
double pixelsPerMM_
Tk_Window tk_
int width_
char* xscroll_
scrollbar widgets
char* yscroll_

Protected Methods

void free_fonts()
void load_fonts()
Font structures
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

View(const char* name, int aspect, int width, int height)

virtual ~View()

View* next_

virtual void draw()

void redrawModel()

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

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)

#define ANCHOR_CENTER

#define ANCHOR_NORTH

#define ANCHOR_SOUTH

#define ANCHOR_EAST

#define ANCHOR_WEST

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

int width()

int height()

Tk_Window tk()

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

static void handle(ClientData, XEvent*)

void destroy()

int getCoord(char *xs, char *ys, float &x, float &y)

void map(float& x, float& y)
Interface to transform_'s map

void imap(float& tx, float& ty)

virtual void render()

virtual void render(BBox &)

virtual void BoundingBox(BBox&)

void setClipRect(BBox &)

void clearClipRect()

void setFunction(int)

void resize(int width, int height)

Transform matrix_
transformation matrix for this view of the model

float magnification_
information for panning and zooming

float panx_

float pany_

int aspect_

char* xscroll_
scrollbar widgets

char* yscroll_

int width_

int height_

Tk_Window tk_

Drawable offscreen_

GC background_

void zoom(float mag)

void pan(float x, float y)

double pixelsPerMM_

void load_fonts()
Font structures

void free_fonts()

int lookup_font(int d)

#define NFONT

Tk_Font fonts_[NFONT]

GC font_gc_[NFONT]

int nfont_

BBox clip_

int bClip_


Direct child classes:
TestView
PSView
NetView
GraphView

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