← Back to carmenta.com
Carmenta Engine SDK Documentation
×

CustomVisualizerCacheHint Enumeration

Specifies when the visualization generated by a custom visualizer may be cached and reused.

Namespace: Carmenta.Engine
NuGet/Assembly: Carmenta.Engine.5.16.2.nupkg (in the CECustomObjects assembly)

Syntax

C#
public enum CustomVisualizerCacheHint

Values

Value nameValueDescription
Never0

The visualization should never be cached.

Position1

The visualization may be cached. If the position on screen changes, the cached visualization will be redrawn at the new position. If view scale or rotation changes, Carmenta Engine will call the custom symbol to redraw the feature.

Scale2

The visualization may be cached. If the view scale changes, the cached visualization will be redrawn and scaled appropriately. If view position or rotation changes, Carmenta Engine will call the custom symbol to redraw the feature.

Rotation4

The visualization may be cached. If the view rotation changes, the cached visualization will be redrawn and rotated appropriately. If view position or scale changes, Carmenta Engine will call the custom symbol to redraw the feature.

Always7

A combination of Position, Scale and Rotation. The visualization will be cached and reused even if position, scale or rotation changes.

Remarks

This is an enumeration type, used as return value from the ICustomVisualizer.Draw and ICustomNativeVisualizer.Draw methods of custom visualizers. It indicates if and how the visualization created by the visualizer may be cached and reused, if the position, scale or rotation of the view changes.

The enumeration is in fact a bit field, several values may be used together.

Platforms

Windows, Linux, Android

By accessing the information on this site you accept our terms and conditions and privacy policy.
This site uses cookies to enhance your experience and provide additional functionality.

Accept