Manipulating 3D Objects
After creating a 3D object (refer to Creating 3D Object), you might want to change the view of the 3D object. This can be accomplished using a wide variety of methods.
Change the 3D object rendering method - LEADTOOLS supports 5 different volume types (volume types can be changed using the Medical3DContainer.VolumeType property)
- MPR: (Multi-Planer Rendering), which views 3 Perpendicular frames of the 3D object. For more information refer to the MPR programming topic.
- VRT: (Volume Rendering Technique), which renders all of the data in the 3D object, showing both the soft and hard tissues.
- MIP: (Maximum Intensity Projection), this provides a better view of hyper dense structures.
- MinIP: (Minimum Intensity Projection), this provides a better visualization of low-density structures with respect to surrounding tissues in a volume.
SSD: (Shaded Surface Display), which displays a surface of the 3D object specified by the ISO threshold. For more information, please refer to Programming with SSD and 3D Mesh
All of the above can also be viewed with inverted colors using the Medical3DContainer.Inverted property.
Actions in the 3D toolkit - Actions allow the user to change the view of the 3D object using the mouse. You can rotate, translate, scale, zoom or even apply window level on the 3D object using the mouse. To do this you can use the Medical3DControl (recommended) or the Medical3DContainer objects.
Applying actions using the Medical3DContainer - To apply actions using the Medical3DContainer:
- Create an instance of the Medical3DContainer and add a 3D object to it. For more information on how to create a 3D object, refer to Creating 3D Object.
- You must first have a control that will be used as a surface to render the 3D object.
- Register the Paint event and use it to render the 3D object using the Medical3DContainer.Render method.
- Register the control's MouseUp, MouseDown, and MouseMove events.
- In the MouseDown event use the Medical3DContainer.HandleMouseDown method. Use this method to specify the type of the action that needs to be handled. A list of available actions is provided below. 6) In the MouseUp event use the HandleMouseUp method.
- In the MouseMove event use the HandleMouseMove method.
Applying actions using the Medical3DControl - To apply actions using the Medical3DControl:
- Create an instance of the Medical3DControl and add a 3D object to it. For more information on how to create a 3D object, refer to Creating 3D Object.
- Use the MedicalViewerBaseCell.AddAction method to add the action you want.
Use the MedicalViewerBaseCell.SetAction method to assign the action to a mouse button. The available actions are
- Window level
- Rotate 3D object
- Scale 3D object
- Translate 3D camera
- Rotate 3D camera
- Rotate plane
- Move plane