本文整理汇总了C++中Point2D::Print方法的典型用法代码示例。如果您正苦于以下问题:C++ Point2D::Print方法的具体用法?C++ Point2D::Print怎么用?C++ Point2D::Print使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Point2D
的用法示例。
在下文中一共展示了Point2D::Print方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnMouseDoubleClicked
bool ViewerIBA::OnMouseDoubleClicked(const CVD::ImageRef &where, const int button) {
if (button == VW_MOUSE_BUTTON_MIDDLE_UP || button == VW_MOUSE_BUTTON_MIDDLE_DOWN) {
return false;
} else if (button == VW_MOUSE_BUTTON_RIGHT) {
const Point2D x = Point2D(where.x * m_factorWinToImg.x(), where.y * m_factorWinToImg.y());
x.Print("x = ", false, true);
#ifdef CFG_DEPTH_MAP
const CVD::Image<ushort> &Z = m_LFs[m_iLFActive].m_ZIP[0];
if (m_keyDrawViewType == DRAW_VIEW_2D && m_iFrmActive >= int(m_KFs.size()) && UT::ImageValid(Z)) {
const float d = Depth::InterpolateDepth(Z, x, m_work);
if (d != 0.0f) {
const float z = 1.0f / d;
UT::Print("z = %f\n", z);
const Point3D X = Point3D(m_KIP[0].GetImageToNormalized(x), z);
X.Print("X = ", false);
}
}
#endif
return true;
} else {
SearchActiveFeatureStart();
const bool found = SearchActiveFeature(where);
SearchActiveFeatureStop();
return found;
}
}