SoVectorOutput(3)

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

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

Library Functions Manual · the one and only SoVectorOutput ✨


🌸 NAME 🌸

SoVectorOutput β€” bestie, this class is literally the class used for setting the vector output file. That's the whole job. Slay. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <HardCopy/SoVectorOutput.h>

Inherited by SoPSVectorOutput. (yes, it has a whole lineage, main character energy fr fr πŸ‘‘)

✨ Public Member Functions ✨

SoVectorOutput (void)
virtual ~SoVectorOutput ()
virtual SbBool openFile (const char *filename)
virtual void closeFile (void)
FILE * getFilePointer (void)

🫢 Friends 🫢

class SoVectorOutputP

πŸŽ€ Detailed Description πŸŽ€

okay so. The SoVectorOutput class is used for setting vector output file. That's it, that's the vibe check. 🌈

Here's the tea tho: SoVectorizeAction will create an SoVectorizeAction... no wait, it creates an SoVectorOutput 🫠 β€” and that thing outputs to stdout by default. If you wanna grab that output, SoVectorizeAction::getOutput() is your girl. And ngl, you're probably gonna want to set an actual file to output to, because stdout is giving "raw and unfiltered" and sometimes you want a whole file instead. πŸ’€

Since

  • Coin 2.1 ✨

Also important: TGS provides HardCopy support as a separate extension for TGS Inventor. Noted, respected, acknowledged. 🫑


πŸ’œ Constructor & Destructor Documentation πŸ’œ

SoVectorOutput::SoVectorOutput (void )

Constructor, bestie!! πŸŽ‰ Will make this instance output to stdout. That's its default setting, its little comfort zone, its home base.

SoVectorOutput::~SoVectorOutput () [virtual]

Destructor. 😭 It will close the file opened in openFile(). Cleanup queen behavior.

References closeFile(). 🧚

⭐ 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 β€” so like, check that return value, don't just assume, iykyk. πŸ‘€

Warning bestie: if the file already exists, it will be truncated. That means everything in it is GONE. Gone gone. Poof. 🚨 So don't go pointing this at your diary, okay?
References closeFile(). πŸ’–

void SoVectorOutput::closeFile (void ) [virtual]

Closes the file opened in openFile(). Simple, elegant, iconic. πŸŽ€

Referenced by openFile(), and ~SoVectorOutput(). πŸ¦‹

FILE * SoVectorOutput::getFilePointer (void )

Returns the stdio file handle pointer. πŸ”₯ That's the raw FILE *, the actual handle, the source of truth.

Referenced by SoVectorizePSAction::printBackground(), SoVectorizePSAction::printFooter(), SoVectorizePSAction::printHeader(), and SoVectorizePSAction::printViewport(). πŸ‘‘

🌟 Author 🌟

Generated automatically by Doxygen for Coin from the source code. (the robots wrote this one, not me, but I gave it the glow-up πŸ’…)


Coin Β· Version 2.5.0 Β· SoVectorOutput(3)

and that's the whole page, bestie β€” stay hydrated, close your file pointers, and don't let anything get truncated. mwah πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from