SOWRITEACTION(3iv)

πŸ’– SoWriteAction πŸ’–

okay so bestie, welcome to the manual page for SoWriteAction β€” that's the 3IV one, from the Inventor crew. It's the little action whose whole personality is: take a scene graph, write it out to a file. Periodt. ✨


🌸 NAME 🌸

SoWriteAction</puruple> β€” writes a scene graph to a file πŸŽ€

(no cap, that's literally the entire job description)


πŸ¦‹ INHERITS FROM πŸ¦‹

SoAction > SoWriteAction

so it's giving SoAction but make it write-y. The way it inherits everything from SoAction and then just adds the writing part? iconic. πŸ‘‘


✨ SYNOPSIS ✨

#include <Inventor/actions/SoWriteAction.h>

Methods from class SoWriteAction:

              SoWriteAction()
              SoWriteAction(SoOutput *out)
SoOutput *    getOutput() const

Methods from class SoAction:

virtual void   apply(SoNode *node)
virtual void   apply(SoPath *path)
virtual void   apply(const SoPathList &pathList, SbBool obeysRules =
                   FALSE)
static SoType  getClassTypeId()
virtual SoType getTypeId()
virtual SbBool isOfType(SoType type)
virtual void   invalidateState()

πŸ’… DESCRIPTION πŸ’…

So this class is used for writing scene graphs to files. That's the vibe. It's got an SoOutput instance chillin' inside it, and by default that thing writes to the standard output β€” yeah, straight to your terminal, no filter, main character energy fr fr. πŸ’€

But here's the slay part: you can call methods on that SoOutput to tell it exactly what file or memory buffer you want it to write to instead. Your call, your rules. 🫢


πŸŽ€ METHODS πŸŽ€

  • SoWriteAction() β€” the constructor, no args, no drama. Just makes you a fresh one. 🌸
  • SoWriteAction(SoOutput *out) β€” the constructor that takes an SoOutput to use for output. So like, you hand it the output guy and it's like "bet, I'll write there". πŸ’–
  • SoOutput * getOutput() const β€” returns a pointer to the SoOutput instance that's living inside the action. iykyk. πŸ¦‹

🌈 SEE ALSO 🌈

  • SoOutput πŸ’œ

and that's the whole page bestie!! this was SoWriteAction(3IV) from the 3IV manual set β€” section 3IV, no extra dates or version drama attached, just the classic page tag. go forth and write those scene graphs, you absolute legend πŸŽ€βœ¨πŸ‘‘πŸ«Ά