SoGLPointSizeElement(3)
π SoGLPointSizeElement π
okay bestie, welcome to section 3 of the Library Functions Manual β yes we're in manpage territory and yes it's lowkey iconic. buckle up. π
πΈ NAME πΈ
SoGLPointSizeElement β the class that changes the pointsize setting of the OpenGL render state. that's it, that's the whole job, and it does it flawlessly. π
β¨ SYNOPSIS β¨
#include <Inventor/elements/SoGLPointSizeElement.h>
Inherits SoPointSizeElement. so it's giving family lineage, it's giving legacy. π
π«Ά Public Member Functions
virtual void init (SoState *state)virtual void push (SoState *state)virtual void pop (SoState *state, const SoElement *prevTopElement)
π¦ Public Member Functions inherited from SoFloatElement
virtual SbBool matches (const SoElement *element) constvirtual SoElement * copyMatchInfo (void) constvirtual void print (FILE *file) const
π¦ Public Member Functions inherited from SoElement
const SoType getTypeId (void) constint getStackIndex (void) constvoid 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 Public Member Functions inherited from SoPointSizeElement
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 float pointSize)static void set (SoState *const state, const float pointSize)static float get (SoState *const state)static float getDefault ()
π Static Public Member Functions inherited from SoFloatElement
static SoType getClassTypeId (void)static int getClassStackIndex (void)static void initClass (void)static void set (const int stackIndex, SoState *const state, SoNode *const node, const float value)static void set (const int stackIndex, SoState *const state, const float value)static float get (const int stackIndex, SoState *const state)
π 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 ~SoGLPointSizeElement ()virtual void setElt (float size)
π Protected Member Functions inherited from SoPointSizeElement
virtual ~SoPointSizeElement ()
π Protected Member Functions inherited from SoFloatElement
virtual ~SoFloatElement ()
π 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
π Additional Inherited Members
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)
Protected Attributes inherited from SoFloatElement:
float data
Protected Attributes inherited from SoElement:
SoType typeIdint stackIndexint depth
Static Protected Attributes inherited from SoElement:
static int classStackIndexstatic SoTypeList * stackToType
π Detailed Description π
The SoGLPointSizeElement class changes the pointsize setting of the OpenGL render state. (yes we said that in NAME, no we will not be apologizing, it's a manpage thing fr fr.)
When the scenegraph wants to change the pointsize while rendering point primitives, that request comes through this element, and the element forwards it straight to the appropriate native OpenGL call. middle management, but make it glamorous. β¨
Coin itself does not put any bounds on pointsize values β but heads up bestie, the range and granularity of what counts as a valid pointsize is entirely up to the underlying OpenGL implementation. so if you're an application programmer using point primitives (typically via the SoPointSet node), you need to respect those boundary values. π¨
You can grab them by running this code from inside a valid OpenGL context:
GLfloat bounds[2];
glGetFloatv(GL_POINT_SIZE_RANGE, bounds);
GLfloat granularity[1];
glGetFloatv(GL_POINT_SIZE_GRANULARITY, granularity);
Another way β maybe even more convenient ngl β to get the OpenGL implementation limits for pointsizes is to call the So*GLWidget::getPointSizeLimits() method in whichever GUI "glue" interface library you're using (SoQt, SoXt, SoGtk, SoWin, ...). pick your fighter. π
π Constructor & Destructor Documentation π
SoGLPointSizeElement::~SoGLPointSizeElement (void ) [protected], [virtual]
The destructor. it destroys. respectfully. π
π Member Function Documentation π
void * SoGLPointSizeElement::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. (translation: not for you, bestie, it's giving internal affairs π΅οΈ)
void SoGLPointSizeElement::init (SoState * state) [virtual]
This function initializes the element type in the given SoState. It gets called for the first element of each enabled element type inside SoState objects.
Reimplemented from SoPointSizeElement.
void SoGLPointSizeElement::push (SoState * state) [virtual]
This method is called every single time a new element is required in one of the stacks. That happens when a writable element is requested β either via SoState::getElement() or indirectly through SoElement::getElement() β and the depth of the current element is less than the state depth.
Override this method if your element needs to copy data from the previous top of stack. push() gets called on the new element, and you can find the previous element using SoElement::getNextInStack().
Reimplemented from SoElement.
void SoGLPointSizeElement::pop (SoState * state, const SoElement * prevTopElement) [virtual]
This method is callled when the state is popped, and the depth of the element is bigger than the current state depth. (yes, "callled" β that's the original typo, we keep the lore π«Ά) pop() gets called on the new top of stack, and a pointer to the previous top of stack is handed to you in prevTopElement.
Override this method if you need to copy some state information from the previous top of stack.
Reimplemented from SoElement.
void SoGLPointSizeElement::setElt (float val) [protected], [virtual]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer. again: internal. not your problem. π
Reimplemented from SoFloatElement.
π¦ Author π¦
Generated automatically by Doxygen for Coin from the source code. so no, a human did not handcraft this, it's Doxygen doing its little thing and honestly? ate. π₯
and that's a wrap on this page, bestie!! this was Coin, Version 3.1.3 β shoutout to the source/version footer that lives at the bottom of every manpage and never gets appreciated. πΈβ¨ stay pointy, stay slay π
π¦ 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