CODController::SetAlignCenterPort

virtual void CODController::SetAlignCenterPort (const BOOLbAlignCenterPort = TRUE)

Sets the alignment by central port location to avoid rounding errors caused by the center calculation.

Defined in: OdController.h

Return Value

void

Parameters

bAlignCenterPort

If TRUE, the alignment is done by the central port location.

Comments

Call this function to override the default alignment OD_ALIGN_MIDDLE and OD_ALIGN_CENTER.

Call this function from any function in controller except the constructor or from viewport.

Sample call (see Showcase sample)

void CShowcaseViewport::OnInitialUpdate()

{ __super::OnInitialUpdate(); ((CShowcaseController*)m_pCtlr)->SetAlignCenterPort(); }