SYNOPSIS

#include <Inventor/VRMLnodes/SoVRMLGeometry.h>

Inherits SoShape.

Inherited by SoVRMLBox, SoVRMLCone, SoVRMLCylinder, SoVRMLElevationGrid, SoVRMLExtrusion, SoVRMLSphere, SoVRMLText, SoVRMLVertexLine, SoVRMLVertexPoint, and SoVRMLVertexShape.

Public Member Functions

virtual SoType getTypeId (void) const

Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. virtual void search (SoSearchAction *action)

virtual void copyContents (const SoFieldContainer *from, SbBool copyConn)

Static Public Member Functions

static SoType getClassTypeId (void)

static void initClass (void)

Protected Member Functions

virtual const SoFieldData * getFieldData (void) const

SoVRMLGeometry (void)

virtual ~SoVRMLGeometry ()

void setupShapeHints (SoState *state, const SbBool ccw, const SbBool solid)

virtual SbBool shouldGLRender (SoGLRenderAction *action)

virtual SoChildList * getChildren (void) const

virtual void notify (SoNotList *list)

Static Protected Member Functions

static const SoFieldData ** getFieldDataPtr (void)

Additional Inherited Members

Detailed Description

The SoVRMLGeometry class is a superclass for VRML shapes.

Constructor & Destructor Documentation

SoVRMLGeometry::SoVRMLGeometry (void)\fC [protected]\fP

Constructor.

SoVRMLGeometry::~SoVRMLGeometry ()\fC [protected]\fP, \fC [virtual]\fP

Destructor.

Member Function Documentation

\fBSoType\fP SoVRMLGeometry::getTypeId (void) const\fC [virtual]\fP

Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example:

void foo(SoNode * node)
{
  if (node->getTypeId() == SoFile::getClassTypeId()) {
    SoFile * filenode = (SoFile *)node;  // safe downward cast, knows the type
  }
}

For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.

For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.

Reimplemented from SoShape.

Reimplemented in SoVRMLElevationGrid, SoVRMLVertexShape, SoVRMLIndexedFaceSet, SoVRMLIndexedLineSet, SoVRMLText, SoVRMLExtrusion, SoVRMLVertexPoint, SoVRMLCone, SoVRMLCylinder, SoVRMLVertexLine, SoVRMLBox, SoVRMLIndexedLine, SoVRMLIndexedShape, SoVRMLPointSet, and SoVRMLSphere.

const \fBSoFieldData\fP * SoVRMLGeometry::getFieldData (void) const\fC [protected]\fP, \fC [virtual]\fP

Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.

Reimplemented from SoShape.

Reimplemented in SoVRMLElevationGrid, SoVRMLVertexShape, SoVRMLIndexedFaceSet, SoVRMLIndexedLineSet, SoVRMLText, SoVRMLExtrusion, SoVRMLVertexPoint, SoVRMLCone, SoVRMLCylinder, SoVRMLVertexLine, SoVRMLBox, SoVRMLIndexedLine, SoVRMLIndexedShape, SoVRMLPointSet, and SoVRMLSphere.

void SoVRMLGeometry::search (\fBSoSearchAction\fP *action)\fC [virtual]\fP

Action method for SoSearchAction.

Compares the search criteria from the action to see if this node is a match. Searching is done by matching up all criteria set up in the SoSearchAction -- if any of the requested criteria is a miss, the search is not deemed successful for the node.

See also:

SoSearchAction

Reimplemented from SoNode.

void SoVRMLGeometry::copyContents (const \fBSoFieldContainer\fP *from, SbBoolcopyconnections)\fC [virtual]\fP

Makes a deep copy of all data of from into this instance, except external scenegraph references if copyconnections is FALSE.

This is the method that should be overridden by extension node / engine / dragger / whatever subclasses which needs to account for internal data that are not handled automatically.

For copying nodes from application code, you should not invoke this function directly, but rather call the SoNode::copy() function:

SoNode * mynewnode = templatenode->copy();

The same also goes for engines.

Make sure that when you override the copyContents() method in your extension class that you also make it call upwards to it's parent superclass in the inheritance hierarchy, as copyContents() in for instance SoNode and SoFieldContainer does important work. It should go something like this:

void
MyCoinExtensionNode::copyContents(const SoFieldContainer * from,
                                  SbBool copyconnections)
{
  // let parent superclasses do their thing (copy fields, copy
  // instance name, etc etc)
  SoNode::copyContents(from, copyconnections);

  // [..then copy internal data..]
}

Reimplemented from SoNode.

void SoVRMLGeometry::setupShapeHints (\fBSoState\fP *state, const SbBoolccw, const SbBoolsolid)\fC [protected]\fP

Convenience method that updates the shape hints element.

SbBool SoVRMLGeometry::shouldGLRender (\fBSoGLRenderAction\fP *action)\fC [protected]\fP, \fC [virtual]\fP

This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.

Reimplemented from SoShape.

Reimplemented in SoVRMLVertexShape, SoVRMLVertexPoint, and SoVRMLVertexLine.

\fBSoChildList\fP * SoVRMLGeometry::getChildren (void) const\fC [protected]\fP, \fC [virtual]\fP

Returns list of children for this node.

Reimplemented from SoNode.

Reimplemented in SoVRMLText.

void SoVRMLGeometry::notify (\fBSoNotList\fP *l)\fC [protected]\fP, \fC [virtual]\fP

Notifies all auditors for this instance when changes are made.

Reimplemented from SoShape.

Reimplemented in SoVRMLVertexShape, SoVRMLElevationGrid, SoVRMLExtrusion, SoVRMLText, SoVRMLIndexedLine, SoVRMLIndexedLineSet, SoVRMLVertexPoint, SoVRMLVertexLine, and SoVRMLIndexedShape.

Author

Generated automatically by Doxygen for Coin from the source code.