Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

X3DAbstractNode Class Reference

X3DAbstractNode defines the root class of the derivation tree. More...

Inheritance diagram for X3DAbstractNode:

X3DGLNode X3DNode X3DGLAppearanceChildNode X3DGLAppearanceNode X3DGLChildNode X3DGLGeometryNode X3DAppearanceChildNode X3DAppearanceNode X3DChildNode X3DGeometricPropertyNode X3DGeometryNode List of all members.

Public Member Functions

Static Public Attributes

Protected Member Functions

Static Protected Member Functions

Protected Attributes


Detailed Description

X3DAbstractNode defines the root class of the derivation tree.

Definition at line 20 of file X3DAbstractNode.h.


Constructor & Destructor Documentation

X3DAbstractNode  ) 
 

Constructor.

virtual ~X3DAbstractNode  )  [virtual]
 

Virtual destructor.

X3DAbstractNode const X3DAbstractNode &  N  )  [protected]
 

Copy constructor.


Member Function Documentation

virtual bool addChild const SFNode &  N  )  [virtual]
 

Adds the child N.

Returns FALSE if the child already exists or N is not a valid child.

Reimplemented in GLStaticGroup, X3DGLGroupingNode, GLAppearance, X3DGLShapeNode, StaticGroup, X3DGroupingNode, IndexedLineSet, PointSet, X3DComposedGeometryNode, Appearance, and X3DShapeNode.

void addLink SFNode  father,
SFNode  child
[static, protected]
 

Adds link between A and B.

void addScenes SFNode  child,
const MFScene &  sceneList
[static, protected]
 

Adds the scenes.

virtual void addScenesToChildren const MFScene &  sceneList  )  [protected, virtual]
 

Adds the scenes to the children.

Reimplemented in GLStaticGroup, X3DGLGroupingNode, X3DGLShapeNode, StaticGroup, X3DGroupingNode, IndexedLineSet, PointSet, X3DComposedGeometryNode, Appearance, and X3DShapeNode.

virtual SFNode clone  )  const [virtual]
 

Clones the node.

Reimplemented in GLScene, X3DGLNode, GLBox, GLCone, GLCylinder, GLIndexedFaceSet, GLSphere, GLGroup, GLStaticGroup, GLTransform, X3DGLChildNode, X3DGLGroupingNode, GLIndexedLineSet, GLPointSet, GLTriangleFanSet, GLTriangleSet, GLTriangleStripSet, X3DGLComposedGeometryNode, X3DGLGeometry3DNode, X3DGLGeometryNode, GLAppearance, GLFillProperties, GLLineProperties, GLMaterial, GLShape, X3DGLAppearanceChildNode, X3DGLAppearanceNode, X3DGLMaterialNode, X3DGLShapeNode, GLImageTexture, X3DGLTexture2DNode, X3DGLTextureNode, X3DGLTextureTransformNode, Scene, X3DNode, Box, Cone, Cylinder, IndexedFaceSet, Sphere, Group, StaticGroup, Transform, X3DChildNode, X3DGroupingNode, Color, ColorRGBA, Coordinate, IndexedLineSet, Normal, PointSet, TriangleFanSet, TriangleSet, TriangleStripSet, X3DColorNode, X3DComposedGeometryNode, X3DCoordinateNode, X3DGeometricPropertyNode, X3DGeometry3DNode, X3DGeometryNode, X3DNormalNode, Appearance, FillProperties, LineProperties, Material, Shape, X3DAppearanceChildNode, X3DAppearanceNode, X3DMaterialNode, X3DShapeNode, ImageTexture, TextureCoordinate, X3DTexture2DNode, X3DTextureCoordinateNode, X3DTextureNode, and X3DTextureTransformNode.

void defineTagName const SFString name,
const SFString component = SFString("")
[inline, protected]
 

Method to call at the first line of the body of the constructor, and passing in argument the name of the tag of the X3D file.

Definition at line 77 of file X3DAbstractNode.h.

MFNode getParentList  )  const [inline]
 

Gets the parent list.

Definition at line 39 of file X3DAbstractNode.h.

MFScene getSceneList  )  const [inline]
 

Gets the Scene of the node.

Definition at line 37 of file X3DAbstractNode.h.

References X3DAbstractNode::_sceneList.

Type* getType  )  const [inline]
 

Gets the type of the node.

Definition at line 35 of file X3DAbstractNode.h.

SFString getTypeName  )  const [inline]
 

Gets the type name of the node.

Definition at line 33 of file X3DAbstractNode.h.

References Type::getName().

virtual void loadAttributes const X3DFileElement element  )  [virtual]
 

Loads the attributes from a FileElement.

Reimplemented in Scene, Box, Cone, Cylinder, IndexedFaceSet, Sphere, Group, StaticGroup, Transform, Color, ColorRGBA, Coordinate, IndexedLineSet, Normal, TriangleFanSet, TriangleSet, TriangleStripSet, X3DComposedGeometryNode, FillProperties, LineProperties, Material, Shape, ImageTexture, X3DTexture2DNode, and X3DTextureCoordinateNode.

virtual bool removeChild const SFNode &  N  )  [virtual]
 

Removes the child if exists. Returns TRUE if suceeds.

Reimplemented in GLStaticGroup, X3DGLGroupingNode, GLAppearance, X3DGLShapeNode, StaticGroup, X3DGroupingNode, IndexedLineSet, PointSet, X3DComposedGeometryNode, Appearance, and X3DShapeNode.

void removeLink SFNode  father,
SFNode  child
[static, protected]
 

Remove link between A and B.

void removeScenes SFNode  child,
const MFScene &  sceneList
[static, protected]
 

Removes the scenes.

virtual void removeScenesToChildren const MFScene &  sceneList  )  [protected, virtual]
 

Removes the scenes to the children.

Reimplemented in GLStaticGroup, X3DGLGroupingNode, X3DGLShapeNode, StaticGroup, X3DGroupingNode, IndexedLineSet, PointSet, X3DComposedGeometryNode, Appearance, and X3DShapeNode.

virtual bool setChild const SFNode &  N  )  [virtual]
 

Sets the child N.

Returns FALSE if N is not a valid child. If the child already exists then N becomes the new child.

Reimplemented in GLStaticGroup, X3DGLGroupingNode, GLAppearance, X3DGLShapeNode, StaticGroup, X3DGroupingNode, IndexedLineSet, PointSet, X3DComposedGeometryNode, Appearance, and X3DShapeNode.

virtual SFString writeAttributes  )  const [virtual]
 

Writes the attributes of the node.

Reimplemented in Scene, Box, Cone, Cylinder, IndexedFaceSet, Sphere, Group, StaticGroup, Transform, Color, ColorRGBA, Coordinate, IndexedLineSet, Normal, TriangleFanSet, TriangleSet, TriangleStripSet, X3DComposedGeometryNode, FillProperties, LineProperties, Material, Shape, ImageTexture, X3DTexture2DNode, and X3DTextureCoordinateNode.


Member Data Documentation

MFScene _sceneList [protected]
 

Definition at line 79 of file X3DAbstractNode.h.

Referenced by X3DAbstractNode::getSceneList().

NameDict DEFDict [static]
 

Definition at line 55 of file X3DAbstractNode.h.


The documentation for this class was generated from the following file:
Generated on Wed May 14 10:38:16 2003 for X3DToolKit by doxygen1.3