18 #ifndef __otbPixelDescriptionActionHandler_h
19 #define __otbPixelDescriptionActionHandler_h
33 template <
class TModel,
class TView>
70 if (widgetId ==
m_View->GetScrollWidget()->GetIdentifier())
72 sourceWidget =
m_View->GetScrollWidget();
75 else if (widgetId ==
m_View->GetFullWidget()->GetIdentifier())
77 sourceWidget =
m_View->GetFullWidget();
80 else if (widgetId ==
m_View->GetZoomWidget()->GetIdentifier())
82 sourceWidget =
m_View->GetZoomWidget();
102 typename ViewType::ImageWidgetType::PointType screenPoint, imagePoint;
103 screenPoint = sourceWidget->GetMousePosition();
106 imagePoint = sourceWidget->GetScreenToImageTransform()->TransformPoint(screenPoint);
109 typename ViewType::IndexType index;
110 index[0] =
static_cast<int>(imagePoint[0]);
111 index[1] =
static_cast<int>(imagePoint[1]);
145 itkSetMacro(UsePlaceName,
bool);
146 itkGetMacro(UsePlaceName,
bool);