Class: Viewfrustum

X3DOM
Component: Navigation

x3dom.nodeTypes. Viewfrustum

The Viewfrustum node allows to define a camera position and projection utilizing a standard OpenGL projection/modelview pair.

HTML Encoding and Default Values

<Viewfrustum bind='false' description='""' isActive='false' metadata='X3DMetadataObject' modelview='1,0,0,0' projection='1,0,0,0' ></Viewfrustum>

Inheritance


Constructor

Viewfrustum(ctx)

Constructor for Viewfrustum

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
bind SFBool false X3DViewpointNode Pushes/pops the node on/from the top of the bindable stack
description SFString "" X3DViewpointNode Description of the bindable node
isActive SFBool false X3DViewpointNode
metadata SFNode X3DMetadataObject X3DViewpointNode Field to add metadata information
modelview SFMatrix4f 1,0,0,0 Camera modelview matrix
projection SFMatrix4f 1,0,0,0 Camera projection matrix