29 #ifndef __TEXGENGEOMETRY_H__
30 #define __TEXGENGEOMETRY_H__
69 FieldRef< H3DDisplayListObject,
70 H3DDisplayListObject::DisplayList,
71 &H3DDisplayListObject::displayList >,
76 virtual void onAdd(
Node *n ) {
88 virtual void onRemove(
Node *n ) {
93 true >::onRemove( n );
97 if( g && own ) g->
bound->unroute( own->
bound );
103 Inst< SFBound > _bound = 0,
104 Inst< DisplayList > _displayList = 0,
105 Inst< MFBool > _isTouched = 0,
106 Inst< MFVec3f > _force = 0,
107 Inst< MFVec3f > _contactPoint = 0,
108 Inst< MFVec3f > _contactNormal = 0,
109 Inst< SFGeometryNode > _geometry = 0,
110 Inst< SFTexCoordGenNode > _texCoord = 0 );
113 virtual void render();
121 if( g )
return g->nrTriangles();
Contains the DependentSFNode and DependentMFNode template classes.
Header file for TextureCoordinateGenerator, X3D scene-graph node.
Header file for X3DGeometryNode, X3D scene-graph node.
DependentSFNode are modified TypedSFNode fields where the field dirty status is dependent on fields i...
Definition: DependentNodeFields.h:294
Class used for specifying a field member of a node in a DependentSFNode or DependentMFNode specificat...
Definition: DependentNodeFields.h:48
The Field class.
Definition: Field.h:46
H3DUniquePtr< SFBound > bound
The field containing the bound object.
Definition: H3DBoundedObject.h:59
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
Node is the base class for all classes that can be part of the H3D scene-graph.
Definition: Node.h:46
The SFGeometryNode keeps a route between the contained X3DGeometryNode's bound field and the bound fi...
Definition: TexGenGeometry.h:72
The TexGenGeometry node is a wrapper node that lets you specify a TextureCoordinateGenerator node to ...
Definition: TexGenGeometry.h:52
DependentSFNode< TextureCoordinateGenerator, FieldRef< X3DGeometricPropertyNode, Field, &X3DGeometricPropertyNode::propertyChanged > > SFTexCoordGenNode
The SFTextureCoordinteNode is dependent on the propertyChanged field of the contained TextureCoordina...
Definition: TexGenGeometry.h:62
virtual int nrTriangles()
The number of triangles renderered in this geometry.
Definition: TexGenGeometry.h:119
H3DUniquePtr< SFGeometryNode > geometry
The geometry field contains the X3DGeometryNode that we want to generate texture coordinates for.
Definition: TexGenGeometry.h:131
H3DUniquePtr< SFTexCoordGenNode > texCoord
The texCoord field contains the TextureCoordinateGenerator node to use to generate texture coordinate...
Definition: TexGenGeometry.h:139
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: TexGenGeometry.h:142
TextureCoordinateGenerator supports the automatic generation of texture coodinates for geometric shap...
Definition: TextureCoordinateGenerator.h:92
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
This is the base node type for all geometric property node types defined in X3D.
Definition: X3DGeometricPropertyNode.h:43
H3DUniquePtr< Field > propertyChanged
Field that indicated whether the properties have changed.
Definition: X3DGeometricPropertyNode.h:53
This is the base node type for all geometry in X3D.
Definition: X3DGeometryNode.h:61
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