Table of Contents

Transformers GUI

Each Transformers has GUI component.

Transformer Manage Panel

Use Transformer Manage Panel to setup the ITransformer.

Layout

  • Transformer Manage Panel
    • Transformer Type Selection Bar
    • Transformer Content Panel (vary by the selected Transformer)
Note

GeneralTransform control uses its own layout with direct API calls and <xref:Hi.Vec3d> components, instead of embedding StaticRotation and StaticTranslation as sub-components. This avoids redundant title display when nested.

Transformer Type Selection Bar

Transformer Type Selection Bar get or set ITransformer.

The Transformer Type Selection Bar has code-behind option to choose what the transformer options to show.

If the original model (i.e. source model) transformer conflicts with the restricted transformers, show the model.

Tip

Consider one line layout to save the space for the selection bar.

Source Code Path

See this page for git repository.

WPF Application Source Code Path

  • Mech/Topo/TransformerSelectPanel
  • Mech/Topo/StaticTranslationPanel
  • Mech/Topo/StaticFreeformPanel
  • Mech/Topo/DynamicTranslationPanel
  • Mech/Topo/DynamicRotationPanel
  • Mech/Topo/GeneralTransformPanel
  • Mech/Topo/TransformerDemoWindow

Web Page Application Source Code Path

  • wwwroot/mech/topo/transformer-select-panel.js
  • wwwroot/mech/topo/static-translation-control.js
  • wwwroot/mech/topo/static-rotation-control.js
  • wwwroot/mech/topo/static-freeform-control.js
  • wwwroot/mech/topo/dynamic-translation-control.js
  • wwwroot/mech/topo/dynamic-rotation-control.js
  • wwwroot/mech/topo/general-transform-control.js