ShmImage2D Class Reference

#include <xshmimg.h>

List of all members.

Public Member Functions

 ShmImage2D (GtkWidget *area, int Width, int Height, int xorigin, int yorigin)
 ~ShmImage2D ()
void Resize (int Width, int Height)
GnomeCanvasItem * GetGimg ()
unsigned long GetMaxCol ()
void MkPalette (char *name=NULL)
void saveimage (gchar *name)
void SetZoomFac (int zf)
void PutPixel (unsigned long x, unsigned long y, unsigned long val)
void ShowPic (int xs=0, int ys=0)
void ShowSubPic (int xs, int ys, int w, int h)
 ShmImage2D (GtkWidget *area, int Width, int Height, int xorigin, int yorigin)
 ~ShmImage2D ()
void Resize (int Width, int Height)
GnomeCanvasItem * GetGimg ()
unsigned long GetMaxCol ()
void MkPalette (char *name=NULL)
void saveimage (gchar *name)
void SetZoomFac (int zf)
void PutPixel (unsigned long x, unsigned long y, unsigned long val)
void ShowPic (int xs=0, int ys=0)
void ShowSubPic (int xs, int ys, int w, int h)

Private Attributes

unsigned long ULColorTable [IMGMAXCOLORENTRYS+2]
GnomeCanvasPoints * red_line_points
GdkPixbuf * gdk_pixbuf
GtkWidget * imgarea
GnomeCanvasItem * gitem_image
GnomeCanvasItem * gitem_red_line
unsigned int maxcol
int rowstride
int bpp
int width
int height
int x0
int y0
guchar * pixels
int ZoomFac
GnomeCanvasPoints * red_line_points
GdkPixbuf * gdk_pixbuf
GtkWidget * imgarea
GnomeCanvasItem * gitem_image
GnomeCanvasItem * gitem_red_line
guchar * pixels


Detailed Description

Definition at line 49 of file xshmimg.h.


Constructor & Destructor Documentation

ShmImage2D::ShmImage2D GtkWidget *  area,
int  Width,
int  Height,
int  xorigin,
int  yorigin
 

Definition at line 38 of file xshmimg.C.

References gdk_pixbuf, gitem_image, gitem_red_line, imgarea, maxcol, MkPalette(), red_line_points, Resize(), x0, y0, and ZoomFac.

ShmImage2D::~ShmImage2D  ) 
 

Definition at line 106 of file xshmimg.C.

References gdk_pixbuf, gitem_image, gitem_red_line, and red_line_points.

ShmImage2D::ShmImage2D GtkWidget *  area,
int  Width,
int  Height,
int  xorigin,
int  yorigin
 

ShmImage2D::~ShmImage2D  ) 
 


Member Function Documentation

GnomeCanvasItem* ShmImage2D::GetGimg  )  [inline]
 

Definition at line 58 of file xshmimg.h.

References gitem_image.

GnomeCanvasItem* ShmImage2D::GetGimg  )  [inline]
 

Definition at line 58 of file xshmimg.h.

References gitem_image.

Referenced by ViewControl::ViewControl().

unsigned long ShmImage2D::GetMaxCol  )  [inline]
 

Definition at line 60 of file xshmimg.h.

References maxcol.

unsigned long ShmImage2D::GetMaxCol  )  [inline]
 

Definition at line 60 of file xshmimg.h.

References maxcol.

Referenced by Grey2D::draw().

void ShmImage2D::MkPalette char *  name = NULL  ) 
 

void ShmImage2D::MkPalette char *  name = NULL  ) 
 

Definition at line 114 of file xshmimg.C.

References IMGMAXCOLORENTRYS, maxcol, MIN, ULColorTable, and WORDS_BIGENDIAN.

Referenced by Grey2D::draw(), and ShmImage2D().

void ShmImage2D::PutPixel unsigned long  x,
unsigned long  y,
unsigned long  val
 

void ShmImage2D::PutPixel unsigned long  x,
unsigned long  y,
unsigned long  val
 

Definition at line 201 of file xshmimg.C.

References bpp, pixels, rowstride, and ULColorTable.

Referenced by Grey2D::update().

void ShmImage2D::Resize int  Width,
int  Height
 

void ShmImage2D::Resize int  Width,
int  Height
 

Definition at line 63 of file xshmimg.C.

References bpp, DBG_L3, FALSE, gdk_pixbuf, gitem_image, gitem_red_line, height, imgarea, pixels, red_line_points, rowstride, width, XSM_DEBUG, y0, and ZoomFac.

Referenced by ViewControl::Resize(), and ShmImage2D().

void ShmImage2D::saveimage gchar *  name  ) 
 

void ShmImage2D::saveimage gchar *  name  ) 
 

