---
title: Cleaner Filters
description: "The cleaning filters \"clean\" the user's drawing, deleting and adjusting data. This data can then be processed by the various detection filters. Rather than hard-coding these filters, I opted for a modular system. For the time being, Touch Interface Designer…"
url: "https://www.lostingamestudio.com/documentation/touch-interface-designer/virtual-shape-editor/cleaner-filters/"
updated: "2025-12-22"
category: Virtual Shape Editor
---

# Cleaner Filters

The cleaning filters "clean" the user's drawing, deleting and adjusting data. This data can then be processed by the various detection filters. Rather than hard-coding these filters, I opted for a modular system.

For the time being, Touch Interface Designer incorporates a single cleaning filter, which is not perfect and still needs to be improved. Don't forget that the shape recognition system and its editor are still in the experimental phase.

## SCALE (Virtual Shape Scaling)

Scale user's drawing shape bound to virtual shape bound. Useful for length or dot based detection filter.

## CREATE MY OWN CLEANER FILTER

Simply create a class that inherit from VirtualShapeCleaner and override ***Evaluate*** function. Please note that the DrawData parameter is passed by reference. Any modification to this variable is reflected.
