BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Fully implemented BCGSuite (MFC)
Not available BCGControlBar (Microsoft .NET)

Rotation Control

Rotation control is derived from Radial menu and intended for 3D object (such as charts in 3D) views. This control is sending the following rotation notifications:

  • Rotate left
  • Rotate right
  • Rotate up
  • Rotate down
  • Widen field of view
  • Narrow field of view
  • Clockwise
  • Counter clockwise
  • Reset

 

Each control part can be enabled or disabled.

Rotation control on dialog:


Popup rotattion control:


Sample code:
CBCGPRotationObject* pRotation;

// Disable Up/Down parts:
pRotation->EnablePart(CBCGPRotationObject::BCGP_ROTATION_UP, FALSE);
pRotation->EnablePart(CBCGPRotationObject::BCGP_ROTATION_DOWN, FALSE);

...

CBCGPRotationObject::RotationElement nHit = pRotation->GetClicked();

switch (nHit)
{
case CBCGPRotationObject::BCGP_ROTATION_LEFT:
    xRotation -= xDelta;
    break;

case CBCGPRotationObject::BCGP_ROTATION_RIGHT:
    xRotation += xDelta;
    break;
}

Prev  Next