SoCameraKit — camera nodekit class
Contents
Catalog Parts
┌──────────────────────────────────────────────────────────────┐
│ Allparts │
│ NULLby │
│ PartNamePartTypeDefaultTypeDefault │
│ │
│ callbackList NodeKitListPart -- yes │
│ transform Transform -- yes │
│ camera Camera PerspectiveCamera no │
│ │
└──────────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────────────┐
│ Extrainformationforlistpartsfromabovetable │
│ │
│ PartNameContainerTypePermissibleTypes │
│ │
│ callbackList Separator Callback, EventCallback │
│ │
└────────────────────────────────────────────────────────────────┘
Description
This nodekit class is used to create camera nodes that have a local transformation. SoCameraKit adds two
public parts to the basic nodekit: transform and camera.
The camera part is created by default as an SoPerspectiveCamera node, but may later be changed to any
subclass of SoCamera.
You can move the camera relative to the rest of the scene by creating and editing the transform part.
SoCameraKit also adds a private part, transformGroup, which is of type SoTransformSeparator. The kit uses
this part to contain the effect of transform to move only the camera, while allowing the camera to affect
the rest of the scene.
SoCameraKit is derived from SoBaseKit and thus also includes a callbackList part for adding callback
nodes.
File Format/Defaults
CameraKit{callbackListNULLtransformNULLcameraPerspectiveCamera{}}Inherits From
SoBase > SoFieldContainer > SoNode > SoBaseKit > SoCameraKit
Methods
SoCameraKit()
Constructor.
staticconstSoNodekitCatalog*getClassNodekitCatalog()const
Returns an SoNodekitCatalog for the class SoCameraKit.
staticSoTypegetClassTypeId()
Returns type identifier for this class.
Name
SoCameraKit — camera nodekit class
Parts
(SoTransform)transform
A transform that positions and orients the camera relative to the rest of the scene. Private parts
keep the effect of the transform part localized. This part is NULL by default, but may be set to any
subclass of SoTransform(SoCamera)camera
The camera node for this nodekit. The camera part is created by default as an SoPerspectiveCamera
node, but may later be changed to any subclass of SoCamera. (e.g., SoPerspectiveCamera,
SoOrthographicCamera).
See Also
SoAppearanceKit,SoBaseKit,SoLightKit,SoNodeKit,SoNodeKitDetail,SoNodeKitListPart,SoNodeKitPath,SoNodekitCatalog,SoSceneKit,SoSeparatorKit,SoShapeKit,SoWrapperKitSoCameraKit(3IV)()
Synopsis
#include<Inventor/nodekits/SoCameraKit.h>
Parts from class SoCameraKit:
(SoTransform)transform(SoCamera)camera
Parts from class SoBaseKit:
(SoNodeKitListPart)callbackList
Methods from class SoCameraKit:
SoCameraKit()staticconstSoNodekitCatalog*getClassNodekitCatalog()conststaticSoTypegetClassTypeId()
Methods from class SoBaseKit:
virtualconstSoNodekitCatalog*getNodekitCatalog()constvirtualSoNode*getPart(constSbName&partName,SbBoolmakeIfNeeded)SbStringgetPartString(constSoBase*part)virtualSoNodeKitPath*createPathToPart(constSbName&partName,SbBoolmakeIfNeeded,constSoPath*pathToExtend=NULL)virtualSbBoolsetPart(constSbName&partName,SoNode*newPart)SbBoolset(char*partName,char*parameters)SbBoolset(char*nameValuePairs)staticSbBoolisSearchingChildren()staticvoidsetSearchingChildren(SbBoolnewVal)
Methods from class SoNode:
voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)
Methods from class SoFieldContainer:
voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)
Methods from class SoBase:
voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const
Macros from class SoBaseKit:
SO_GET_PART(kit,partName,partClass)SO_CHECK_PART(kit,partName,partClass)