O'Reilly logo

3D Programming for Windows® by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sorting Out the Classes

Partially because of the differentiation between visuals and models, the class hierarchy in the System.Windows.Media.Media3D namespace can be a bit confusing. To conclude this chapter, I want to take a stab at sorting out those class hierarchies that you've encountered in this chapter. More class hierarchies will follow in the next several chapters.

You assemble 3D scenes in an element of type Viewport3D, a class that derives directly from FrameworkElement through this long class hierarchy:

Object       DispatcherObject (abstract)             DependencyObject                  Visual (abstract)                       UIElement                            FrameworkElement                                  Viewport3D

Viewport3D ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required