Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Xdraw Class Reference

#include <Xdraw.h>

Inheritance diagram for Xdraw:

gui::Draw2D List of all members.

Public Methods

 Xdraw (int xsize=500, int ysize=500)
 ~Xdraw ()
void setDisplay (Display*,Window)
void setXorMode (int)
void drawRect (const Rectangle &)
void resize (int xsize=0, int ysize=0)
int xwin (float) const
int ywin (float) const
bool clip (float x, float y, int& x1, int& y1, int& x2, int& y2)
float xnorm (int) const
float ynorm (int) const
void draw_string (float x, float y, const char * title, int size=0)
void draw_string (const char* string, int size)
void move_to (float, float)
void line_to (float, float)
void draw_marker (float,float)
virtual void fill_polygon (const float* xy, int npoints, Shading pattern)
void flush ()
void set_quad (int quad, const char * title = 0, int selected=0)
void set_defaults ()
void set_line_style (int)
void set_col_index (int)

Private Attributes

Display* mydisplay
Window mywindow
int myscreen
float lastx
float lasty
int flSingle
int selected
GC gc
HRectangle currentQuad
HRectangle screen
HRectangle quadrant [4]

Constructor & Destructor Documentation

Xdraw::Xdraw ( int width = 500,
int height = 500 )
 

Definition at line 25 of file Xdraw.cxx.

Xdraw::~Xdraw ( )
 

Definition at line 62 of file Xdraw.cxx.


Member Function Documentation

bool Xdraw::clip ( float x,
float y,
int & ix1,
int & iy1,
int & ix2,
int & iy2 )
 

Definition at line 90 of file Xdraw.cxx.

Referenced by line_to().

void Xdraw::drawRect ( const Xdraw::Rectangle & selection )
 

Definition at line 325 of file Xdraw.cxx.

Referenced by XScene::processEvent().

void Xdraw::draw_marker ( float x,
float y ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 172 of file Xdraw.cxx.

void Xdraw::draw_string ( const char * string,
int size ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 73 of file Xdraw.cxx.

void Xdraw::draw_string ( float x,
float y,
const char * string,
int size = 0 ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 67 of file Xdraw.cxx.

void Xdraw::fill_polygon ( const float * xy,
int npoints,
Shading pattern ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 136 of file Xdraw.cxx.

void Xdraw::flush ( ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 155 of file Xdraw.cxx.

void Xdraw::line_to ( float x,
float y ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 125 of file Xdraw.cxx.

Referenced by drawRect().

void Xdraw::move_to ( float x,
float y ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 82 of file Xdraw.cxx.

Referenced by drawRect(), and draw_string().

void Xdraw::resize ( int xsize = 0,
int ysize = 0 )
 

Definition at line 304 of file Xdraw.cxx.

Referenced by Xdraw(), and XScene::redisplay().

void Xdraw::setDisplay ( Display * d,
Window w )
 

Definition at line 35 of file Xdraw.cxx.

Referenced by XScene::XScene(), and XScene::redisplay().

void Xdraw::setXorMode ( int on )
 

Definition at line 248 of file Xdraw.cxx.

Referenced by XScene::processEvent().

void Xdraw::set_col_index ( int index ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 299 of file Xdraw.cxx.

void Xdraw::set_defaults ( ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 234 of file Xdraw.cxx.

Referenced by XScene::redisplay(), and set_quad().

void Xdraw::set_line_style ( int style ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 281 of file Xdraw.cxx.

void Xdraw::set_quad ( int quadnr,
const char * title = 0,
int selected = 0 ) [virtual]
 

Reimplemented from gui::Draw2D.

Definition at line 202 of file Xdraw.cxx.

float Xdraw::xnorm ( int x ) const
 

Definition at line 21 of file Xdraw.cxx.

Referenced by XScene::processEvent().

int Xdraw::xwin ( float x ) const
 

Definition at line 19 of file Xdraw.cxx.

Referenced by clip(), draw_marker(), fill_polygon(), and set_quad().

float Xdraw::ynorm ( int y ) const
 

Definition at line 22 of file Xdraw.cxx.

Referenced by XScene::processEvent().

int Xdraw::ywin ( float y ) const
 

Definition at line 20 of file Xdraw.cxx.

Referenced by clip(), draw_marker(), fill_polygon(), and set_quad().


Member Data Documentation

HRectangle Xdraw::currentQuad [private]
 

Definition at line 88 of file Xdraw.h.

int Xdraw::flSingle [private]
 

Definition at line 79 of file Xdraw.h.

GC Xdraw::gc [private]
 

Definition at line 80 of file Xdraw.h.

float Xdraw::lastx [private]
 

Definition at line 78 of file Xdraw.h.

float Xdraw::lasty [private]
 

Definition at line 78 of file Xdraw.h.

Display * Xdraw::mydisplay [private]
 

Definition at line 75 of file Xdraw.h.

int Xdraw::myscreen [private]
 

Definition at line 77 of file Xdraw.h.

Window Xdraw::mywindow [private]
 

Definition at line 76 of file Xdraw.h.

HRectangle Xdraw::quadrant[4] [private]
 

Definition at line 90 of file Xdraw.h.

HRectangle Xdraw::screen [private]
 

Definition at line 89 of file Xdraw.h.

int Xdraw::selected [private]
 

Definition at line 79 of file Xdraw.h.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:18:18 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000