Home Page > Programming Samples and Tutorials > .NET Samples > C# Samples > Cross View
Cross View C# Sample
Cross View C# Sample
Overview
Implementation
The most critical work is done inside UpdateCrossSectionView()
of the form/dialog which is called on "Update Cross-Section View" button clicks
and also on start of the application or when implementation type is changed. The
method delegates the call to UpdateCrossSectionView() of the
currently active implementation class via virtual call.
mplementation.AlignViewPlane()
method uses IFrame.SetAxes to align
z and x axes of the Eye Frame for two
dimensional style of view
Cross section plane is rendered using the first
clipping plane of the pipe section. The clipping plane is not enabled
because it used only for rendering purpose. Preparation of the plane is done in
SetupRenderingPlane() method of the form/dialog
Notice also the way frame
of the 2D View is rendered inside of OnClientDraw(). It uses
IGraphicItem queried from
IView
in CreateFrameGraphicItem().
|