29 #ifndef __X3DPROTOTYPEINSTANCE_H__
30 #define __X3DPROTOTYPEINSTANCE_H__
48 class X3DSAX2Handlers;
72 virtual void render();
78 virtual void setPrototypedNode(
Node *n );
86 return prototyped_node.get();
92 prototyped_node_extras.push_back( n );
97 if( prototyped_node.get() )
98 return prototyped_node->defaultXMLContainerField();
113 if( prototyped_node.get() )
114 return prototyped_node->lineIntersect( from, to, result );
125 if( prototyped_node.get() )
126 return prototyped_node->closestPoint( p, result );
141 if( prototyped_node.get() )
142 return prototyped_node->movingSphereIntersect( radius,
149 virtual bool connectField(
const string &proto_field_name,
Header file for H3DBoundedObject.
Header file for H3DDynamicFieldsObject.
Header file for X3DNode, X3D scene-graph node.
The Field class.
Definition: Field.h:46
This abstract interface is the base class for all node types that include a bounding box.
Definition: H3DBoundedObject.h:42
This abstract interface class is the base class for all classes that specify arbitrary fields.
Definition: H3DDynamicFieldsObject.h:128
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
virtual string defaultXMLContainerField()
Returns the default xml containerField attribute value.
Definition: Node.h:338
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
This abstract node type is the base type for all nodes in the X3D system.
Definition: X3DNode.h:65
This abstract node type is the base type for all prototype instances in the X3D system.
Definition: X3DPrototypeInstance.h:65
virtual void addPrototypedNodeExtra(Node *n)
Set the node that is the internal scenegraph of the prototype.
Definition: X3DPrototypeInstance.h:91
virtual bool movingSphereIntersect(H3DFloat radius, const Vec3f &from, const Vec3f &to, NodeIntersectResult &result)
Detect collision between a moving sphere and the Node.
Definition: X3DPrototypeInstance.h:137
virtual Node * getPrototypedNode()
Get the node that is the internal scenegraph of the prototype.
Definition: X3DPrototypeInstance.h:81
virtual bool lineIntersect(const Vec3f &from, const Vec3f &to, LineIntersectResult &result)
Detect intersection between a line segment and the Node.
Definition: X3DPrototypeInstance.h:109
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: X3DPrototypeInstance.h:153
virtual void closestPoint(const Vec3f &p, NodeIntersectResult &result)
Find closest point on Node to p.
Definition: X3DPrototypeInstance.h:123
virtual string defaultXMLContainerField()
Returns the default xml containerField attribute value.
Definition: X3DPrototypeInstance.h:96
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194
Used as input to lineIntersect functions.
Definition: Node.h:224
Used as input to intersection functions.
Definition: Node.h:114