SoGLPointSizeElement(3)
π SoGLPointSizeElement β NAME
okay so bestie, this is the manual for SoGLPointSizeElement, and it lives in the Library Functions Manual (that's the section 3 energy, iykyk). What does it do? It changes the pointsize setting of the OpenGL render state. that's the whole job. iconic, focused, no notes. π
β¨ SYNOPSIS β¨
#include <InheritsSoPointSizeElement.elements/SoGLPointSizeElement.h>
wait no, bestie, don't copy that, that's me being chaotic. the real one is:
#include <Inventor/elements/SoGLPointSizeElement.h>
Inherits SoPointSizeElement. yes queen, it's a whole family tree. π³
πΈ 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 it in the NAME section, we're saying it again, it's called emphasis. π
So the scenegraph will slide in and request a pointsize change when it's rendering point primitives β and it does that through this element, which then forwards it straight to the appropriate native OpenGL call. middleman but make it useful. π§
Now listen bestie, this part matters: the Coin library does not place any bounds on the values of the pointsize. like, zero. none. it will simply let you do whatever. but be aware that the range and granularity of what is valid pointsizes depends on the underlying OpenGL implementation. so your mileage varies by driver, fr fr. application programmers using point primitives (typically through the SoPointSet node) should heed these boundary values. π
You can acquire them by running the following code from within a valid OpenGL context:
GLfloat bounds[2];
glGetFloatv(GL_POINT_SIZE_RANGE, bounds);
GLfloat granularity[1];
glGetFloatv(GL_POINT_SIZE_GRANULARITY, granularity);
Another, perhaps more convenient, way of acquiring the OpenGL implementation limits with regard to pointsizes is to use the So*GLWidget::getPointSizeLimits() method in the GUI "glue" interface library you are using (SoQt, SoXt, SoGtk, SoWin, ...). pick your fave, they all ate. π
π Constructor & Destructor Documentation π
SoGLPointSizeElement::~SoGLPointSizeElement (void ) [protected], [virtual]
The destructor. that's it. that's the sentence. she's brief, she's protected, she's virtual. π
π§ 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. not for you bestie, sorry, it's giving backstage pass only. π
void SoGLPointSizeElement::init (SoState * state) [virtual]
This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects. β¨
Reimplemented from SoPointSizeElement.
References SoPointSizeElement::init().
void SoGLPointSizeElement::push (SoState * state) [virtual]
This method is called every time a new element is required in one of the stacks. This happens when a writable element is requested, using SoState::getElement() or indirectly 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. The push() method is called on the new element, and the previous element can be found using SoElement::getNextInStack(). slay, inheritance. π
Reimplemented from SoElement.
ReferencesSoElement::capture(),SoFloatElement::data, andSoElement::getNextInStack().
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. pop() is called on the new top of stack, and a pointer to the previous top of stack is passed in prevTopElement. π
(and yes, "callled" is spelled like that in the original, no cap, we don't fix typos around here, we preserve them like little fossils π)
Override this method if you need to copy some state information from the previous top of stack.
Reimplemented from SoElement.
ReferencesSoFloatElement::data, andSoElement::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: not your business bestie, respectfully. π
Reimplemented from SoFloatElement.
References SoFloatElement::data.
π Author π
Generated automatically by Doxygen for Coin from the source code. the robots wrote this one, and honestly? they understood the assignment. π€β¨
okay that's the whole page, you're fully caught up, go forth and set your pointsizes responsibly (or don't, Coin won't stop you, remember β no bounds π). mwah π
this little love letter came to you from Coin, Version 2.5.0, dated right there in the footer as SoGLPointSizeElement(3) β take care of her, she's a classic. π
π¦ where this page comes from
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 43: Coin2-devel 2.5.0-52.fc43 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.fc44 Β· GPL-2.0-only
- fedora 44: Coin2-devel 2.5.0-54.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