ARB
Classes | Macros | Typedefs | Functions | Variables
AW_print.cxx File Reference
#include "aw_root.hxx"
#include "aw_common.hxx"
#include "aw_xfont.hxx"
#include "aw_rgb.hxx"
#include <arb_msg.h>
#include <map>
#include <list>
#include <vector>
#include <string>
Include dependency graph for AW_print.cxx:

Go to the source code of this file.

Classes

struct  Spoolable
 
class  SpoolableString
 
class  SpoolableColor
 
class  UsedColor
 
class  ColorMap
 
class  SPOOLER
 

Macros

#define XFIG_DEFAULT_COLOR_COUNT   32
 
#define XFIG_USER_COLOR_COUNT   512
 
#define XFIG_USER_COLOR_FIRST   XFIG_DEFAULT_COLOR_COUNT
 
#define XFIG_USER_COLOR_LAST   (XFIG_USER_COLOR_FIRST+XFIG_USER_COLOR_COUNT-1)
 
#define spoolf(format)   spooler->put(GBS_global_string format)
 
#define spools(str)   spooler->put(str)
 
#define spoolColor(rgb)   color_mode ? spooler->putColor(rgb) : spooler->putDefaultColor()
 
#define spoolDefaultColor()   spooler->putDefaultColor()
 

Typedefs

typedef SmartPtr< SpoolableSpoolablePtr
 

Functions

double colorDistSquare (const AW_rgb &col1, const AW_rgb &col2)
 
double screen2printer (double val)
 
int print_pos (AW_pos screen_pos)
 
static bool AW_draw_string_on_printer (AW_device *device, int gc, const char *textBuffer, size_t textStart, size_t textLen, const AW::Position &pos, AW_CL)
 

Variables

static AW_rgb figStdColors [32]
 
const double dpi_screen2printer = double(DPI_PRINTER)/DPI_SCREEN
 

Macro Definition Documentation

#define XFIG_DEFAULT_COLOR_COUNT   32

Definition at line 26 of file AW_print.cxx.

Referenced by ColorMap::ColorMap(), and ColorMap::mapColors().

#define XFIG_USER_COLOR_COUNT   512

Definition at line 27 of file AW_print.cxx.

Referenced by SPOOLER::spool().

#define XFIG_USER_COLOR_FIRST   XFIG_DEFAULT_COLOR_COUNT
#define XFIG_USER_COLOR_LAST   (XFIG_USER_COLOR_FIRST+XFIG_USER_COLOR_COUNT-1)

Definition at line 30 of file AW_print.cxx.

Referenced by UsedColor::assign(), and ColorMap::printUserColorDefinitions().

#define spoolf (   format)    spooler->put(GBS_global_string format)

Definition at line 348 of file AW_print.cxx.

#define spools (   str)    spooler->put(str)

Definition at line 349 of file AW_print.cxx.

#define spoolColor (   rgb)    color_mode ? spooler->putColor(rgb) : spooler->putDefaultColor()

Definition at line 350 of file AW_print.cxx.

#define spoolDefaultColor ( )    spooler->putDefaultColor()

Definition at line 351 of file AW_print.cxx.

Typedef Documentation

Definition at line 59 of file AW_print.cxx.

Function Documentation

double colorDistSquare ( const AW_rgb col1,
const AW_rgb col2 
)
inline

Definition at line 130 of file AW_print.cxx.

References AW_rgb_diff::b(), diff(), AW_rgb_diff::g(), and AW_rgb_diff::r().

double screen2printer ( double  val)
inline

Definition at line 342 of file AW_print.cxx.

References dpi_screen2printer.

Referenced by print_pos().

int print_pos ( AW_pos  screen_pos)
inline

Definition at line 343 of file AW_print.cxx.

References AW_INT, and screen2printer().

static bool AW_draw_string_on_printer ( AW_device device,
int  gc,
const char textBuffer,
size_t  textStart,
size_t  textLen,
const AW::Position pos,
AW_CL   
)
static

Definition at line 501 of file AW_print.cxx.

References DOWNCAST.

Variable Documentation

AW_rgb figStdColors[32]
static

Definition at line 64 of file AW_print.cxx.

Referenced by ColorMap::ColorMap().

const double dpi_screen2printer = double(DPI_PRINTER)/DPI_SCREEN

Definition at line 340 of file AW_print.cxx.

Referenced by screen2printer().