Drag Namespace Reference


Classes

class  Drag

Functions

def __init__
def add_to_axes
def set_fig_outside
def get_fig_outside
def set_isInitialized
def get_isInitialized
def connect
def disconnect
def distance
def max_deviation
def obj_contains_cursor
def save_obj_properties
def restore_obj_properties
def set_dragged_obj_properties
def redraw_obj
def save_current_background
def restore_background
def get_mode
def select_deselect_obj
def swap_select_deselect_status
def set_select_deselect_color
def on_press_graphic_manipulations
def on_motion_graphic_manipulations
def on_release_graphic_manipulations
def is_on_press_remove
def remove_object_from_img
def select_deselect_object_by_call
def get_obj_mask
def get_mask
def add_obj_to_axes
def remove_object_from_img_and_list
def set_list_need_in_redraw
def redraw_obj_update_list
def redraw_objs_from_list
def get_array2d_for_test
def generate_test_image
def main_test_global
def main_test_global_mask

Variables

dictionary dicBool = {'false':False, 'true':True}
 axes
 fig_outside
 isInitialized
 cidpress
 cidrelease
 cidmotion
 myColor
 myWidth
 myStyle
 isChanged
 isSelected
 isSelected
 isSelected
 myCurrentColor
 myCurrentColor
 mask
 maskIsAvailable


Function Documentation

def Drag::__init__ (   self,
  linewidth = 2,
  color = 'k',
  linestyle = 'solid',
  my_type = None 
)

Actual initialization is done by the method add_to_axes(...)

Definition at line 18 of file Drag.py.

def Drag::add_to_axes (   self,
  axes 
)

Definition at line 39 of file Drag.py.

def Drag::set_fig_outside (   self,
  fig 
)

Definition at line 44 of file Drag.py.

def Drag::get_fig_outside (   self  ) 

Definition at line 48 of file Drag.py.

def Drag::set_isInitialized (   self,
  state 
)

Definition at line 52 of file Drag.py.

def Drag::get_isInitialized (   self  ) 

Definition at line 56 of file Drag.py.

def Drag::connect (   self  ) 

Definition at line 68 of file Drag.py.

Referenced by DragCenter::DragCenter(), PSQt::GeoTree::GeoTree(), PSQt::GUIImageViewer::GUIImageViewer(), GUILogger::GUILogger(), GUIMain::GUIMain(), PSQt::ImageProc::ImageProc(), PSQt::MyWidget::MyWidget(), PSQt::PSQtGUIMain::PSQtGUIMain(), PSQt::WdgColorTable::WdgColorTable(), PSQt::WdgFile::WdgFile(), PSQt::WdgGeo::WdgGeo(), PSQt::WdgPointPos::WdgPointPos(), and PSQt::WdgPointPos3D::WdgPointPos3D().

def Drag::disconnect (   self  ) 

Definition at line 75 of file Drag.py.

def Drag::distance (   self,
  xy1,
  xy2 
)

Definition at line 82 of file Drag.py.

def Drag::max_deviation (   self,
  xy1,
  xy2 
)

Definition at line 88 of file Drag.py.

def Drag::obj_contains_cursor (   self,
  event 
)

Definition at line 94 of file Drag.py.

def Drag::save_obj_properties (   self  ) 

Definition at line 103 of file Drag.py.

def Drag::restore_obj_properties (   self  ) 

Definition at line 112 of file Drag.py.

def Drag::set_dragged_obj_properties (   self  ) 

Definition at line 120 of file Drag.py.

def Drag::redraw_obj (   self  ) 

Definition at line 126 of file Drag.py.

def Drag::save_current_background (   self  ) 

Saves the background in a single place for this figure

Definition at line 131 of file Drag.py.

def Drag::restore_background (   self  ) 

Definition at line 136 of file Drag.py.

def Drag::get_mode (   self  ) 

Definition at line 140 of file Drag.py.

def Drag::select_deselect_obj (   self  ) 

Definition at line 144 of file Drag.py.

def Drag::swap_select_deselect_status (   self  ) 

Definition at line 155 of file Drag.py.

def Drag::set_select_deselect_color (   self,
  color = 'w' 
)

Definition at line 165 of file Drag.py.

def Drag::on_press_graphic_manipulations (   self  ) 

on press we do:
1. check if object needs to be removed and remove it if the mode is Remove
2. make the object invisible and re-draw canwas (w/o this object)
3. save this as a canva background
4. set the attributes for draged object
5. redraw object with dragged attributes
6. check if the object needs to be selected

Definition at line 173 of file Drag.py.

def Drag::on_motion_graphic_manipulations (   self  ) 

on motion we redraw the background and object in its current position

Definition at line 194 of file Drag.py.

def Drag::on_release_graphic_manipulations (   self  ) 

on release we reset the press data

Definition at line 201 of file Drag.py.

def Drag::is_on_press_remove (   self  ) 

Remove the object for remove mode

Definition at line 211 of file Drag.py.

def Drag::remove_object_from_img (   self  ) 

Remove object from figure canvas, axes, disconnect from signals, mark for removal 

Definition at line 225 of file Drag.py.

def Drag::select_deselect_object_by_call (   self,
  color = 'w' 
)

Select/deselect object and change its color on canvas

Definition at line 237 of file Drag.py.

def Drag::get_obj_mask (   self,
  shape 
)

Definition at line 246 of file Drag.py.

def Drag::get_mask (   shape,
  poly_verts 
)

Definition at line 259 of file Drag.py.

def Drag::add_obj_to_axes (   obj,
  axes,
  list_of_objs 
)

Add object to axes and append the list of objects

Definition at line 268 of file Drag.py.

def Drag::remove_object_from_img_and_list (   obj,
  list 
)

Definition at line 276 of file Drag.py.

def Drag::set_list_need_in_redraw (   list_of_obj  ) 

Definition at line 283 of file Drag.py.

def Drag::redraw_obj_update_list (   obj,
  axes,
  list_of_objs 
)

Definition at line 288 of file Drag.py.

def Drag::redraw_objs_from_list (   axes,
  list_of_objs 
)

Definition at line 297 of file Drag.py.

def Drag::get_array2d_for_test (  ) 

Definition at line 310 of file Drag.py.

def Drag::generate_test_image (  ) 

Produce the figure with 2-d image for the test purpose.
   returns the necessary for test parameters: 

Definition at line 321 of file Drag.py.

def Drag::main_test_global (  ) 

Test of global methods only

Definition at line 337 of file Drag.py.

def Drag::main_test_global_mask (  ) 

Test mask

Definition at line 347 of file Drag.py.


Variable Documentation

dictionary Drag::dicBool = {'false':False, 'true':True} [static]

Definition at line 16 of file Drag.py.

Drag::axes

Definition at line 41 of file Drag.py.

Drag::fig_outside

Definition at line 45 of file Drag.py.

Drag::isInitialized

Definition at line 53 of file Drag.py.

Drag::cidpress

Definition at line 70 of file Drag.py.

Drag::cidrelease

Definition at line 71 of file Drag.py.

Drag::cidmotion

Definition at line 72 of file Drag.py.

Drag::myColor

Definition at line 105 of file Drag.py.

Drag::myWidth

Definition at line 106 of file Drag.py.

Drag::myStyle

Definition at line 107 of file Drag.py.

Drag::isChanged

Definition at line 149 of file Drag.py.

Drag::isSelected

Definition at line 157 of file Drag.py.

Referenced by ImgAlgos::ImgPeakFinderAB::event(), and ImgAlgos::CSPadArrPeakFinder::event().

Drag::isSelected

Definition at line 158 of file Drag.py.

Drag::isSelected

Definition at line 161 of file Drag.py.

Drag::myCurrentColor

Definition at line 167 of file Drag.py.

Drag::myCurrentColor

Definition at line 168 of file Drag.py.

Drag::mask

Definition at line 248 of file Drag.py.

