My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::grabber::ImagePlotter Class Reference
Inheritance diagram for gcp::grabber::ImagePlotter:
gcp::util::ImageHandler gcp::grabber::ImageReader

Public Member Functions

 ImagePlotter ()
 
virtual ~ImagePlotter ()
 
void open (char *device)
 
void draw (bool cmapUpdate=false)
 
void drawDouble ()
 
void setGridInterval (gcp::util::Angle &interval)
 
void installNewImage (unsigned short *image)
 
void testDraw ()
 
void pixelToWorld (unsigned ix, unsigned iy, double &x, double &y)
 
void worldToPixel (double x, double y, unsigned &ix, unsigned &iy, bool truncate=false)
 
void worldToSkyOffset (double x, double y, gcp::util::Angle &xsky, gcp::util::Angle &ysky)
 
void setPlotBoundaries ()
 
void calculatePlotLimits ()
 
void setPeak (unsigned ix, unsigned iy)
 
bool & doGrid ()
 
bool & doCompass ()
 
bool & doBullseye ()
 
bool & doCrosshair ()
 
bool & doBoxes ()
 
void setContrast (double contrast=defaultContrast_)
 
void setBrightness (double brightness=defaultBrightness_)
 
void installColormap (std::string cmap)
 
std::string colormapName ()
 
void fiddleContrast (double xa, double ya)
 
void setDisplayedRange (double xa, double xb, double ya, double yb)
 
void setDisplayedRange ()
 
void setPgplotId (int pgplotId)
 
int pgplotId ()
 
void initialize ()
 
void getGreyscale ()
 
void drawImage (bool cmapUpdate=false)
 
void drawGrid ()
 
void drawBullseye ()
 
void drawCompass ()
 
void drawCrosshair ()
 
void drawBoxes ()
 
- Public Member Functions inherited from gcp::util::ImageHandler
 ImageHandler ()
 
 ImageHandler (const ImageHandler &objToBeCopied)
 
 ImageHandler (ImageHandler &objToBeCopied)
 
void operator= (const ImageHandler &objToBeAssigned)
 
void operator= (ImageHandler &objToBeAssigned)
 
virtual ~ImageHandler ()
 
virtual void setDeckAngleRotationSense (gcp::control::RotationSense sense)
 
virtual void setNCombine (unsigned ncombine)
 
virtual void setChannel (gcp::grabber::Channel::FgChannel channel)
 
virtual void setChannel (unsigned channel)
 
virtual void setFlatfieldType (unsigned flatfieldType)
 
virtual void setXImDir (gcp::control::ImDir dir)
 
virtual void setYImDir (gcp::control::ImDir dir)
 
virtual void setFov (const gcp::util::Angle &fov)
 
virtual void setAspectRatio (double aspectRatio)
 
virtual void setRotationAngle (const gcp::util::Angle &rotationAngle)
 
virtual void setDeckAngle (const gcp::util::Angle &deckAngle)
 
virtual void installNewImage (unsigned short *image, unsigned int utc[2], gcp::util::Angle *az, gcp::util::Angle *el, gcp::util::Angle *dk=0)
 
ImStat getStats ()
 
virtual ImStat getStats (unsigned ixmin, unsigned iymin, unsigned ixmax, unsigned iymax)
 
void getOffsetInfo (gcp::util::Angle &horiz, gcp::util::Angle &vert, unsigned &ipeak, unsigned &jpeak)
 
void getPeakInfo (double &peak, double &snr)
 
void addIncludeBox (unsigned ixmin, unsigned iymin, unsigned ixmax, unsigned iymax)
 
void addExcludeBox (unsigned ixmin, unsigned iymin, unsigned ixmax, unsigned iymax)
 
void deleteNearestBox (unsigned ix, unsigned iy)
 
void deleteAllBoxes ()
 

Static Public Attributes

static const double defaultContrast_ = -1.0
 
static const double defaultBrightness_ = 0.5
 
- Static Public Attributes inherited from gcp::util::ImageHandler
static const gcp::util::Angle defaultFov_
 
static const double defaultAspectRatio_ = 0.8
 
