InteractiveTexture
Abstract base class for textures that handle 2D GUIs like typical desktop widget sets. If the pointer and button slots are filled with valid values (e.g. by using a TouchSensor), it is possible to interact with the user interface.
Inheritance
Code
XML encoding
<InteractiveTexture pointer='0 0' button1='FALSE' button2='FALSE' button3='FALSE' enabled='TRUE' triggerName='Timer' logFeature='' />
Classic encoding
InteractiveTexture {
pointer 0 0
button1 FALSE
button2 FALSE
button3 FALSE
enabled TRUE
triggerName "Timer"
logFeature [""]
}
Interface
Filter: X3D only | Avalon only | All
| id | Name | DataType | PartType | Default | ValueType | Description |
|---|---|---|---|---|---|---|
| textureProperties | SFNode | initializeOnly | TextureProperties | Definition of a texture property set. When set, the corresponding fields like repeat etc of the texture itself are ignored. | ||
| triggerName | SFString | initializeOnly | Timer | Name of the dynamic context-slot, which is used by the run-time environment (e.g. Jobs) to trigger the node. Life-Nodes will automatically connect the context-eventOutput to the triggerSlot-eventInput Slot. | ||
| actionKeyPress | SFInt32 | inputOnly | To be used for incoming actionKeyPress events. | |||
| actionKeyRelease | SFInt32 | inputOnly | To be used for incoming actionKeyRelease events. | |||
| keyPress | SFString | inputOnly | To be used as key pressed event. | |||
| keyRelease | SFString | inputOnly | To be used as key released event. | |||
| triggerSlot | SFTime | inputOnly | Slot which is used internally to connect a dynamic context-slot whose name is set by the triggerName value. It is used automatically to install a run-time environment trigger. | |||
| button1 | SFBool | inputOutput | FALSE | If gets TRUE, process button1 pressed event (usually treated as left mouse button), else trigger release. | ||
| button2 | SFBool | inputOutput | FALSE | If gets TRUE, process button2 pressed event (usually treated as middle mouse button), else trigger release. | ||
| button3 | SFBool | inputOutput | FALSE | If gets TRUE, process button3 pressed event (usually treated as right mouse button), else trigger release. | ||
| enabled | SFBool | inputOutput | TRUE | Flag to enable/disable the update. | ||
| logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
| metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
| pointer | SFVec2f | inputOutput | 0 0 | Position of the pointing device (generally between 0 and 1). | ||
| image_changed | SFImage | outputOnly | sends a singe image on change |
