Coin Logo http://www.sim.no
http://www.coin3d.org

Public Member Functions | Static Public Member Functions | Protected Member Functions

SoSceneKit Class Reference

The SoSceneKit class collects node kits needed to set up a scene: camera, light and shapes.Node kit structure (new entries versus parent class marked with arrow prefix): More...

#include <Inventor/nodekits/SoSceneKit.h>

Inheritance diagram for SoSceneKit:
SoBaseKit SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoSceneKit (void)
int getCameraNumber (void)
void setCameraNumber (int camNum)
virtual SbBool affectsState (void) const

Static Public Member Functions

static void initClass (void)

Protected Member Functions

virtual ~SoSceneKit ()

Detailed Description

The SoSceneKit class collects node kits needed to set up a scene: camera, light and shapes.

Node kit structure (new entries versus parent class marked with arrow prefix):

  CLASS SoSceneKit
  -->"this"
        "callbackList"
  -->   "topSeparator"
  -->      "cameraList"
  -->      "lightList"
  -->      "childList"
  

(See SoBaseKit::printDiagram() for information about the output formatting.)

Detailed information on catalog parts:

  CLASS SoSceneKit
  PVT   "this",  SoSceneKit  --- 
        "callbackList",  SoNodeKitListPart [ SoCallback, SoEventCallback ] 
  PVT   "topSeparator",  SoSeparator  --- 
        "cameraList",  SoNodeKitListPart [ SoCameraKit ] 
        "lightList",  SoNodeKitListPart [ SoLightKit ] 
        "childList",  SoNodeKitListPart [ SoShapeKit, SoSeparatorKit ] 
  

(See SoBaseKit::printTable() for information about the output formatting.)


Constructor & Destructor Documentation

SoSceneKit::SoSceneKit ( void  )

Constructor.

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

Destructor.


Member Function Documentation

void SoSceneKit::initClass ( void  ) [static]

Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.

Reimplemented from SoBaseKit.

Referenced by SoNodeKit::init().

int SoSceneKit::getCameraNumber ( void  )

Returns the index of the current active camera in cameraList.

References SoBaseKit::getContainerNode(), and SoSwitch::whichChild.

void SoSceneKit::setCameraNumber ( int  camnum)

Sets the current active camera in cameraList.

References SoBaseKit::getContainerNode(), SoGroup::getNumChildren(), SoDebugError::postInfo(), and SoSwitch::whichChild.

SbBool SoSceneKit::affectsState ( void  ) const [virtual]

Returns TRUE if the node could have any effect on the state during traversal.

If it returns FALSE, no data in the traversal-state will change from the pre-traversal state to the post-traversal state. The SoSeparator node will for instance return FALSE, as it pushes and pops the state before and after traversal of its children. All SoShape nodes will also return FALSE, as just pushing out geometry data to the rendering engine won't affect the actual rendering state.

The default method returns TRUE, on a "better safe than sorry" philosophy.

Reimplemented from SoNode.


The documentation for this class was generated from the following files:

Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.

Generated on Mon Feb 28 2011 10:12:18 for Coin by Doxygen. 1.7.3