SoVectorOutput(3)

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

πŸ’– SoVectorOutput(3) πŸ’–

okay bestie, pull up a chair because we're diving into SoVectorOutput from the Coin library's Library Functions Manual section. she's the class you call when you need to set a vector output file, and honestly? she's lowkey the backbone of your whole HardCopy era. let's get into it πŸŽ€


✨ NAME ✨

SoVectorOutput β€” the class that's literally all about setting the vector output file. that's her whole thing. her moment. her main character energy πŸ‘‘


🌸 SYNOPSIS 🌸

#include <HardCopy/SoVectorOutput.h>

okay so first thing: inherited by SoPSVectorOutput. so if you see that name floating around, just know she got it from her mama πŸ’…

πŸ¦‹ Public Member Functions

  • SoVectorOutput (void) β€” constructor bestie
  • virtual ~SoVectorOutput () β€” destructor, virtual
  • virtual SbBool openFile (const char *filename) β€” open that file
  • virtual void closeFile (void) β€” close that file
  • FILE * getFilePointer (void) β€” get the file pointer

πŸ’œ Detailed Description πŸ’œ

SoVectorOutput is the class used for setting vector output file. periodt. that's the assignment and she ate it πŸ“

so here's the tea: SoVectorizeAction will create an SoVectorOutput which will output to stdout by default. yep, by default she's just yelling into the void of your terminal 🌈

SoVectorizeAction::getOutput() can be used to fetch this output, and you, the user, will probably want to set a file to output to. like, no shade to stdout, but if you want your vectors in an actual file you gotta do a little something extra, iykyk 😭

🧚 Since

Coin 2.1 ✨

also fun fact: TGS provides HardCopy support as a separate extension for TGS Inventor. just so you know where all this comes from 🫢

πŸ‘‘ Constructor & Destructor Documentation πŸ‘‘

🌟 SoVectorOutput::SoVectorOutput (void )

Constructor πŸ’– Will make this instance output to stdout. yes bestie, out of the box she's talking to your terminal. iconic but also maybe not what you want, so keep openFile() in your back pocket.

🌟 SoVectorOutput::~SoVectorOutput () [virtual]

Destructor πŸ’€ Will close the file opened in openFile(). so she cleans up after herself. we love a girl who does her own dishes ✨


πŸŽ€ Member Function Documentation πŸŽ€

πŸ’… SbBool SoVectorOutput::openFile (const char * filename) [virtual]

Opens filename for output. Returns FALSE if the file could not be opened for writing. and heads up bestie β€” if the file already exists, it will be truncated. like, gone. wiped. so double check before you point her at something precious 😭

πŸ’… void SoVectorOutput::closeFile (void ) [virtual]

Closes the file opened in openFile(). that's it, that's the whole function. she's simple and she knows it πŸ¦‹

πŸ’… FILE * SoVectorOutput::getFilePointer (void )

Returns the stdio file handle pointer. hand it over, bestie, let me hold the pointer πŸ”₯


⭐ Author ⭐

Generated automatically by Doxygen for Coin from the source code. so like, not a human author, a robot wrote this. and now a robot wrote this version of it too, we're all just vibing in the machine πŸ€–πŸ’–


and that's the whole page, bestie!! this was Coin, Version 3.1.3, and the page is SoVectorOutput(3) β€” go forth and vectorize responsibly, ily, mwah πŸ’‹πŸ«ΆπŸŒΈ

πŸ“¦ where this page comes from