Definition at line 157 of file xshmimg.C.

Referenced by ViewControl::view_file_saveimage_callback().

void ShmImage2D::SetZoomFac int  zf  )  [inline]
 

Definition at line 65 of file xshmimg.h.

References ZoomFac.

void ShmImage2D::SetZoomFac int  zf  )  [inline]
 

Definition at line 65 of file xshmimg.h.

References ZoomFac.

void ShmImage2D::ShowPic int  xs = 0,
int  ys = 0
 

void ShmImage2D::ShowPic int  xs = 0,
int  ys = 0
 

Definition at line 163 of file xshmimg.C.

References gdk_pixbuf, gitem_image, gitem_red_line, red_line_points, and y0.

Referenced by Grey2D::update().

void ShmImage2D::ShowSubPic int  xs,
int  ys,
int  w,
int  h
 

void ShmImage2D::ShowSubPic int  xs,
int  ys,
int  w,
int  h
 

Definition at line 173 of file xshmimg.C.

References gdk_pixbuf, gitem_image, gitem_red_line, height, red_line_points, width, y0, and ZoomFac.

Referenced by Grey2D::update().


Member Data Documentation

int ShmImage2D::bpp [private]
 

Definition at line 85 of file xshmimg.h.

Referenced by PutPixel(), and Resize().

GdkPixbuf* ShmImage2D::gdk_pixbuf [private]
 

Definition at line 78 of file xshmimg.h.

GdkPixbuf* ShmImage2D::gdk_pixbuf [private]
 

Definition at line 78 of file xshmimg.h.

Referenced by Resize(), ShmImage2D(), ShowPic(), ShowSubPic(), and ~ShmImage2D().

GnomeCanvasItem* ShmImage2D::gitem_image [private]
 

Definition at line 81 of file xshmimg.h.

GnomeCanvasItem* ShmImage2D::gitem_image [private]
 

Definition at line 81 of file xshmimg.h.

Referenced by GetGimg(), Resize(), ShmImage2D(), ShowPic(), ShowSubPic(), and ~ShmImage2D().

GnomeCanvasItem* ShmImage2D::gitem_red_line [private]
 

Definition at line 82 of file xshmimg.h.

GnomeCanvasItem* ShmImage2D::gitem_red_line [private]
 

Definition at line 82 of file xshmimg.h.

Referenced by Resize(), ShmImage2D(), ShowPic(), ShowSubPic(), and ~ShmImage2D().

int ShmImage2D::height [private]
 

Definition at line 85 of file xshmimg.h.

Referenced by Resize(), and ShowSubPic().

GtkWidget* ShmImage2D::imgarea [private]
 

Definition at line 80 of file xshmimg.h.

GtkWidget* ShmImage2D::imgarea [private]
 

Definition at line 80 of file xshmimg.h.

Referenced by Resize(), and ShmImage2D().

unsigned int ShmImage2D::maxcol [private]
 

Definition at line 84 of file xshmimg.h.

Referenced by GetMaxCol(), MkPalette(), and ShmImage2D().

guchar* ShmImage2D::pixels [private]
 

Definition at line 86 of file xshmimg.h.

guchar* ShmImage2D::pixels [private]
 

Definition at line 86 of file xshmimg.h.

Referenced by PutPixel(), and Resize().

GnomeCanvasPoints* ShmImage2D::red_line_points [private]
 

Definition at line 77 of file xshmimg.h.

GnomeCanvasPoints* ShmImage2D::red_line_points [private]
 

Definition at line 77 of file xshmimg.h.

Referenced by Resize(), ShmImage2D(), ShowPic(), ShowSubPic(), and ~ShmImage2D().

int ShmImage2D::rowstride [private]
 

Definition at line 85 of file xshmimg.h.

Referenced by PutPixel(), and Resize().

unsigned long ShmImage2D::ULColorTable [private]
 

Definition at line 75 of file xshmimg.h.

Referenced by MkPalette(), and PutPixel().

int ShmImage2D::width [private]
 

Definition at line 85 of file xshmimg.h.

Referenced by Resize(), and ShowSubPic().

int ShmImage2D::x0 [private]
 

Definition at line 85 of file xshmimg.h.

Referenced by ShmImage2D().

int ShmImage2D::y0 [private]
 

Definition at line 85 of file xshmimg.h.

Referenced by Resize(), ShmImage2D(), ShowPic(), and ShowSubPic().

int ShmImage2D::ZoomFac [private]
 

Definition at line 88 of file xshmimg.h.

Referenced by Resize(), SetZoomFac(), ShmImage2D(), and ShowSubPic().


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 09:06:16 2006 for GXSM by  doxygen 1.4.6