Powered by Pair ImageMagick logo
Image Magick
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Magick::Pixels Class Reference

#include <Pixels.h>

Collaboration diagram for Magick::Pixels:

Collaboration graph
[legend]

Public Member Functions

 Pixels (Magick::Image &image_)
 ~Pixels (void)
PixelPacketget (const int x_, const int y_, const unsigned int columns_, const unsigned int rows_)
const PixelPacketgetConst (const int x_, const int y_, const unsigned int columns_, const unsigned int rows_)
void sync (void)
PixelPacketset (const int x_, const int y_, const unsigned int columns_, const unsigned int rows_)
IndexPacketindexes (void)
int x (void) const
int y (void) const
unsigned int columns (void) const
unsigned int rows (void) const
 Pixels (Magick::Image &image_)
 ~Pixels (void)
PixelPacketget (const int x_, const int y_, const unsigned int columns_, const unsigned int rows_)
const PixelPacketgetConst (const int x_, const int y_, const unsigned int columns_, const unsigned int rows_)
void sync (void)
PixelPacketset (const int x_, const int y_, const unsigned int columns_, const unsigned int rows_)
IndexPacketindexes (void)
int x (void) const
int y (void) const
unsigned int columns (void) const
unsigned int rows (void) const

Private Member Functions

 Pixels (const Pixels &pixels_)
const Pixelsoperator= (const Pixels &pixels_)
 Pixels (const Pixels &pixels_)
const Pixelsoperator= (const Pixels &pixels_)

Private Attributes

Magick::Image _image
MagickLib::ViewInfo_view
int _x
int _y
unsigned int _columns
unsigned int _rows
MagickLib::ViewInfo_view

Constructor & Destructor Documentation

Magick::Pixels::Pixels Magick::Image image_  ) 
 

Definition at line 23 of file Pixels.cpp.

References _image, _view, OpenCacheView(), Pixels(), and Magick::Image::throwImageException().

Referenced by Pixels().

00024 : _image(image_), 00025 _view(OpenCacheView(_image.image())), 00026 _x(0), 00027 _y(0), 00028 _columns(0), 00029 _rows(0) 00030 { 00031 if (!_view) 00032 _image.throwImageException(); 00033 }

Here is the call graph for this function:

Magick::Pixels::~Pixels void   ) 
 

Definition at line 36 of file Pixels.cpp.

References _view, and CloseCacheView().

00037 { 00038 if ( _view ) 00039 CloseCacheView( _view ); 00040 }

Here is the call graph for this function:

Magick::Pixels::Pixels const Pixels pixels_  )  [private]
 

Magick::Pixels::Pixels Magick::Image image_  ) 
 

Magick::Pixels::~Pixels void   ) 
 

Magick::Pixels::Pixels const Pixels pixels_  )  [private]
 


Member Function Documentation

unsigned int Magick::Pixels::columns void   )  const
 

unsigned int Magick::Pixels::columns void   )  const [inline]
 

Definition at line 115 of file Pixels.h.

References _columns.

00116 { 00117 return _columns; 00118 }

PixelPacket* Magick::Pixels::get const int  x_,
const int  y_,
const unsigned int  columns_,
const unsigned int  rows_
 

Magick::PixelPacket * Magick::Pixels::get const int  x_,
const int  y_,
const unsigned int  columns_,
const unsigned int  rows_
 

Definition at line 45 of file Pixels.cpp.

References _columns, _image, _rows, _view, _x, _y, get(), GetCacheView(), PixelPacket, and Magick::Image::throwImageException().

Referenced by Magick::Image::floodFillTexture(), get(), and Magick::Image::pixelColor().

00049 { 00050 _x = x_; 00051 _y = y_; 00052 _columns = columns_; 00053 _rows = rows_; 00054 00055 PixelPacket* pixels = GetCacheView( _view, x_, y_, columns_, rows_ ); 00056 00057 if ( !pixels ) 00058 _image.throwImageException(); 00059 00060 return pixels; 00061 }

Here is the call graph for this function:

const PixelPacket* Magick::Pixels::getConst const int  x_,
const int  y_,
const unsigned int  columns_,
const unsigned int  rows_
 

const Magick::PixelPacket * Magick::Pixels::getConst const int  x_,
const int  y_,
const unsigned int  columns_,
const unsigned int  rows_
 

Definition at line 65 of file Pixels.cpp.

References _columns, _rows, _view, _x, _y, AcquireCacheView(), DestroyExceptionInfo(), ExceptionInfo, getConst(), GetExceptionInfo(), PixelPacket, and Magick::throwException().

Referenced by getConst().

00068 { 00069 _x = x_; 00070 _y = y_; 00071 _columns = columns_; 00072 _rows = rows_; 00073 00074 ExceptionInfo exception; 00075 GetExceptionInfo( &exception ); 00076 00077 const PixelPacket* pixels = 00078 AcquireCacheView(_view, x_, y_, columns_, rows_, &exception ); 00079 00080 if ( !pixels ) 00081 throwException( exception ); 00082 00083 DestroyExceptionInfo( &exception ); 00084 00085 return pixels; 00086 }

Here is the call graph for this function:

IndexPacket* Magick::Pixels::indexes void   ) 
 

Magick::IndexPacket * Magick::Pixels::indexes void   ) 
 

Definition at line 117 of file Pixels.cpp.

References _image, _view, GetCacheViewIndexes(), IndexPacket, and Magick::Image::throwImageException().

00118 { 00119 IndexPacket* pixel_indexes = GetCacheViewIndexes( _view ); 00120 00121 if ( !pixel_indexes ) 00122 _image.throwImageException(); 00123 00124 return pixel_indexes; 00125 }

Here is the call graph for this function:

const Pixels& Magick::Pixels::operator= const Pixels pixels_  )  [private]
 

const Pixels& Magick::Pixels::operator= const Pixels pixels_  )  [private]
 

unsigned int Magick::Pixels::rows void   )  const
 

unsigned int Magick::Pixels::rows void   )  const [inline]
 

Definition at line 121 of file Pixels.h.

References _rows.

00122 { 00123 return _rows; 00124 }

PixelPacket* Magick::Pixels::set const int  x_,
const int  y_,
const unsigned int  columns_,
const unsigned int  rows_
 

Magick::PixelPacket * Magick::Pixels::set const int  x_,
const int  y_,
const unsigned int  columns_,
const unsigned int  rows_
 

Definition at line 98 of file Pixels.cpp.

References _columns, _image, _rows, _view, _x, _y, PixelPacket, set(), SetCacheView(), and Magick::Image::throwImageException().

Referenced by set().

00102 { 00103 _x = x_; 00104 _y = y_; 00105 _columns = columns_; 00106 _rows = rows_; 00107 00108 PixelPacket* pixels = SetCacheView( _view, static_cast<long>(x_), static_cast<long>(y_), 00109 columns_, rows_ ); 00110 if ( !pixels ) 00111 _image.throwImageException(); 00112 00113 return pixels; 00114 }

Here is the call graph for this function:

void Magick::Pixels::sync void   ) 
 

void Magick::Pixels::sync void   ) 
 

Definition at line 89 of file Pixels.cpp.

References _image, _view, SyncCacheView(), and Magick::Image::throwImageException().

Referenced by Magick::Image::pixelColor().

00090 { 00091 if( !SyncCacheView( _view ) ) 00092 _image.throwImageException(); 00093 }

Here is the call graph for this function:

int Magick::Pixels::x void   )  const
 

int Magick::Pixels::x void   )  const [inline]
 

Definition at line 103 of file Pixels.h.

References _x.

00104 { 00105 return _x; 00106 }

int Magick::Pixels::y void   )  const
 

int Magick::Pixels::y void   )  const [inline]
 

Definition at line 109 of file Pixels.h.

References _y.

00110 { 00111 return _y; 00112 }


Field Documentation

unsigned int Magick::Pixels::_columns [private]
 

Definition at line 91 of file Pixels.h.

Referenced by columns(), get(), getConst(), and set().

Magick::Image Magick::Pixels::_image [private]
 

Definition at line 87 of file Pixels.h.

Referenced by get(), indexes(), Pixels(), set(), and sync().

unsigned int Magick::Pixels::_rows [private]
 

Definition at line 92 of file Pixels.h.

Referenced by get(), getConst(), rows(), and set().

MagickLib::ViewInfo* Magick::Pixels::_view [private]
 

Definition at line 88 of file Pixels.h.

MagickLib::ViewInfo* Magick::Pixels::_view [private]
 

Definition at line 88 of file Pixels.h.

Referenced by get(), getConst(), indexes(), Pixels(), set(), sync(), and ~Pixels().

int Magick::Pixels::_x [private]
 

Definition at line 89 of file Pixels.h.

Referenced by get(), getConst(), set(), and x().

int Magick::Pixels::_y [private]
 

Definition at line 90 of file Pixels.h.

Referenced by get(), getConst(), set(), and y().


The documentation for this class was generated from the following files:
Generated on Mon Oct 25 13:48:14 2004 for ImageMagick by doxygen 1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC