Class SoCameraKit
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodekits.SoBaseKit
-
- com.openinventor.inventor.nodekits.SoCameraKit
-
- All Implemented Interfaces:
SafeDisposable
public class SoCameraKit extends SoBaseKit
Camera nodekit class. 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 ofSoCamera
.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 typeSoTransformSeparator
. 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 fromSoBaseKit
and thus also includes a callbackList part for adding callback nodes.NOTES:
- By default the viewer will not find the camera inside the
SoCameraKit
. To allow the viewer to find this camera the application must explicitly allow searching inside nodekits by calling theSoBaseKit
static method setSearchingChildren. If the viewer does not find a camera in the scene graph it will create one automatically and attach to the created one. - If the viewer does find the camera inside the
SoCameraKit
, the viewer will not call its viewAll() method automatically. The application must make this call.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 ofSoTransform
(
SoCamera
) camera
The camera node for this nodekit. The camera part is created by default as anSoPerspectiveCamera
node, but may later be changed to any subclass ofSoCamera
. (e.g.,SoPerspectiveCamera
,SoOrthographicCamera
).
File format/default:
CameraKit {
callbackList NULL transform NULL camera PerspectiveCamera { } CATALOG PARTS All Parts
Part Name Part Type Default Type NULL Default callbackList NodeKitListPart yes transform Transform yes camera Camera PerspectiveCamera no Extra Information for List Parts from Above Table
Part Name Container Type Possible Types callbackList Separator Callback, EventCallback
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoCameraKit()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SoNodekitCatalog
getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.-
Methods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Method Detail
-
getClassNodekitCatalog
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-