The Leadtools.Medical3D.Medical3DControl is a simple to use control with built in mouse action tools that can easily integrate into the LEADTOOLS Medical Viewer to transform the viewer into a feature rich, advanced 3D viewer with support for various layouts, tools and functionalities that are comparable to high-end radiology work stations. The Medical 3D control was designed for rapid development and ease of use. This control internally holds all the 3D Objects and is capable of handling all actions internally. The control is also responsible for rendering the 3D objects. The Medical3DControl class is derived from Leadtools.MedicalViewer.MedicalViewerBaseCell and thus provides the same Leadtools.MedicalViewer.MedicalViewer features including adding overlay tags, using rulers, etc. through the appropriate methods. In addition it also adds the following additional ActionTypes and related events for 3D object manipulations:
You must call the Leadtools.Medical3D.Medical3DControl.AddAction(Leadtools.MedicalViewer.MedicalViewerActionType) method before assigning a specific mouse button by calling Leadtools.Medical3D.Medical3DControl.SetAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons,Leadtools.MedicalViewer.MedicalViewerActionFlags). When calling SetAction, you specify Leadtools.MedicalViewer.MedicalViewerActionFlags, which tell the control how to handle the action (i.e. to apply the action to selected cells, active cells or all cells in the viewer). An action tool can only be added once and to verify this, use MedicalViewerBaseCell.IsActionAdded. Note, some mouse buttons are not appropriate for some action types (i.e. magnify glass cannot be assigned to the mouse wheel) and the MedicalViewerBaseCell.IsValidForAction method can be called to identify whether the mouse button is right for the specified action type. To get the information about the currently active action call MedicalViewerBaseCell.GetActionButton and to get the information about current action flags call MedicalViewerBaseCell.GetActionFlags. To verify that the Meical3DControl supports the specified action type, call MedicalViewerBaseCell.CanExecuteAction.
To add a 2D stack of images to the control for generating the 3D volume, please refer to Programming with LEADTOOLS Medical 3D. Once the volumetric dataset has been added to the Leadtools.Medical3D.Medical3DObject, add the object to the control by calling Medical3DContainer.Objects.Add. The Medical3DControl can be integrated with the Leadtools.MedicalViewer.MedicalViewer through the MedicalViewer.Cells collection. You can choose between the various 3D volume rendering types by simply setting the Medical3DContainer.VolumeType property.
The Medical3Dcontrol also contains Leadtools.Medical3D.Medical3DControl.AxialFrame, Leadtools.Medical3D.Medical3DControl.SagittalFrame and Leadtools.Medical3D.Medical3DControl.CoronalFrame properties where each holds the representative orthogonal frame in Leadtools.MedicalViewer.MedicalViewerMPRCell. The Medical Viewer can be used to display each orthogonal plane on a separate window. For more information on creating a 3D object with MPR view, please refer to Leadtools.MedicalViewer.MedicalViewerMPRCell and Programming with MPR Slices.