131 FieldRef< H3DDisplayListObject,
132 H3DDisplayListObject::DisplayList,
133 &H3DDisplayListObject::displayList >,
135 Types< SFBool, MFString > > {
152 virtual void update();
155 virtual void onAdd(
Node *n );
158 virtual void onRemove(
Node *n );
174 AnyNumber< X3DBoundedObject::SFBound > > {
177 virtual void update();
181 Inline( Inst< SFNode > _metadata = 0,
182 Inst< DisplayList > _displayList = 0,
183 Inst< MFString > _url = 0,
184 Inst< SFBound > _bound = 0,
185 Inst< SFVec3f > _bboxCenter = 0,
186 Inst< SFVec3f > _bboxSize = 0,
187 Inst< SFBool > _load = 0,
188 Inst< LoadedScene > _loadedScene = 0,
189 Inst< SFString > _importMode = 0,
190 Inst< SFBool > _traverseOn = 0 );
193 exported_nodes.clear();
203 const Vec3f &size = bboxSize->getValue();
204 if( size.x == -1 && size.y == -1 && size.z == -1 ) {
205 NodeVector children_nodes = loadedScene->getValue();
206 use_union_bound =
true;
209 loadedScene->setValue( children_nodes,
id );
211 use_union_bound =
false;
213 bb->
center->setValue( bboxCenter->getValue() );
214 bb->
size->setValue( bboxSize->getValue() );
215 bound->setValue( bb );
221 virtual void render();
232 virtual bool lineIntersect(
const Vec3f &from,
234 LineIntersectResult &result );
241 virtual void closestPoint(
const Vec3f &p,
242 NodeIntersectResult &result );
252 virtual bool movingSphereIntersect(
H3DFloat radius,
255 NodeIntersectResult &result );
299 bool use_union_bound;
Contains the DEFNodes class.
Header file for Group, X3D scene-graph node.
Header file for H3DDisplayListObject.
Header file for X3DBoundedObject.
Header file for X3DChildNode, X3D scene-graph node.
Header file for X3DUrlObject, X3D scene-graph node.
virtual void initialize()
The BoxBound is a Bound class that specifies the bound using an axis-aligned bounding box.
Definition: Bound.h:144
H3DUniquePtr< SFVec3f > center
The center point of the bounding box.
Definition: Bound.h:285
H3DUniquePtr< SFVec3f > size
The size of the bounding box.
Definition: Bound.h:287
DependentMFNode are modified TypedMFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:336
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
A Group node contains children nodes without introducing a new transformation.
Definition: Group.h:53
We use the Field's lazy evaluation mechanisms to manage the GL display lists for rendering,...
Definition: H3DDisplayListObject.h:60
This abstract interface class is the base class for all node types that wants to create an OpenGL dis...
Definition: H3DDisplayListObject.h:54
H3DUniquePtr< DisplayList > displayList
The DisplayList instance handling the OpenGL caching of this object.
Definition: H3DDisplayListObject.h:256
The LoadedScene class updates itself from the load and url field and sets itself to the first url tha...
Definition: Inline.h:135
~LoadedScene()
Destructor.
Definition: Inline.h:140
SFBound is specialized to update from the SFBound fields routed to it.
Definition: Inline.h:174
The Inline node embeds an X3D scene stored at a location on the World Wide Web into the current scene...
Definition: Inline.h:120
H3DUniquePtr< SFString > importMode
The autoImport mode defines the way that the Inline node exports its nodes and how they are imported ...
Definition: Inline.h:286
H3DUniquePtr< LoadedScene > loadedScene
The scene that is currently loaded by the inline node.
Definition: Inline.h:270
H3DUniquePtr< SFBool > traverseOn
If set to false the children nodes of the Inline node will not be traversed at all,...
Definition: Inline.h:295
H3DUniquePtr< SFBool > load
If the load field is set to TRUE (the default field value), the X3D file specified by the url field i...
Definition: Inline.h:264
X3D::DEFNodes exported_nodes
A DEFNodes structure from the name of nodes exported with the EXPORT statement in the url of the Inli...
Definition: Inline.h:306
X3D::DEFNodes DEF_nodes
A DEFNodes structure from the name of nodes named with the DEF statement in the url of the Inline nod...
Definition: Inline.h:310
virtual void initialize()
Sets up the bound field using the bboxCenter and bboxSize fields.
Definition: Inline.h:202
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: Inline.h:302
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
A template modifier class for adding type checking on the routes to any Field class.
Definition: TypedField.h:84
This X3D abstract interface type is basis for all X3D node types that have bounds specified as part o...
Definition: X3DBoundedObject.h:46
This abstract node type indicates that the concrete nodes which are instantiated based on it may be u...
Definition: X3DChildNode.h:42
This abstract interface is inherited by all nodes that contain data located on the World Wide Web,...
Definition: X3DUrlObject.h:51
Provides a mapping between defined DEF names in X3D and the nodes they refer to.
Definition: DEFNodes.h:92
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
The Types template can be used in the RequiredArgTypes or OptionalArgTypes arguments of a TypedField ...
Definition: TypedFieldTypesTmpl.h:60