3 #ifndef GCP_GRABBER_IMAGEPLOTTER_H
4 #define GCP_GRABBER_IMAGEPLOTTER_H
18 #include "gcp/util/common/ImageHandler.h"
20 #include "gcp/util/common/Angle.h"
22 #include "gcp/control/code/unix/viewer_src/color_tab.h"
47 void open(
char* device);
49 void draw(
bool cmapUpdate=
false);
63 void pixelToWorld(
unsigned ix,
unsigned iy,
double& x,
double& y);
71 void worldToPixel(
double x,
double y,
unsigned& ix,
unsigned& iy,
74 void worldToSkyOffset(
double x,
double y,
87 void setPeak(
unsigned ix,
unsigned iy);
101 bool& doCrosshair() {
109 void setContrast(
double contrast = defaultContrast_);
110 void setBrightness(
double brightness = defaultBrightness_);
112 void installColormap(std::string cmap);
113 std::string colormapName();
119 void setDisplayedRange(
double xa,
double xb,
double ya,
double yb);
120 void setDisplayedRange();
122 void setPgplotId(
int pgplotId);
134 static const double defaultContrast_;
135 static const double defaultBrightness_;
145 double wxaDisp_, wxbDisp_;
146 double wyaDisp_, wybDisp_;
163 unsigned ixpeak_, iypeak_;
171 float imageToPlot_[GRABBER_IM_SIZE];
178 #endif // End #ifndef GCP_GRABBER_IMAGEPLOTTER_H
void drawGrid()
Definition: ImagePlotter.cc:378
friend std::ostream & operator<<(std::ostream &os, ImagePlotter &obj)
virtual ~ImagePlotter()
Definition: ImagePlotter.cc:41
void drawBoxes()
Definition: ImagePlotter.cc:556
void installNewImage(unsigned short *image)
Definition: ImagePlotter.cc:590
void fiddleContrast(double xa, double ya)
Definition: ImagePlotter.cc:774
void pixelToWorld(unsigned ix, unsigned iy, double &x, double &y)
Definition: ImagePlotter.cc:671
void drawCompass()
Definition: ImagePlotter.cc:431
Definition: ImageHandler.h:30
void draw(bool cmapUpdate=false)
Definition: ImagePlotter.cc:103
ImagePlotter()
Definition: ImagePlotter.cc:24
void calculatePlotLimits()
Definition: ImagePlotter.cc:291
void drawBullseye()
Definition: ImagePlotter.cc:411
void drawDouble()
Definition: ImagePlotter.cc:146
void drawCrosshair()
Definition: ImagePlotter.cc:523
void getGreyscale()
Definition: ImagePlotter.cc:324
void setPlotBoundaries()
Definition: ImagePlotter.cc:279
void worldToPixel(double x, double y, unsigned &ix, unsigned &iy, bool truncate=false)
Definition: ImagePlotter.cc:693
Definition: ImagePlotter.h:27
void initialize()
Definition: ImagePlotter.cc:52
Definition: color_tab.h:50
void drawImage(bool cmapUpdate=false)
Definition: ImagePlotter.cc:206