# TopologyMotionPresentation

A detached topology presentation that adds script-free motion to resolved static geometry.

 Class  

`ChartForgeX.Topology`

**Namespace**

`ChartForgeX.Topology`

**Assembly**

`ChartForgeX.Stories`

**Source**

[TopologyMotionPresentation.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L41)

**Implements**

 `IStaticVisualSource` 

**Modifiers**

sealed

A detached topology presentation that adds script-free motion to resolved static geometry.

## Inheritance

- object
- TopologyMotionPresentation

## Usage

 Explore 3 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Extension method [PreparedTopology.WithMotion](/api/chartforgex-topology-preparedtopology/#extension-withmotion-chartforgex-topology-preparedtopology-chartforgex-topology-topologymotionoptions)
- Extension method [TopologyChart.WithMotion](/api/chartforgex-topology-topologychart/#extension-withmotion-chartforgex-topology-topologychart-chartforgex-topology-topologymotionoptions-chartforgex-topology-topologyrenderoptions)
- Method [TopologyMotionExtensions.WithMotion](/api/chartforgex-topology-topologymotionextensions/#method-withmotion-chartforgex-topology-topologychart-chartforgex-topology-topologymotionoptions-chartforgex-topology-topologyrenderoptions)

 Filter members   

    Show inherited   

 

## Methods

 `public PreparedVisual Sample(double progress)` [#](#method-sample-double) 

[TopologyMotionPresentation.cs:62](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L62)

Samples the same resolved route into a detached static scene without mutating the base scene.

Parameters

**progress double required**

Progress from zero to one. One retains the completed route for non-looping motion, and returns to the route start at the seam of looping motion.

Returns

 `PreparedVisual` 

 `public byte[] ToApng()` [#](#method-toapng) 

[TopologyMotionPresentation.cs:78](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L78)

Exports a sampled animated PNG.

Returns

 `byte[]` 

 `public byte[] ToGif()` [#](#method-togif) 

[TopologyMotionPresentation.cs:76](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L76)

Exports a sampled animated GIF.

Returns

 `byte[]` 

 `public string ToHtmlFragment()` [#](#method-tohtmlfragment) 

[TopologyMotionPresentation.cs:80](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L80)

Exports the animated SVG inside an embeddable HTML wrapper.

Returns

 `string` 

 ToHtmlPage 2 overloads 

 `public string ToHtmlPage()` [#](#method-tohtmlpage) 

[TopologyMotionPresentation.cs:82](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L82)

Exports a complete HTML document containing the animated SVG.

Returns

 `string` 

 `public string ToHtmlPage(Func<string, string> svgDecorator)` [#](#method-tohtmlpage-func-system-string-system-string) 

[TopologyMotionPresentation.cs:87](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L87)

Exports animated HTML after a caller-owned transformation of the trusted SVG presentation.

Parameters

**svgDecorator System.Func<string, string> required**

Returns

 `string` 

 `public byte[] ToPng()` [#](#method-topng) 

[TopologyMotionPresentation.cs:74](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L74)

Exports the configured progress sample as PNG.

Returns

 `byte[]` 

 `public RgbaImage ToRgbaImage()` [#](#method-torgbaimage) 

[TopologyMotionPresentation.cs:72](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L72)

Exports the configured progress sample as RGBA pixels.

Returns

 `RgbaImage` 

 ToSvg 2 overloads 

 `public string ToSvg()` [#](#method-tosvg) 

[TopologyMotionPresentation.cs:41](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L41)

Exports script-free animated SVG over the native resolved route plan.

Returns

 `string` 

 `public string ToSvg(string idScope)` [#](#method-tosvg-string) 

[TopologyMotionPresentation.cs:53](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L53)

Exports animated SVG with a caller-owned embedding namespace.

Parameters

**idScope string required**

Returns

 `string` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public double Width { get; }` [#](#property-width) 

[TopologyMotionPresentation.cs:33](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L33)

Gets the resolved logical width shared by all exports.

 `public double Height { get; }` [#](#property-height) 

[TopologyMotionPresentation.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L35)

Gets the resolved logical height shared by all exports.

 `public PreparedVisual StaticVisual { get; }` [#](#property-staticvisual) 

[TopologyMotionPresentation.cs:37](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX.Stories/Topology/TopologyMotionPresentation.cs#L37)

Gets the unchanged static prepared scene beneath the motion.

<!-- PowerForge markdown artifact sha256:00942DE84B0A9F4EDFF7415DA1FBEACA50C5EE5CC1E588C2DC3DA2A64AEE0898 -->
