2D closed arc node. More...
#include <Inventor/VRMLnodes/SoVRMLArcClose2D.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoVRMLArcClose2D () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFString | closureType |
SoSFFloat | endAngle |
SoSFFloat | radius |
SoSFFloat | startAngle |
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 SoVRMLArcClosed2D node specifies a portion of a circle whose center is at (0,0) and whose angles are measured starting at the positive x-axis and sweeping towards the positive y-axis. The end points of the arc specified are connected as defined by the closureType field. The radius field specifies the radius of the circle of which the arc is a portion. The arc extends from the startAngle counterclockwise to the endAngle. The value of radius must be greater than zero. The values of startAngle and endAngle must be in the range (0,2*pi). If startAngle and endAngle have the same value, a circle is specified and closureType is ignored.
A closureType of "PIE" connects the end point to the start point by defining two straight line segments first from the end point to the center and then the center to the start point. This forms a pie wedge as shown below.
A closureType of "CHORD" connects the end point to the start point by defining a straight line segment from the end point to the start point. This forms an arc segment as shown below.
Textures are applied individually to each face of the SoVRMLArcClosed2D. On the front (+Z) and back (-Z) faces of the SoVRMLArcClosed2D, when viewed from the +Z axis, the texture is mapped onto each face with the same orientation as if the were displayed normally in 2D. TextureTransform affects the texture coordinates of the SoVRMLArcClosed2D node.
closureType | "PIE" |
endAngle | 1.5708 |
radius | 1 |
startAngle | 0 |
solid | FALSE |
metadata | NULL |
SoSFNode | set_metadata |
SoSFNode | metadata_changed |
SoVRMLArcClose2D::SoVRMLArcClose2D | ( | ) |
Constructor.
static SoType SoVRMLArcClose2D::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoVRMLGeometry.
virtual SoType SoVRMLArcClose2D::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoVRMLGeometry.
Specifies the closure type of the arc.
Specifies the end angle of the arc.
Specifies the radius of the arc.
Must be greater than 0.0.
If TRUE, only the front face of the shape is displayed.
(The back face is culled.) If FALSE, both sides are displayed.
Specifies the start angle of the arc.