SOLIGHTKIT(3iv)
β¨ SoLightKit β¨
okay bestie, gather round, because we're talking about SoLightKit β the light nodekit class π‘ from the manual page SoLightKit(3IV). yes it's giving very "3IV" of it. she's iconic, she's a nodekit, and she's about to make your scene glow fr fr π¦
πΈ NAME πΈ
SoLightKit β light nodekit class β¨
𧬠INHERITS FROM π§¬
SoBase > SoFieldContainer > SoNode > SoBaseKit > SoLightKit
like. the whole ancestry line. she comes from a long line of distinguished nodes and we respect it π
π SYNOPSIS π
#include <Inventor/nodekits/SoLightKit.h>
Parts from class SoLightKit:
(SoTransform) transform
(SoLight) light
(SoNode) icon
Parts from class SoBaseKit:
(SoNodeKitListPart) callbackList
Methods from class SoLightKit:
SoLightKit()
static const SoNodekitCatalog *
getClassNodekitCatalog() const
static SoType getClassTypeId()
Methods from class SoBaseKit:
virtual const SoNodekitCatalog *
getNodekitCatalog() const
virtual SoNode * getPart(const SbName &partName, SbBool
makeIfNeeded)
SbString getPartString(const SoBase *part)
virtual SoNodeKitPath * createPathToPart(const SbName &partName, SbBool
makeIfNeeded, const SoPath *pathToExtend =
NULL)
virtual SbBool setPart(const SbName &partName, SoNode *newPart)
SbBool set(char *partName, char *parameters)
SbBool set(char *nameValuePairs)
static SbBool isSearchingChildren()
static void setSearchingChildren(SbBool newVal)
Methods from class SoNode:
void setOverride(SbBool state)
SbBool isOverride() const
SoNode * copy(SbBool copyConnections = FALSE) const
virtual SbBool affectsState() const
static SoNode * getByName(const SbName &name)
static int getByName(const SbName &name, SoNodeList &list)
Methods from class SoFieldContainer:
void setToDefaults()
SbBool hasDefaultValues() const
SbBool fieldsAreEqual(const SoFieldContainer *fc) const
void copyFieldValues(const SoFieldContainer *fc, SbBool
copyConnections = FALSE)
void get(SbString &fieldDataString)
virtual int getFields(SoFieldList &resultList) const
virtual SoField * getField(const SbName &fieldName) const
SbBool getFieldName(const SoField *field, SbName &fieldName)
const
SbBool isNotifyEnabled() const
SbBool enableNotify(SbBool flag)
Methods from class SoBase:
void ref()
void unref() const
void unrefNoDelete() const
void touch()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
virtual void setName(const SbName &name)
virtual SbName getName() const
Macros from class SoBaseKit:
SO_GET_PART(kit, partName, partClass)
SO_CHECK_PART(kit, partName, partClass)
π DESCRIPTION π
so what even is this class, you ask? π This nodekit class is used to create light nodes that have a local transformation and a geometry icon to represent the light source. periodt. SoLightKit adds three public parts to the basic nodekit: transform, light, and icon. the trio. the girlies. β¨
SoLightKit creates an SoDirectionalLight as the light part by default β and literally every other part is NULL at creation. no cap π
You can move the light relative to the rest of the scene by creating and editing the transform part. like, she can move, she has range π
You can add a geometrical representation for the light by setting the icon part to be any scene graph you like. go feral, bestie π¦
SoLightKit also adds two private parts. sneak peek, iykyk π 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. she's multitasking, she's main character energy π
SoLightKit is derived from SoBaseKit and thus also includes a callbackList part for adding callback nodes. the legacy. the lineage. π«Ά
π PARTS π
(SoTransform)transformβ This part positions and orients thelightandiconrelative to the rest of the scene. Its effect is kept local to this nodekit by a private part of typeSoTransformSeparator. Thetransformpart isNULLby default. If you ask fortransformusinggetPart(), anSoTransformwill be returned. But you may set the part to be any subclass ofSoTransform. For example, set thetransformto be anSoDragPointManipand thelightto be anSoPointLight. Then you can move the light by dragging the manipulator with the mouse. dragging?? with the mouse?? slay π₯(SoLight)lightβ The light node for this nodekit. This can be set to any node derived fromSoLight. AnSoDirectionalLightis created by default, and it is also the type of light returned when the you request that the nodekit build a light for you. yes, "when the you request" β that's the original wording and we're keeping it, it's camp π(SoNode)iconβ This part is a user-supplied scene graph that represents the light source. It isNULLby default β anSoCubeis created by the lightkit when a method requires it to build the part itself. a little cube appears when needed. tiny. iconic. π
π§ METHODS π§
SoLightKit()β Constructor. that's it, that's the girl. β¨static const SoNodekitCatalog * getClassNodekitCatalog() constβ Returns anSoNodekitCatalogfor the classSoLightKit.static SoType getClassTypeId()β Returns type identifier for this class.
π CATALOG PARTS π
All parts π
each one with its part name, part type, default type, and whether it's NULL by default:
callbackListβ Part Type:NodeKitListPart; Default Type:--; NULL by Default: yestransformβ Part Type:Transform; Default Type:--; NULL by Default: yeslightβ Part Type:Light; Default Type:DirectionalLight; NULL by Default: noiconβ Part Type:Node; Default Type:Cube; NULL by Default: yes
Extra information for list parts from above table π¦
callbackListβ Container Type:Separator; Permissible Types:Callback,EventCallback
π FILE FORMAT/DEFAULTS π
LightKit {
callbackList NULL
transform NULL
light DirectionalLight {
}
icon NULL
}
no notes, she's perfect π
π SEE ALSO π
SoAppearanceKit, SoBaseKit, SoCameraKit, SoNodeKit, SoNodeKitDetail, SoNodeKitListPart, SoNodeKitPath, SoNodekitCatalog, SoSceneKit, SoSeparatorKit, SoShapeKit, SoWrapperKit
go read them too, bestie, they're all in the same friend group π«Ά
and that's the whole page!! every part, every method, every default, untouched and accounted for. no facts were harmed in the making of this vibe check πΈ
this has been SoLightKit, documented under the manual page SoLightKit(3IV) with its source/version tag SoLightKit(3IV)() β mwah, drink your water, and go light up a scene πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms