KWWidgets/Projects/3DWidgets/Widgets/ChangingArchitecture
From KitwarePublic
Revision as of 15:11, 5 June 2006 by Xavor (talk | contribs) (→Analysis and overview of existing architecture)
Analysis and overview of existing architecture
Architecture
- In order to apply the redesigned architecture regarding the vtk 3D Widgets, I started by learning how it had been applied to vtkSliderWidget and how I could use this as a basis for comparison with the designated widgets, specifically vtkBoxWidget.
- This I commenced by looking at the vtkSliderWidget and how it interacts with the main classes regarding the restructuring project - the vtkAbstractWidget and vtkWidgetRepresentation classes and their derivatives.
Old architecture
![3DWidgets arch before.jpg](/Wiki/images/1/17/3DWidgets_arch_before.jpg)
New architecture
![3DWidgets arch after.jpg](/Wiki/images/b/bf/3DWidgets_arch_after.jpg)
Differences between the two architectures
![3DWidgets arch differences.jpg](/Wiki/images/1/1c/3DWidgets_arch_differences.jpg)
Analysis and overview of new architecture
Comparing the two architectures
Methodology
- study both architectures
- study source code; vtkBoxWidget (Old) and vtkSliderWidget (new)
- separate source code into new classes
- study events
- compare vtkBoxWidget Old and New
- methods
* added
* removed
* edited - example code
*changes to original
![Class Diagram vtkMyWidget.jpg](/Wiki/images/4/49/Class_Diagram_vtkMyWidget.jpg)