tdaq-develop-2025-02-12
|
Public Types | |
enum | { IMG_INIT_BLACK = 0 , IMG_INIT_BGIMG = 1 , COLOR_HI_R = 255 , COLOR_HI_G = 255 , COLOR_HI_B = 255 , COLOR_LO_R = 150 , COLOR_LO_G = 150 , COLOR_LO_B = 150 } |
Public Member Functions | |
void | readBmpToReadImg (const std::string &filename) |
read bmp file to readImg_ buffer More... | |
void | convertBmp (const std::string &fileBMP, const std::string &convertFile) |
void | initImgBuffer (int sourceKey) |
fpix buffer | |
void | initImgBuffer (int r, int g, int b) |
void | writeImgToBmp (std::string filename) |
write img buffer to bmp file More... | |
void | transferReadImgToImg (void) |
void | drawDiscToImg (int disc, bool isClicked=false) |
void | drawPanelToImg (int disc, int panel, int x, int y, bool isClicked=false) |
void | drawBladeToImg (int disc, int panel, int halfDisc, int blade, int x, int y, float deg, int &roci, int &clicki, bool isClicked=false) |
void | drawFillRectAng (int x, int y, int w, int h, int r, int g, int b, float deg) |
void | drawFillRect (int x, int y, int w, int h, int r, int g, int b, float m1=1.0f, float m2=0.0f, float m3=0.0f, float m4=1.0f) |
draws rect to img buffer. {x,y} is lower left corner. d is degrees of rotation around z-axis. | |
void | setImgPixel (int x, int y, int r, int g, int b) |
void | fillFPixColors (void) |
std::string | getFPixStandardName (int disc, int panel, int halfDisc, int blade, int roc) |
void | getFPixIndices (std::string stdName, int &disc, int &panel, int &halfDisc, int &blade, int &roc) |
void | initBImgBuffer (int sourceKey) |
bpix buffer | |
void | initBImgBuffer (int r, int g, int b) |
void | writeBImgToBmp (std::string filename) |
void | transferReadImgToBImg (void) |
void | fillBPixColors (void) |
void | drawLayerToBImg (int layer, bool isClicked=false) |
void | drawBPixRoc (int x, int y, int r, int g, int b) |
std::string | getBPixStandardName (int layer, int pm, int row, int col) |
void | getBPixIndices (std::string stdName, int &layer, int &pm, int &row, int &col) |
void | setRocColor (std::string stdName, int r, int g, int b) |
common | |
void | setRocColor (std::string stdName, bool isGood) |
void | clearAuxBuffer (int r, int g, int b, int a) |
auxiliary buffer | |
void | drawFillRectAux (int x, int y, int w, int h, int r, int g, int b, float m1=1.0f, float m2=0.0f, float m3=0.0f, float m4=1.0f) |
void | drawFillRectAngAux (int x, int y, int w, int h, int r, int g, int b, float deg) |
void | setAuxPixel (int x, int y, int r, int g, int b) |
void | writeAuxToBmp (char *fn) |
void | createRocAlphaMasks (void) |
added 2nd trip | |
void | PrepareDetectorNavigatorHtml (void) |
web page essentials | |
void | PrepareDetectorNavigatorJava (void) |
void | createClickMask (std::string maskString, int size) |
void | createAuxImages (void) |
generates pre-made images for web-client | |
void | clearTurtleBuffer (int r, int g, int b, int a) |
initializes aux buffer to all invisible black pixels More... | |
void | writeTurtleToBmp (const char *fn) |
void | generateTurtle (const std::string &filepath) |
void | resetFPixGood (int disk) |
int | getFPixGood (int disk) |
void | resetBPixGood (int part) |
int | getBPixGood (int part) |
Public Attributes | |
bool | imageMagickInstallChecked = false |
bool | imageMagickInstalled = false |
Definition at line 8 of file PixelHistoPicGen.h.
void PixelHistoPicGen::clearTurtleBuffer | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
initializes aux buffer to all invisible black pixels
//////////////////////////////////////////////////////////////////////// //creates the png's for the different angled ROC highlights for js mouseover // and the good/bad boxes void PixelHistoPicGen::createAuxImages()
Definition at line 591 of file PixelHistoPicGen.cc.
void PixelHistoPicGen::drawFillRectAngAux | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
int | r, | ||
int | g, | ||
int | b, | ||
float | deg | ||
) |
DIFFERENT THAN drawFillRect... x,y is CENTER!! draws rect to aux img buffer. {x,y} is center. d is degrees of rotation around z-axis.
Definition at line 818 of file PixelHistoPicGen.cc.
void PixelHistoPicGen::drawFillRectAux | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
int | r, | ||
int | g, | ||
int | b, | ||
float | m1 = 1.0f , |
||
float | m2 = 0.0f , |
||
float | m3 = 0.0f , |
||
float | m4 = 1.0f |
||
) |
DIFFERENT THAN drawFillRect... x,y is CENTER!! draws rect to aux img buffer. {x,y} is center. m1-4 is rotation matrix around z-axis.
Definition at line 777 of file PixelHistoPicGen.cc.
void PixelHistoPicGen::readBmpToReadImg | ( | const std::string & | filename | ) |
read bmp file to readImg_ buffer
//////////////////////////////////////////////////////////////////////// //default(0)-is all black, void PixelHistoPicGen::initImgBuffer(int sourceKey) //////////////////////////////////////////////////////////////////////// //default(0)-is all black, void PixelHistoPicGen::initBImgBuffer(int sourceKey) //////////////////////////////////////////////////////////////////////// void PixelHistoPicGen::initImgBuffer(int r,int g,int b) //////////////////////////////////////////////////////////////////////// void PixelHistoPicGen::initBImgBuffer(int r,int g,int b)
Definition at line 120 of file PixelHistoPicGen.cc.
void PixelHistoPicGen::writeImgToBmp | ( | std::string | filename | ) |
write img buffer to bmp file
//////////////////////////////////////////////////////////////////////// //transfer readImg_ buffer to img_ buffer void PixelHistoPicGen::transferReadImgToImg() //////////////////////////////////////////////////////////////////////// //transfer readImg_ buffer to bimg_ buffer void PixelHistoPicGen::transferReadImgToBImg()
Definition at line 237 of file PixelHistoPicGen.cc.