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

#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <X11/cursorfont.h>
#include <X11/xpm.h>
#include <pthread.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include "general.h"
#include <math.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>

Go to the source code of this file.

Classes

class  SYWindow
struct  SYWindow::YPoint
struct  SYWindow::YLine
struct  SYWindow::ZInd
class  YWindow

Defines

#define _DISPLAY_VERSION   1.05
#define DEPTH   32
#define DEPTH_REAL   8
#define RGB   RGB32
#define GETRED   RED32
#define GETGREEN   GREEN32
#define GETBLUE   BLUE32
#define RGB32(R, G, B)   ((unsigned)(R)<<16)+((unsigned)(G)<<8)+((unsigned)(B))
#define RGB16(R, G, B)   ((unsigned)((R)&0xF8)<<8)+((unsigned)((G)&0xF8)<<3)+((unsigned)((B)>>3))
#define RGBany(R, G, B)
#define RED32(C)   (((C&0xFF0000)>>16)*1.0/(0x00FF))
#define GREEN32(C)   (((C&0xFF00)>>8)*1.0/(0x00FF))
#define BLUE32(C)   (((C&0x00FF)*1.0/(0x00FF)))
#define RED16(C)   (((C&0xF800)>>11)*1.0/(0x001F))
#define GREEN16(C)   (((C&0x07C0)>>6)*1.0/(0x001F))
#define BLUE16(C)   (((C&0x001F)*1.0/(0x001F)))
#define REDany(C)   (((C&CCT[0][3])>>CCT[0][4])*1.0/(CCT[0][5]))
#define GREENany(C)   (((C&CCT[1][3])>>CCT[1][4])*1.0/(CCT[1][5]))
#define BLUEany(C)   (((C&CCT[2][3])>>CCT[2][4])*1.0/(CCT[2][5]))

Enumerations

enum  { MaxPoints = 40000, MaxLines = 5000, rInterval = 50, DSCLEN = 30 }

Functions

void delay (long sec, long usec)

Variables

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


Define Documentation

#define _DISPLAY_VERSION   1.05

Definition at line 16 of file display.h.

#define BLUE16 (  )     (((C&0x001F)*1.0/(0x001F)))

Definition at line 102 of file display.h.

#define BLUE32 (  )     (((C&0x00FF)*1.0/(0x00FF)))

Definition at line 98 of file display.h.

#define BLUEany (  )     (((C&CCT[2][3])>>CCT[2][4])*1.0/(CCT[2][5]))

Definition at line 106 of file display.h.

Referenced by SYWindow::Draw3DLinetoPS(), and SYWindow::Draw3DPixeltoPS().

#define DEPTH   32

Definition at line 73 of file display.h.

#define DEPTH_REAL   8

Definition at line 76 of file display.h.

#define GETBLUE   BLUE32

Definition at line 86 of file display.h.

#define GETGREEN   GREEN32

Definition at line 85 of file display.h.

#define GETRED   RED32

Definition at line 84 of file display.h.

#define GREEN16 (  )     (((C&0x07C0)>>6)*1.0/(0x001F))

Definition at line 101 of file display.h.

#define GREEN32 (  )     (((C&0xFF00)>>8)*1.0/(0x00FF))

Definition at line 97 of file display.h.

#define GREENany (  )     (((C&CCT[1][3])>>CCT[1][4])*1.0/(CCT[1][5]))

Definition at line 105 of file display.h.

Referenced by SYWindow::Draw3DLinetoPS(), and SYWindow::Draw3DPixeltoPS().

#define RED16 (  )     (((C&0xF800)>>11)*1.0/(0x001F))

Definition at line 100 of file display.h.

#define RED32 (  )     (((C&0xFF0000)>>16)*1.0/(0x00FF))

Definition at line 96 of file display.h.

#define REDany (  )     (((C&CCT[0][3])>>CCT[0][4])*1.0/(CCT[0][5]))

Definition at line 104 of file display.h.

Referenced by SYWindow::Draw3DLinetoPS(), and SYWindow::Draw3DPixeltoPS().

#define RGB   RGB32

Definition at line 83 of file display.h.

#define RGB16 ( R,
G,
B   )     ((unsigned)((R)&0xF8)<<8)+((unsigned)((G)&0xF8)<<3)+((unsigned)((B)>>3))

Definition at line 90 of file display.h.

#define RGB32 ( R,
G,
B   )     ((unsigned)(R)<<16)+((unsigned)(G)<<8)+((unsigned)(B))

Definition at line 89 of file display.h.

#define RGBany ( R,
G,
B   ) 

Value:

((((unsigned)(R)&CCT[0][0])<<CCT[0][1])>>CCT[0][2])\
                       +((((unsigned)(G)&CCT[1][0])<<CCT[1][1])>>CCT[1][2])\
                       +((((unsigned)(B)&CCT[2][0])<<CCT[2][1])>>CCT[2][2])

Definition at line 92 of file display.h.

Referenced by SYWindow::AllocShortRGBColor().


Enumeration Type Documentation

anonymous enum

Enumerator:
MaxPoints 
MaxLines 
rInterval 
DSCLEN 

Definition at line 112 of file display.h.


Function Documentation

void delay ( long  sec,
long  usec 
) [inline]

Definition at line 116 of file display.h.

References NULL.

Referenced by SYWindow::Routine().


Variable Documentation

unsigned long colorconvert_16[3][6]

Definition at line 20 of file display.cpp.

unsigned long colorconvert_32[3][6]

Definition at line 23 of file display.cpp.


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