SoViewingMatrixElement(3)
β¨ 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) constvirtual SoElement * copyMatchInfo () constSbUniqueId getNodeId () constvirtual void print (FILE *file) const
π¦ Public Member Functions inherited from SoElement
const SoType getTypeId (void) constint getStackIndex (void) constvirtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)void setDepth (const int depth)int getDepth (void) constvirtual ~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 thatstatic const SbMatrix & get (SoState *const state)β alsoFIXME: 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) constvirtual void captureThis (SoState *state) constvoid setTypeId (const SoType typeId)void setStackIndex (const int index)SoElement * getNextInStack (void) constSoElement * getNextFree (void) const
π Protected Attributes
SbMatrix viewingMatrix
π Protected Attributes inherited from SoReplacedElement
SbUniqueId nodeId
π Protected Attributes inherited from SoElement
SoType typeIdint stackIndexint 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 classStackIndexstatic 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
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 43: Coin4-devel 4.0.10-1.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- fedora 44: Coin4-devel 4.0.10-1.fc44 Β· BSD-3-Clause AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms