SoInteraction(3)

πŸ“¦ version 2.5.0, in fedora 43, fedora 44

πŸ’– SoInteraction(3) πŸ’–

Library Functions Manual ✨ okay bestie, gather round, we're doing a SoInteraction(3) moment and it's literally gonna take like two minutes.


πŸŽ€ NAME πŸŽ€

SoInteraction β€” the SoInteraction class takes care of initalizing internal classes. 🫢


✨ SYNOPSIS ✨

#include <Inventor/SoInteraction.h>

πŸ’… Static Public Member Functions

static void init (void)

🌸 Detailed Description 🌸

The SoInteraction class takes care of initalizing internal classes. No cap.

So like, SoInteraction is literally just here to be the ✨interface✨ to the initialization methods of all the classes in Coin that are somehow related to user interaction β€” we're talking draggers and manipulators, the whole crew. πŸ¦‹

ngl it is unlikely that you, the application programmer, should ever need to worry about this class at all, because SoInteraction::init() gets called for you by the GUI-specific initialization methods. So just… vibe. 😌

πŸ‘‘ Member Function Documentation πŸ‘‘

🌈 void SoInteraction::init (void ) [static]

This one calls the initClass() method of these classes, and yes we're listing all of them, every single one, no skipping, periodt:

  • SoAntiSquish
  • SoSelection
  • SoExtSelection
  • SoSurroundScale
  • SoInteractionKit
  • SoDragger
  • SoClipPlaneManip
  • SoDirectionalLightManip
  • SoPointLightManip
  • SoSpotLightManip
  • SoTransformManip
  • SoCenterballManip
  • SoHandleBoxManip
  • SoJackManip
  • SoTabBoxManip
  • SoTrackballManip
  • SoTransformBoxManip
  • SoTransformerManip

That's eighteen classes bestie, she's thorough. πŸ’…

Note that this method calls SoDB::init() and SoNodeKit::init() to make sure all classes that the interaction functionality depends on have been initialized. Iconic dependency management, honestly.

Application programmers should usually not have to invoke this method directly from application code, because it is indirectly called from the GUI-binding libraries' init()-functions. The only time you have to explicitly call SoInteraction::init() yourself is if you are using your own GUI-binding (and not one of Systems in Motion's SoQt, SoGtk, SoXt, SoWin, Sc21 etc. libraries). Main character energy only. πŸ”₯

int main(int argc, char ** argv )
{
  // SoQt::init() calls SoDB::init(), SoNodeKit::init() and
  // SoInteraction::init().
  QWidget * window = SoQt::init( argv[0] );

  SoSeparator * root = make_scenegraph();
  root->ref();

References SoDB::init(), SoNodeKit::init(), SoBase::initClass(), SoDragger::initClass(), and SoDB::isInitialized(). πŸ’–


πŸ¦‹ Author πŸ¦‹

Generated automatically by Doxygen for Coin from the source code. (not me writing a whole essay by hand, the robots did this one, slay πŸ€–βœ¨)


okay that's the whole page, ily, bye πŸŽ€

πŸ’œ This has been Coin, Version 2.5.0 β€” SoInteraction(3), signing off, muah πŸ’œ

πŸ“¦ where this page comes from