View
Abstract interface for any render surfaces e.g. Viewport, Viewarea or RenderedTexture. Use the "description" field to name the View. The default Viewarea is 'default'.
Properties
Type | Property | Description | Standard |
---|---|---|---|
String | name | The name of the view; default view has the name 'default'.
| Avalon |
SFNode | refNode | Returns the reference node; e.g. Viewarea, RenderedTexture or Layer.
| Avalon |
SFNode | rootNode | Returns the root node; e.g. Scene or RenderedTexture child.
| Avalon |
SFVec2f | size | The size in pixel.
| Avalon |
Functions
Return type | Function | Description | Standard |
---|---|---|---|
void | buildRay(SFVec2f v, SFVec3f rayPos, SFVec3f rayDir, SFVec3f panePos) | returns the rayPos, rayDir and panePose for the given normalized 2d position
| Avalon |
SFNode | shootRay(SFVec3f rayPos, SFVec3f rayDir, String NodeType, SFVec3f pickPos, SFVec3f pickNormal) | returns the picked node (or null) for the given rayPos,rayNormal and nodeType, optional rayPosition and rayNormals are assigned
| Avalon |
SFNode | getActiveBindable(String bindableType) | Returns the currently active bindable of the given typ. Can be null if you e.g. ask for a Viewpoint and the active bindalbe is a OrthoViewpoint; Use abstract types like ViewBindable. bindableType must be a valid Bindable node (e.g. "Viewpoint", "Background", "Fog", "TextureBackground" or "NavigationInfo" ) | Avalon |