SoViewingMatrixElement(3)

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

πŸ’… SoViewingMatrixElement β€” okay bestie, let's get into it

so this is a page from the Library Functions Manual, section 3 (SoViewingMatrixElement(3)), and it's all about a little class from Coin that holds onto your world-to-camera transformation. yes, that one. the glow-up from world space to camera space. iconic behavior honestly.


✨ NAME ✨

SoViewingMatrixElement β€” the class that stores the world-to-camera transformation. that's it, that's the whole job, and it does it flawlessly πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Inventor/elements/SoViewingMatrixElement.h>
  • Inherits SoReplacedElement.
  • Inherited by SoGLViewingMatrixElement.

πŸ‘‘ Public Member Functions

  • virtual void init (SoState *state) β€” FIXME: write doc. (the docs really said "figure it out" 😭)

πŸŽ€ Public Member Functions inherited from SoReplacedElement

  • virtual SbBool matches (const SoElement *element) const
  • virtual SoElement * copyMatchInfo () const
  • uint32_t getNodeId () const
  • virtual void print (FILE *file) const

🌸 Public Member Functions inherited from SoElement

  • const SoType getTypeId (void) const
  • int getStackIndex (void) const
  • virtual void push (SoState *state)
  • virtual void pop (SoState *state, const SoElement *prevTopElement)
  • void setDepth (const int depth)
  • int getDepth (void) const
  • virtual ~SoElement ()

⭐ Static Public Member Functions

  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void * createInstance (void)
  • static void initClass (void)
  • static void set (SoState *const state, SoNode *const node, const SbMatrix &ViewingMatrix) β€” FIXME: write doc. (again, no notes, bestie πŸ™ˆ)
  • static const SbMatrix & get (SoState *const state) β€” FIXME: write doc.

🌈 Static Public Member Functions inherited from SoReplacedElement

  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void initClass (void)

πŸ’œ Static Public Member Functions inherited from SoElement

  • static void initClass (void)
  • static SoType getClassTypeId (void)
  • static int getClassStackIndex (void)
  • static void initElements (void)
  • static int getNumStackIndices (void)
  • static SoType getIdFromStackIndex (const int stackIndex)

πŸ”₯ Protected Member Functions

  • virtual ~SoViewingMatrixElement ()
  • virtual void setElt (const SbMatrix &matrix) β€” FIXME: write doc.

🫢 Protected Member Functions inherited from SoReplacedElement

  • virtual ~SoReplacedElement ()

🧚 Protected Member Functions inherited from SoElement

  • SoElement (void)
  • void capture (SoState *const state) const
  • virtual void captureThis (SoState *state) const
  • void setTypeId (const SoType typeId)
  • void setStackIndex (const int index)
  • SoElement * getNextInStack (void) const
  • SoElement * getNextFree (void) const

πŸ’€ Protected Attributes

  • SbMatrix viewingMatrix

πŸ“ Protected Attributes inherited from SoReplacedElement

  • uint32_t nodeId

πŸ’– Protected Attributes inherited from SoElement

  • SoType typeId
  • int stackIndex
  • int depth

πŸŽ€ Additional Inherited Members

✨ Static Protected Member Functions inherited from SoReplacedElement

  • static SoElement * getElement (SoState *const state, const int stackIndex, SoNode *const node)

🌸 Static Protected Member Functions inherited from SoElement

  • static SoElement * getElement (SoState *const state, const int stackIndex)
  • static const SoElement * getConstElement (SoState *const state, const int stackIndex)
  • static int createStackIndex (const SoType id)

⭐ Static Protected Attributes inherited from SoElement

  • static int classStackIndex
  • static SoTypeList * stackToType

πŸ¦‹ Detailed Description πŸ¦‹

okay so the whole plot: SoViewingMatrixElement is the class that stores the world-to-camera transformation. that's the vibe. it's giving "i hold the matrix that gets you from here to the camera's POV" and honestly? slay.

See also

  • SoModelMatrixElement

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

🌸 SoViewingMatrixElement::~SoViewingMatrixElement (void ) [protected], [virtual]

the destructor. it cleans up. no cap. πŸ’…


πŸ”₯ Member Function Documentation πŸ”₯

πŸ’œ void * SoViewingMatrixElement::createInstance (void ) [static]

heads up bestie β€” this API member is considered internal to the library, because it's not likely to be of interest to the application programmer. so like, unless you're doing deep library surgery, this one isn't your main character. πŸ™ˆ

⭐ void SoViewingMatrixElement::initClass (void ) [static]

this static method initializes static data for the SoViewingMatrixElement class. it's the little setup ritual that makes everything else work. periodt.

πŸ’– void SoViewingMatrixElement::init (SoState * state) [virtual]

FIXME: write doc. (the docs left us on read, bestie 😭)

  • Reimplemented from SoReplacedElement.
  • Reimplemented in SoGLViewingMatrixElement.

🧚 void SoViewingMatrixElement::setElt (const SbMatrix & matrix) [protected], [virtual]

FIXME: write doc.

  • Reimplemented in SoGLViewingMatrixElement.

πŸ’€ Member Data Documentation πŸ’€

πŸ“ SbMatrix SoViewingMatrixElement::viewingMatrix [protected]

FIXME: write doc.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Coin from the source code. (yes, the robots wrote it. we're just here for the vibes and the accurate flags.)


okay that's the whole page, bestie πŸ’– this doc came to you courtesy of Coin, Version 3.1.3, dated SoViewingMatrixElement(3) β€” and that's the sign-off. go forth and transform your world-to-camera coordinates like the icon you are. πŸ¦‹βœ¨

πŸ“¦ where this page comes from