static const gcp::util::Angle defaultRotationAngle_
 
static const
gcp::control::RotationSense 
defaultDeckAngleRotationSense_ = CCW
 
static const
gcp::grabber::Channel::FgChannel 
defaultChannel_
 
static const unsigned defaultFlatfieldType_
 
static const unsigned defaultNcombine_ = 1
 
static const gcp::control::ImDir defaultXImDir_ = UPRIGHT
 
static const gcp::control::ImDir defaultYImDir_ = UPRIGHT
 

Friends

std::ostream & operator<< (std::ostream &os, ImagePlotter &obj)
 

Additional Inherited Members

- Public Attributes inherited from gcp::util::ImageHandler
std::vector< Boxboxes_
 
gcp::util::Angle fov_
 
double aspectRatio_
 
gcp::util::Angle deckAngle_
 
gcp::util::Angle rotationAngle_
 
gcp::control::RotationSense deckAngleRotationSense_
 
gcp::grabber::Channel::FgChannel channel_
 
unsigned flatfieldType_
 
unsigned nCombine_
 
gcp::control::ImDir xImDir_
 
gcp::control::ImDir yImDir_
 
std::vector< unsigned short > imageToArchive_
 
- Protected Member Functions inherited from gcp::util::ImageHandler
void lock ()
 
void unlock ()
 
void pixelToSkyOffset (unsigned ix, unsigned iy, gcp::util::Angle &xsky, gcp::util::Angle &ysky)
 
- Protected Attributes inherited from gcp::util::ImageHandler
bool haveImage_
 
double dx_
 
double dy_
 
double xa_
 
double ya_
 
double xb_
 
double yb_
 
unsigned nx_
 
unsigned ny_
 
bool usePixel_ [GRABBER_IM_SIZE]
 
unsigned short imageToStore_ [GRABBER_IM_SIZE]
 
unsigned int utc_ [2]
 

Constructor & Destructor Documentation

ImagePlotter::ImagePlotter ( )

Constructor.

....................................................................... Constructor.

ImagePlotter::~ImagePlotter ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void ImagePlotter::calculatePlotLimits ( )

....................................................................... Calculate plot limits

void ImagePlotter::draw ( bool  cmapUpdate = false)

....................................................................... Draw an image

void ImagePlotter::drawBoxes ( )

....................................................................... Drawboxes

void ImagePlotter::drawBullseye ( )

....................................................................... Method to draw a series of concentric rings of the specified grid interval

void ImagePlotter::drawCompass ( )

....................................................................... Draw the image compass

void ImagePlotter::drawCrosshair ( )

....................................................................... Draw a cross-hair

void ImagePlotter::drawDouble ( )

....................................................................... Draw an image

void ImagePlotter::drawGrid ( )

....................................................................... Method to draw a grid of specified interval over the image

void ImagePlotter::drawImage ( bool  cmapUpdate = false)

....................................................................... Method to re-draw the image

void ImagePlotter::fiddleContrast ( double  xa,
double  ya 
)

....................................................................... Fiddle the contrast and brightness of a frame grabber image.

void ImagePlotter::getGreyscale ( )

....................................................................... Compute the range of greyscale levels to be displayed for the new plot boundaries.

void ImagePlotter::initialize ( )

....................................................................... Initialize the image

void ImagePlotter::installNewImage ( unsigned short *  image)
virtual

....................................................................... Overloaded method to install the new image. This also installs it in the pgplot buffer

Reimplemented from gcp::util::ImageHandler.

void ImagePlotter::pixelToWorld ( unsigned  ix,
unsigned  iy,
double &  x,
double &  y 
)

....................................................................... Convert from pixel number to world coordinate

void ImagePlotter::setPlotBoundaries ( )

....................................................................... Calculate plot limits

void ImagePlotter::worldToPixel ( double  x,
double  y,
unsigned &  ix,
unsigned &  iy,
bool  truncate = false 
)

....................................................................... Convert from world coordinates to pixel number

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
ImagePlotter obj 
)
friend

Output Operator.


The documentation for this class was generated from the following files: