SoViewingMatrixElement(3)
π 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) constvirtual SoElement * copyMatchInfo () constuint32_t 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. (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) 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
uint32_t 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 π¦
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
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms