Rotation Control
BCGControlBar Pro (MFC)
BCGSuite (MFC)
BCGControlBar for .NET
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 rotation 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;
}