PolygonOverlay
Defines a single overlay. Overlays can only be uses as parts/childs of a Foreground node. Use a Foreground node to group overlays
Inheritance
Code
XML encoding
<PolygonOverlay positions='0 0, 1 0, 1 1, 0 1' texCoords='0 0 0, 1 0 0, 1 1 0, 0 1 0' normalizedX='TRUE' normalizedY='TRUE' fixedImageSize='0,0' zoomFactor='1.0' tile='TRUE' enabled='TRUE' exclusive='FALSE' logFeature='' />
Classic encoding
PolygonOverlay { positions [0 0, 1 0, 1 1, 0 1] texCoords [0 0 0, 1 0 0, 1 1 0, 0 1 0] normalizedX TRUE normalizedY TRUE fixedImageSize 0,0 zoomFactor 1.0 tile TRUE enabled TRUE exclusive FALSE logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
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 | ||
positions | MFVec2f | inputOutput | 0 0, 1 0, 1 1, 0 1 | The positions of the polygon to display. Default is a screen-filling quad. | ||
texCoords | MFVec3f | inputOutput | 0 0 0, 1 0 0, 1 1 0, 0 1 0 | Texture coordinates for the polygon. | ||
enabled | SFBool | inputOutput | TRUE | flag to enable/disable the overlay | ||
exclusive | SFBool | inputOutput | FALSE | defines if the overlay should be exclusive visible or not | ||
normalizedX | SFBool | inputOutput | TRUE | Define whether the x coordinates are normalized (0-1) or pixel-based . | ||
normalizedY | SFBool | inputOutput | TRUE | Define whether the y coordinates are normalized (0-1) or pixel-based . | ||
tile | SFBool | inputOutput | TRUE | If true the overlay tiles in multi window settings. | ||
zoomFactor | SFFloat | inputOutput | 1.0 | Zooming factor for scaling background image. | ||
appearance | SFNode | inputOutput | Appearance | The appearance used to render the polygon. | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
fixedImageSize | SFVec2f | inputOutput | 0,0 | Useful for keeping aspect ratio when rendering things like images by defining (width, height). |