Component Prototype

Description

Magic Lens Component

 

 

The magic lens component uses the metaphor of a lens which enables its user to look inside objects. This component allows to select between two types of zoom: IN (if the user wants to come closer the object) and OUT (if the user wants to keep away the object).

In-slots

Name

Type

Description

visible***

boolean

The component is shown when true and hidden when false.

transformation***

matrix

This transformation matrix is applied to the component geometry when shown

Out-slots

Name

Type

Description

visible***

boolean

The in-slot is propagated to the out-slot

transformation***

matrix

This transformation matrix corresponds to the output transformation, which combines input transformation with the offset.

zoom

double

Gives two possible values:

  • 2 (if the zoom is IN)
  • 0.5 (if the zoom is OUT)

Properties

Name

Type

Description

iconFileName*

string

The filename of the icon shown for the component in the authoring environment.

offset***

matrix

The offset transformation matrix between the transformation given by the in-slot and the geometry model

size

double

Defines the dimension of the objet (default value, 80.0)

imageFileName

string

Filename of the image where it can pick in order to choose between IN and OUT zooms.

Figure Magic Lens