The Arc node specifies a linear circular arc whose center is at (0,0) and whose angles are measured starting at the positive x-axis and sweeping towards the positive y-axis.
More...
|
| Arc2D (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< DisplayList > _displayList=0, Inst< MFBool > _isTouched=0, Inst< MFVec3f > _force=0, Inst< MFVec3f > _contactPoint=0, Inst< MFVec3f > _contactNormal=0, Inst< SFFloat > _endAngle=0, Inst< SFFloat > _startAngle=0, Inst< SFFloat > _radius=0) |
| Constructor.
|
|
virtual void | render () |
| Renders the Arc2D using OpenGL.
|
|
virtual int | nrLines () |
| The number of lines rendered by this geometry.
|
|
| X3DGeometryNode (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< DisplayList > _displayList=0, Inst< MFBool > _isTouched=0, Inst< MFVec3f > _force=0, Inst< MFVec3f > _contactPoint=0, Inst< MFVec3f > _contactNormal=0, Inst< MFVec3f > _contactTexCoord=0, Inst< SFBoundTree > _boundTree=0, Inst< SFVec3f > _centerOfMass=0) |
| Constructor.
|
|
virtual void | traverseSG (TraverseInfo &ti) |
| Traverse the scenegraph. More...
|
|
virtual bool | lineIntersect (const Vec3f &from, const Vec3f &to, LineIntersectResult &result) |
| Detect intersection between a line segment and this geometry. More...
|
|
virtual void | closestPoint (const Vec3f &p, NodeIntersectResult &result) |
| Find closest point on this geometry to point p. More...
|
|
virtual bool | movingSphereIntersect (H3DFloat radius, const Vec3f &from, const Vec3f &to, NodeIntersectResult &result) |
| Detect collision between a moving sphere and the geometry. More...
|
|
virtual void | glRender () |
| Function overridden from HAPIGLShape. More...
|
|
virtual H3DShadowObjectNode * | getShadowObject () |
| Get the H3DShadowObjectNode used to create a shadow volume for this geometry. More...
|
|
void | useCulling (bool enabled) |
| This function should be used by the render() function to disable or enable face culling. More...
|
|
bool | usingCulling () |
| Returns if face culling is in use or not.
|
|
void | allowCulling (bool allow) |
| Control if face culling is allowed or not. More...
|
|
void | useBackFaceCulling (bool enabled) |
| Enabling/disabling back face culling. More...
|
|
bool | allowingCulling () |
| Returns true if back face culling is allowed, false otherwise.
|
|
void | setCullFace (GLenum face) |
| Set which side of a polygon to cull. More...
|
|
GLenum | getCullFace () |
| Get which face will be culled if culling is enabled.
|
|
template<class OptionNodeType > |
void | getOptionNode (OptionNodeType *&option) |
| Get the first option node of the type of the pointer given as argument from the renderOptions fieeld The option argument will contain the node afterwards, or NULL if no option of that type exists.
|
|
int | getHapticShapeId (unsigned int index) |
| Get a shape id to be used for rendering of this geometry with HLAPI for the given haptics device. More...
|
|
virtual | ~X3DGeometryNode () |
| Destructor.
|
|
HAPI::HAPIHapticShape * | getOpenGLHapticShape (unsigned int hd_index, H3DSurfaceNode *_surface, const Matrix4f &_transform, int _nr_vertices=-1) |
| Returns a either a HLFeedbackShape or a HLDepthBufferShape with the X3DGeometryNode. More...
|
|
virtual string | defaultXMLContainerField () |
| Returns the default xml containerField attribute value. More...
|
|
virtual bool | supportsTangentAttributes () |
| Returns true if this geometry supports the automatic generation of tangents and binormals as FloatVertexAttribues(needed by e.g. More...
|
|
virtual void | getBound (HAPI::Vec3 ¢er, HAPI::Vec3 &size) |
| Overriden from HAPIGLShape to use the bound field in he X3DGeometryNode. More...
|
|
virtual void | initialize () |
| Changes behaviour of X3DGeometryNode to be a thread safe RefCountedClass.
|
|
| X3DChildNode (Inst< SFNode > _metadata=0) |
| Constructor.
|
|
| X3DNode (Inst< SFNode > _metadata=0) |
| Constructor.
|
|
X3DMetadataObject * | getMetadataByName (const string &_name) |
| Given a name, the first X3DMetadataObject in the metadata field that matches that name is returned. More...
|
|
| Node () |
| Constructor.
|
|
virtual Node * | clone (bool deepCopy=true, DeepCopyMap *deepCopyMap=NULL) |
| Returns a new instance of this node type with the same state as this one. More...
|
|
virtual | ~Node () |
| Destructor.
|
|
X3DPrototypeInstance * | getProtoInstanceParent () |
| If this node is the root node in the proto body of a X3DPrototypeInstance then this will return that node. More...
|
|
void | setProtoInstanceParent (X3DPrototypeInstance *p) |
| Set the X3DPrototypeInstance this node is the the root node if applicaple.
|
|
virtual Field * | getField (const string &_name) const |
| return a pointer to the field specified by name within this instance
|
|
int | addDestructCallback (void(*func)(Node *, void *), void *args) |
| Add a callback function to be run on destruction of node. More...
|
|
int | removeDestructCallback (void(*func)(Node *, void *), void *args) |
| Add a callback function to be run on destruction of node. More...
|
|
| H3DBoundedObject (Inst< SFBound > _bound=0) |
| Constructor.
|
|
| H3DDisplayListObject (Inst< DisplayList > _displayList=0) |
| Constructor.
|
|
The Arc node specifies a linear circular arc 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 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 shall be greater than zero. The values of startAngle and endAngle shall be in the range (0, 2pi). If startAngle and endAngle have the same value, a circle is specified.
Examples:
- Internal routes: