2D disk node. More...
#include <Inventor/VRMLnodes/SoVRMLDisk2D.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLDisk2D () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFFloat | outerRadius |
SoSFFloat | innerRadius |
SoSFBool | solid |
See the X3D Specification, below.
NOTE: This class does not exist in Open Inventor 10.0 and later.This section may reference portions of the X3D specification that are not present in this help file. The complete X3D spec is available at http://www.web3d.org .
The SoVRMLDisk2D node specifies a circular disk which is centered at (0,0) in the local coordinate system. The outerRadius field specifies the radius of the outer dimension of the SoVRMLDisk2D. The innerRadius field specifies the inner dimension of the SoVRMLDisk2D. The value of outerRadius must be greater than zero. The value of innerRadius must be greater than or equal to zero and less than or equal to outerRadius. If innerRadius is zero, the SoVRMLDisk2D is completely filled. Otherwise, the area within the innerRadius forms a hole in the SoVRMLDisk2D. The figure below illustrates the SoVRMLDisk2D node containing a non-zero innerRadius.
Textures are applied individually to each face of the SoVRMLDisk2D. On the front (+Z) and back (-Z) faces of the SoVRMLDisk2D, when viewed from the +Z axis, the texture is mapped onto each face with the same orientation as if the image were displayed normally in 2D. TextureTransform affects the texture coordinates of the SoVRMLDisk2D node.
innerRadius | 0 |
outerRadius | 1 |
solid | FALSE |
metadata | NULL |
SoSFNode | set_metadata |
SoSFNode | metadata_changed |
SoVRMLDisk2D::SoVRMLDisk2D | ( | ) |
Creates a VRMLDisk2D with default settings.
static SoType SoVRMLDisk2D::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLGeometry.
virtual SoType SoVRMLDisk2D::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLGeometry.
Specifies the inner radius of the disk.
Must be greater or equal to 0.0. If the value of innerRadius is 0.0, the Disk2D is completely filled. Otherwise, the area within the innerRadius forms a hole in the Disk2D.
Specifies the outer radius of the disk.
Must be greater than 0.0.
If TRUE, only the front face of the disk is displayed.
(The back face is culled.) If FALSE, both sides are displayed.