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

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

TestView Class Reference

Inheritance diagram for TestView:
Inheritance graph
[legend]
Collaboration diagram for TestView:
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)
void circle (float x, float y, float r, int color)
void clearClipRect ()
void destroy ()
void draw ()
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
void line (float x0, float y0, float x1, float y1, int color)
void map (float &x, float &y) const
void polygon (const float *x, const float *y, int n, int color)
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 string (const char *text, double world_x, double world_y, double size, const char *color=NULL)
void string (float fx, float fy, float dim, const char *s, int anchor, const char *color=NULL)
 TestView (const char *name, NetModel *m)
Tk_Window tk ()
int width ()

Static Public Member Functions

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

Public Attributes

TestViewnext_

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 zoom (float mag)

Protected Attributes

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

Detailed Description

Definition at line 54 of file testview.h.


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

Generated by  Doxygen 1.6.0   Back to index