public class SoLightKit extends SoBaseKit
SoLightKitadds three public parts to the basic nodekit: transform , light , and icon .
You can move the light relative to the rest of the scene by creating and editing the transform part.
You can add a geometrical representation for the light by setting the icon part to be any scene graph you like.
SoLightKit also adds two private parts. An
SoTransformSeparator contains the effect of transform to move only the light and icon , while allowing the light to illuminate the rest of the scene. The second private part is an
SoSeparator, which keeps property nodes within the icon geometry from affecting the rest of the scene. It also serves to cache the icon even when the light or transform is changing.
This part positions and orients the light and icon relative to the rest of the scene. Its effect is kept local to this nodekit by a private part of type
SoTransformSeparator. The transform part is NULL by default. If you ask for transform using
SoTransform will be returned. But you may set the part to be any subclass of
SoTransform. For example, set the transform to be an SoDragPointManip and the light to be an
SoPointLight. Then you can move the light by dragging the manipulator with the mouse.
The light node for this nodekit. This can be set to any node derived from
SoDirectionalLight is created by default, and it is also the type of light returned when the you request that the nodekit build a light for you.
This part is a user-supplied scene graph that represents the light source. It is NULL by default - an
SoCube is created by the lightkit when a method requires it to build the part itself.
|Part Name||Part Type||Default Type||NULL Default|
Extra Information for List Parts from Above Table
|Part Name||Container Type||Possible Types|
|Constructor and Description|
|Modifier and Type||Method and Description|
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
Generated on September 3, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com