My Documents/Codes/MD++.svn/trunk/src/display.cpp File Reference

#include "display.h"

Go to the source code of this file.

Defines

#define PBCSHIFT(a, shift, origin)   if(enable_pbc){a-=origin;a/=2;a+=shift;a-=rint(a);a*=2;a+=origin;}
#define INFO_Printf   printf
#define _DoDraw(_1, _2, _3, _4, _5, _6)
#define _XDrawLine(a, b, Z0, c, d, Z1)
#define _XDash   XSetLineAttributes(theDisplay, gc, 1, LineOnOffDash, CapButt, JoinMiter)
#define _XSold   XSetLineAttributes(theDisplay, gc, 1, LineSolid, CapButt, JoinMiter)
#define _XSetLine(a, b)   {if((a)&& !(b)) _XDash; else if(!(a)&&(b)) _XSold;}
#define _toler   1.0e-6

Variables

unsigned long colorconvert_16 [3][6]
unsigned long colorconvert_32 [3][6]


Define Documentation

#define _DoDraw ( _1,
_2,
_3,
_4,
_5,
_6   ) 

Value:

_XDrawLine(_1 A11 _2 A12 _3 A13,\
               _1 A21 _2 A22 _3 A23,\
               _1 A31 _2 A32 _3 A33,\
               _4 A11 _5 A12 _6 A13,\
               _4 A21 _5 A22 _6 A23,\
               _4 A31 _5 A32 _6 A33)

Referenced by YWindow::drawBoxFrame().

#define _toler   1.0e-6

Referenced by YWindow::rotateTo().

#define _XDash   XSetLineAttributes(theDisplay, gc, 1, LineOnOffDash, CapButt, JoinMiter)

Referenced by YWindow::drawBoxFrame().

#define _XDrawLine ( a,
b,
Z0,
c,
d,
Z1   ) 

Value:

XDrawLine(theDisplay,pixmap,gc,\
                   (int)CX(a,Z0),(int)CY(b,Z0),(int)CX(c,Z1),(int)CY(d,Z1))

#define _XSetLine ( a,
 )     {if((a)&& !(b)) _XDash; else if(!(a)&&(b)) _XSold;}

Referenced by YWindow::drawBoxFrame().

#define _XSold   XSetLineAttributes(theDisplay, gc, 1, LineSolid, CapButt, JoinMiter)

Referenced by YWindow::drawBoxFrame().

#define INFO_Printf   printf

#define PBCSHIFT ( a,
shift,
origin   )     if(enable_pbc){a-=origin;a/=2;a+=shift;a-=rint(a);a*=2;a+=origin;}


Variable Documentation

unsigned long colorconvert_16[3][6]

Initial value:

{{0xF8,8,0,0xF800,11,0x1F},
                                     {0xF8,3,0,0x7C0,  6,0x1F},
                                     {0xF8,0,0,0x1F,   0,0x1F}}

Definition at line 20 of file display.cpp.

Referenced by SYWindow::SYWindow().

unsigned long colorconvert_32[3][6]

Initial value:

{{0xFF,16,0,0xFF0000,16,0xFF},
                                     {0xFF, 8,0,0xFF00,   8,0xFF},
                                     {0xFF, 0,0,0xFF,     0,0xFF}}

Definition at line 23 of file display.cpp.

Referenced by SYWindow::SYWindow().


Generated on Tue Oct 28 15:21:09 2008 for MD++ by  doxygen 1.5.7.1