Referenced by ImgAlgos::AlgImgProc::_evaluateBkgdAvgRms(), ImgAlgos::AlgImgProc::_evaluateBkgdAvgRmsV3(), ImgAlgos::AlgImgProc::_evaluateSoNForPixel(), ImgAlgos::AlgArrProc::_initAlgImgProc(), ImgAlgos::AlgImgProc::_makeMapOfLocalMaximums(), ImgAlgos::AlgImgProc::_makeMapOfLocalMaximumsV0(), ImgAlgos::AlgImgProc::_makeMapOfLocalMinimums(), ImgAlgos::AlgImgProc::_makeMapOfLocalMinimumsV0(), ImgAlgos::AlgImgProc::_splitDataForUintAndFloat(), PSHdf5Input::Hdf5IterData::add(), checkSaturatedPixels(), Eigen::internal::conservative_sparse_sparse_product_impl(), createCXISkeleton(), cspadModuleSubtract(), cspadSubtractBehindWires(), Eigen::internal::permut_matrix_product_retval< PermutationType, MatrixType, Side, Transposed >::evalTo(), CSPadPixCoords::CSPadConfigPars::getCSPadPixNDArrFromNDArrShapedAsData(), CSPadPixCoords::CSPadConfigPars::getCSPadPixNDArrShapedAsData(), ImgAlgos::CSPadArrPeakFinder::getMaskFromFile(), ImgAlgos::AlgImgProc::getSoN(), ImgAlgos::AlgImgProc::getSoNResult(), hitfinder1(), hitfinder2(), hitfinder4(), hitfinderFastScan(), psddl_hdf2psana::CsPad::ns_ConfigV5_v0::dataset_config::init_attr_sections(), psddl_hdf2psana::CsPad::ns_ConfigV4_v0::dataset_config::init_attr_sections(), psddl_hdf2psana::CsPad::ns_ConfigV3_v0::dataset_config::init_attr_sections(), psddl_hdf2psana::CsPad::ns_ConfigV2_v0::dataset_config::init_attr_sections(), integratePattern(), ImgAlgos::AlgImgProc::intensityOfPixAboveThr(), ImgAlgos::AlgArrProc::intensityOfPixAboveThr(), main(), ImgAlgos::mapOfLocalMaximums(), ImgAlgos::mapOfLocalMinimums(), ImgAlgos::mapOfPhotonNumbersV1(), ImgAlgos::AlgImgProc::mapOfPhotonNumbersV1(), ImgAlgos::AlgArrProc::mapsOfPhotonNumbersV1(), psddl_hdf2psana::GenericPgp::ns_CRegister_v0_dataset_data_native_type(), psddl_hdf2psana::GenericPgp::ns_CRegister_v0_dataset_data_stored_type(), ImgAlgos::AlgImgProc::numberOfPixAboveThr(), ImgAlgos::AlgArrProc::numberOfPixAboveThr(), peakfinder(), ImgAlgos::AlgImgProc::peakFinderV1(), ImgAlgos::AlgArrProc::peakFinderV1(), ImgAlgos::AlgImgProc::peakFinderV2(), ImgAlgos::AlgArrProc::peakFinderV2(), ImgAlgos::AlgImgProc::peakFinderV2r1(), ImgAlgos::AlgArrProc::peakFinderV2r1(), ImgAlgos::AlgImgProc::peakFinderV3(), ImgAlgos::AlgArrProc::peakFinderV3(), ImgAlgos::AlgImgProc::peakFinderV3r1(), ImgAlgos::AlgArrProc::peakFinderV3r1(), ImgAlgos::AlgImgProc::peakFinderV3r2(), ImgAlgos::AlgArrProc::peakFinderV3r2(), ImgAlgos::AlgImgProc::peakFinderV4(), ImgAlgos::AlgArrProc::peakFinderV4(), ImgAlgos::AlgImgProc::peakFinderV4r1(), ImgAlgos::AlgArrProc::peakFinderV4r1(), ImgAlgos::AlgImgProc::peakFinderV4r2(), ImgAlgos::AlgArrProc::peakFinderV4r2(), Detector::DetectorAccess::pixel_mask_geo(), pnccdLineInterpolation(), pnccdLineMasking(), pnccdModuleSubtract(), pnccdOffsetCorrection(), Eigen::internal::quat_product< Architecture::SSE, Derived, OtherDerived, double, Aligned >::run(), Eigen::internal::quat_product< Architecture::SSE, Derived, OtherDerived, float, Aligned >::run(), setBadPixelsToZero(), setHotPixelsToZero(), subtractRadialBackground(), PSHdf5Input::Hdf5DatasetIter::updateData(), updateHotPixelBuffer(), and updateNoisyPixelBuffer().

Drag::maskIsAvailable

Definition at line 249 of file Drag.py.


Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7