FACT++  1.0
void FactGui::handleFadRoi ( const DimData d)
inlineprivate

Definition at line 889 of file FactGui.h.

References DimData::ptr(), and DimData::size().

Referenced by infoHandler().

890  {
891  if (d.size()==0)
892  {
893  fFadRoi->setEnabled(false);
894  fFadRoiCh9->setEnabled(false);
895  //SetLedColor(fFadLedRoi, kLedGray, d.time);
896  return;
897  }
898 
899  if (!CheckSize(d, 2*sizeof(uint16_t)))
900  return;
901 
902  const uint16_t *ptr = d.ptr<uint16_t>();
903 
904  fFadRoi->setEnabled(true);
905  fFadRoiCh9->setEnabled(true);
906 
907  fFadRoi->setValue(ptr[0]);
908  fFadRoiCh9->setValue(ptr[1]);
909 
910  //SetLedColor(fFadLedRoi, kLedGray, d.time);
911  }
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
size_t size() const
Definition: DimData.h:39
const T * ptr(uint32_t offset=0) const
Definition: DimData.h:32

+ Here is the call graph for this function:

+ Here is the caller graph for this function: