SoViewingMatrixElement(3)

πŸ“¦
version 4.0.10 Β· 4 versions
, in fedora 43, fedora 44

✨ SoViewingMatrixElement ✨

okay bestie, welcome to the SoViewingMatrixElement page β€” this is a Coin joint, it's a 3 (library call), and yes we're doing the whole thing together. grab a snack πŸ“

πŸ’– NAME πŸ’–

SoViewingMatrixElement β€” the class that stores the world-to-camera transformation. that's the vibe. that's the whole job. iconic honestly.


🌸 SYNOPSIS 🌸

#include <Inventor/elements/SoViewingMatrixElement.h>

Inherits SoReplacedElement.

Inherited by SoGLViewingMatrixElement.


πŸŽ€ Public Member Functions

  • virtual void init (SoState *state) β€” initializes the element, more on that below 🫢

πŸ’… Public Member Functions inherited from SoReplacedElement

  • virtual SbBool matches (const SoElement *element) const
  • virtual SoElement * copyMatchInfo () const
  • SbUniqueId 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. 😭 not me having to relay that
  • static const SbMatrix & get (SoState *const state) β€” also 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. the saga continues πŸ’€

πŸ’œ 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

  • SbUniqueId 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 🌟

The SoViewingMatrixElement class stores the world-to-camera transformation. that's it, that's the whole flex, and honestly? slay. πŸ’…

See also

  • SoModelMatrixElement

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

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

Destructor. it does the goodbye thing 🫢


πŸ’– Member Function Documentation πŸ’–

SoType SoViewingMatrixElement::getClassTypeId (void ) [static]

This static method returns the SoType object associated with objects of this class. iykyk, it's the class's little ID card πŸŽ€

int SoViewingMatrixElement::getClassStackIndex (void ) [static]

This static method returns the state stack index for the class. literally the address of where it lives on the stack, periodt. ✨

void * SoViewingMatrixElement::createInstance (void ) [static]

This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. so like, not your problem bestie πŸ™ˆ

Creates a new instance of the class type corresponding to the SoType object.

void SoViewingMatrixElement::initClass (void ) [static]

Initialize relevant common data for all instances, like the type system. one big group-chat setup for everybody πŸ’«

void SoViewingMatrixElement::init (SoState * state) [virtual]

Initializes the element to its default value. The default value is the identity matrix. the classic, the default, the main character πŸ‘‘

Reimplemented from SoReplacedElement.

Reimplemented in SoGLViewingMatrixElement.

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

FIXME: write doc. yeah. still that. 😭

Reimplemented in SoGLViewingMatrixElement.


πŸ’… Member Data Documentation πŸ’…

SbMatrix SoViewingMatrixElement::viewingMatrix [protected]

FIXME: write doc. no cap, that's literally all it says 🫠


🌈 Author 🌈

Generated automatically by Doxygen for Coin from the source code. not a human, just a robot doing its lil thing πŸ€–βœ¨


and that's a wrap, bestie πŸ’– Version 4.0.10, dated Thu Jun 25 2026 00:00:00 β€” same energy as always, go forth and view your matrices πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from