SoComplexShape Class Reference

Abstract shape class for Inventor (Coin). More...

#include <SoComplexShape.h>

Inheritance diagram for SoComplexShape:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void copyContents (const SoFieldContainer *FC, SbBool copyConnection)
virtual SoChildList * getChildren () const

Static Public Member Functions

static void initClass ()

Protected Member Functions

virtual void callback (SoCallbackAction *action)
virtual void doAction (SoAction *action)
virtual void generateChildren ()
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
virtual void getMatrix (SoGetMatrixAction *action)
virtual void GLRender (SoGLRenderAction *action)
virtual void handleEvent (SoHandleEventAction *action)
virtual void pick (SoPickAction *action)
 SoComplexShape ()
virtual ~SoComplexShape ()

Protected Attributes

SoChildList * children
 A pointer to a list of the nodes that make up this complex shape.

Private Member Functions

 SO_NODE_ABSTRACT_HEADER (SoComplexShape)

Detailed Description

Abstract shape class for Inventor (Coin).

SoComplexShape is a new abstract shape class that we have added to the Inventor/Coin library. Since deriving subclasses from SoShape requires the precise bounding box computation, we represent complex shapes separately by deriving them from SoComplexShape, which is a subclass from SoNode directly.

Definition at line 44 of file SoComplexShape.h.


Constructor & Destructor Documentation

SoComplexShape::SoComplexShape (  )  [protected]

Generic constructor

Definition at line 62 of file SoComplexShape.cpp.

SoComplexShape::~SoComplexShape (  )  [protected, virtual]

Empty stub.

Definition at line 71 of file SoComplexShape.cpp.


Member Function Documentation

void SoComplexShape::callback ( SoCallbackAction *  action  )  [protected, virtual]

Generates triangles representing a SoComplexShape.

Definition at line 97 of file SoComplexShape.cpp.

void SoComplexShape::copyContents ( const SoFieldContainer *  FC,
SbBool  copyConnection 
) [virtual]

Copy function

Definition at line 255 of file SoComplexShape.cpp.

void SoComplexShape::doAction ( SoAction *  action  )  [protected, virtual]

This implements typical action traversal for an SoComplexShape node

Definition at line 169 of file SoComplexShape.cpp.

virtual void SoComplexShape::generateChildren (  )  [inline, protected, virtual]

Empty stub.

Reimplemented in SoArrow, and SoTorquePointer.

Definition at line 70 of file SoComplexShape.h.

void SoComplexShape::getBoundingBox ( SoGetBoundingBoxAction *  action  )  [protected, virtual]

Enlarges the current bounding box by adding the bounding boxes of each of this shape's children.

Definition at line 107 of file SoComplexShape.cpp.

SoChildList * SoComplexShape::getChildren (  )  const [virtual]

Returns the children list.

Definition at line 78 of file SoComplexShape.cpp.

void SoComplexShape::getMatrix ( SoGetMatrixAction *  action  )  [protected, virtual]

This implements the traversal for the SoGetMatrixAction, which is handled a little differently: it does not traverse below the root node or tail of the path it is applied to. Therefore, we need to compute the matrix only if this group is in the middle of the current path chain or is off the path chain (since the only way this could be true is if the group is under a group that affects the chain).

Definition at line 140 of file SoComplexShape.cpp.

void SoComplexShape::GLRender ( SoGLRenderAction *  action  )  [protected, virtual]

Implements the SoGLRenderAction for the SoCoordinateAxis node.

Definition at line 88 of file SoComplexShape.cpp.

void SoComplexShape::handleEvent ( SoHandleEventAction *  action  )  [protected, virtual]

Passes the event on to each of the children of the complex shape.

Definition at line 116 of file SoComplexShape.cpp.

void SoComplexShape::initClass (  )  [static]

Initializes the SoComplexShape class. This is a one-time thing that is done after database initialization and before any instance of this class is constructed.

Reimplemented in SoArrow, and SoTorquePointer.

Definition at line 52 of file SoComplexShape.cpp.

void SoComplexShape::pick ( SoPickAction *  action  )  [protected, virtual]

Passes the pick action on to each of the children of the complex shape.

Definition at line 125 of file SoComplexShape.cpp.

SoComplexShape::SO_NODE_ABSTRACT_HEADER ( SoComplexShape   )  [private]

Member Data Documentation

SoChildList* SoComplexShape::children [protected]

A pointer to a list of the nodes that make up this complex shape.

Definition at line 82 of file SoComplexShape.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:24 2012