SoGeoSeparator(3)
β¨ SoGeoSeparator(3) β¨
okay bestie π welcome to the SoGeoSeparator(3) page from the Library Functions Manual. this is part 1, and there is more coming, so don't you dare think we're done. it's giving georeference-a-scene-graph energy and we are gonna list every single function like it's a group chat roll call. no skips. periodt. π«Ά
πΈ NAME πΈ
SoGeoSeparator β The SoGeoSeparator class is used to georeference a scene graph.
π SYNOPSIS π
#include <Inventor/nodes/SoGeoSeparator.h>
Inherits SoSeparator.
π Public Member Functions π
virtual SoType getTypeId (void) constSoGeoSeparator (void)virtual void callback (SoCallbackAction *action)virtual void GLRenderBelowPath (SoGLRenderAction *action)virtual void GLRenderInPath (SoGLRenderAction *action)virtual void getBoundingBox (SoGetBoundingBoxAction *action)virtual void getMatrix (SoGetMatrixAction *action)virtual void rayPick (SoRayPickAction *action)virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
β¨ Public Member Functions inherited from SoSeparator β¨
SoSeparator (void)SoSeparator (const int nchildren)virtual void doAction (SoAction *action)virtual void GLRender (SoGLRenderAction *action)virtual void GLRenderOffPath (SoGLRenderAction *action)virtual void handleEvent (SoHandleEventAction *action)virtual void search (SoSearchAction *action)virtual void audioRender (SoAudioRenderAction *action)virtual void notify (SoNotList *nl)virtual SbBool affectsState (void) const
π¦ Public Member Functions inherited from SoGroup π¦
SoGroup (void)SoGroup (int nchildren)virtual void addChild (SoNode *node)virtual void insertChild (SoNode *child, int newchildindex)virtual SoNode * getChild (int index) constvirtual int findChild (const SoNode *node) constvirtual int getNumChildren (void) constvirtual void removeChild (int childindex)virtual void removeChild (SoNode *child)virtual void removeAllChildren (void)virtual void replaceChild (int index, SoNode *newchild)virtual void replaceChild (SoNode *oldchild, SoNode *newchild)virtual void pick (SoPickAction *action)virtual void write (SoWriteAction *action)virtual SoChildList * getChildren (void) const
π Public Member Functions inherited from SoNode π
void setOverride (const SbBool state)SbBool isOverride (void) constvoid setNodeType (const NodeType type)NodeType getNodeType (void) constvirtual SoNode * copy (SbBool copyconnections=0) constvirtual void grabEventsSetup (void)virtual void grabEventsCleanup (void)virtual void startNotify (void)uint32_t getNodeId (void) constvirtual void writeInstance (SoOutput *out)virtual SoNode * addToCopyDict (void) constvirtual SoFieldContainer * copyThroughConnection (void) const
π Public Member Functions inherited from SoFieldContainer π
void setToDefaults (void)SbBool hasDefaultValues (void) constSbBool fieldsAreEqual (const SoFieldContainer *container) constvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=0)SbBool set (const char *const fielddata)void get (SbString &fielddata)virtual int getFields (SoFieldList &l) constvirtual int getAllFields (SoFieldList &l) constvirtual SoField * getField (const SbName &name) constvirtual SoField * getEventIn (const SbName &name) constvirtual SoField * getEventOut (const SbName &name) constSbBool getFieldName (const SoField *const field, SbName &name) constSbBool enableNotify (const SbBool flag)SbBool isNotifyEnabled (void) constSbBool set (const char *fielddata, SoInput *in)void get (SbString &fielddata, SoOutput *out)virtual SbBool validateNewFieldValue (SoField *field, void *newval)virtual void addWriteReference (SoOutput *out, SbBool isfromfield=0)SbBool getIsBuiltIn (void) constvoid setUserData (void *userdata) constvoid * getUserData (void) const
πΈ Public Member Functions inherited from SoBase πΈ
void ref (void) constvoid unref (void) constvoid unrefNoDelete (void) constint32_t getRefCount (void) constvoid touch (void)SbBool isOfType (SoType type) constvirtual SbName getName (void) constvirtual void setName (const SbName &newname)void addAuditor (void *const auditor, const SoNotRec::Type type)void removeAuditor (void *const auditor, const SoNotRec::Type type)const SoAuditorList & getAuditors (void) constSbBool shouldWrite (void)void assertAlive (void) const
β Static Public Member Functions β
static SoType getClassTypeId (void)static void initClass (void)
β¨ Static Public Member Functions inherited from SoSeparator β¨
static SoType getClassTypeId (void)static void initClass (void)static void setNumRenderCaches (const int howmany)static int getNumRenderCaches (void)
π Static Public Member Functions inherited from SoGroup π
static SoType getClassTypeId (void)static void initClass (void)
π
Static Public Member Functions inherited from SoNode π
static uint32_t getCompatibilityTypes (const SoType &nodetype)static SoType getClassTypeId (void)static SoNode * getByName (const SbName &name)static int getByName (const SbName &name, SoNodeList &l)static void initClass (void)static void initClasses (void)static uint32_t getNextNodeId (void)static int getActionMethodIndex (const SoType type)static void getBoundingBoxS (SoAction *action, SoNode *node)static void GLRenderS (SoAction *action, SoNode *node)static void callbackS (SoAction *action, SoNode *node)static void getMatrixS (SoAction *action, SoNode *node)static void handleEventS (SoAction *action, SoNode *node)static void pickS (SoAction *action, SoNode *node)static void rayPickS (SoAction *action, SoNode *node)static void searchS (SoAction *action, SoNode *node)static void writeS (SoAction *action, SoNode *node)static void audioRenderS (SoAction *action, SoNode *node)static void getPrimitiveCountS (SoAction *action, SoNode *node)
π¦ Static Public Member Functions inherited from SoFieldContainer π¦
static void initClass (void)static SoType getClassTypeId (void)static void initCopyDict (void)static void addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy)static SoFieldContainer * checkCopy (const SoFieldContainer *orig)static SoFieldContainer * findCopy (const SoFieldContainer *orig, const SbBool copyconnections)static void copyDone (void)
π Static Public Member Functions inherited from SoBase π
static void initClass (void)static SoType getClassTypeId (void)static void addName (SoBase *const base, const char *const name)static void removeName (SoBase *const base, const char *const name)static void incrementCurrentWriteCounter (void)static void decrementCurrentWriteCounter (void)static SoBase * getNamedBase (const SbName &name, SoType type)static int getNamedBases (const SbName &name, SoBaseList &baselist, SoType type)static SbBool read (SoInput *in, SoBase *&base, SoType expectedtype)static void setInstancePrefix (const SbString &c)static void setTraceRefs (SbBool trace)static SbBool getTraceRefs (void)static SbBool connectRoute (SoInput *in, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname)static SbBool readRoute (SoInput *in)
π Public Attributes π
SoSFVec3d geoCoordsSoMFString geoSystem
β¨ Public Attributes inherited from SoSeparator β¨
SoSFEnum renderCachingSoSFEnum boundingBoxCachingSoSFEnum renderCullingSoSFEnum pickCulling
π Protected Member Functions π
virtual const SoFieldData * getFieldData (void) constvirtual ~SoGeoSeparator ()
π
Protected Member Functions inherited from SoSeparator π
virtual ~SoSeparator ()virtual SbBool cullTest (SoState *state)virtual SbBool cullTest (SoGLRenderAction *action, int &cullresults)virtual SbBool readInstance (SoInput *in, unsigned short flags)
π¦ Protected Member Functions inherited from SoGroup π¦
virtual ~SoGroup ()virtual SbBool readChildren (SoInput *in)virtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)
π Protected Member Functions inherited from SoNode π
SoNode (void)virtual ~SoNode ()
π Protected Member Functions inherited from SoFieldContainer π
SoFieldContainer (void)~SoFieldContainer ()
πΈ Protected Member Functions inherited from SoBase πΈ
SoBase (void)virtual ~SoBase ()virtual void destroy (void)SbBool hasMultipleWriteRefs (void) constSbBool writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) constvoid writeFooter (SoOutput *out) constvirtual const char * getFileFormatName (void) const
β Static Protected Member Functions β
static const SoFieldData ** getFieldDataPtr (void)
β¨ Static Protected Member Functions inherited from SoSeparator β¨
static const SoFieldData ** getFieldDataPtr (void)
π Static Protected Member Functions inherited from SoGroup π
static const SoFieldData ** getFieldDataPtr (void)
π
Static Protected Member Functions inherited from SoNode π
static const SoFieldData ** getFieldDataPtr (void)static void setNextActionMethodIndex (int index)static int getNextActionMethodIndex (void)static void incNextActionMethodIndex (void)static void setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask)
π¦ Static Protected Member Functions inherited from SoBase π¦
static uint32_t getCurrentWriteCounter (void)static void staticDataLock (void)static void staticDataUnlock (void)
π Additional Inherited Members π
π Public Types inherited from SoSeparator π
enum CacheEnabled { OFF, ON, AUTO }
β¨ Public Types inherited from SoNode β¨
enum NodeType { INVENTOR = 0x0000, VRML1 = 0x0001, VRML2 = 0x0002,
INVENTOR_1 = 0x0004, INVENTOR_2_0 = 0x0008, INVENTOR_2_1 = 0x0010,
INVENTOR_2_5 = 0x0020, INVENTOR_2_6 = 0x0040, COIN_1_0 = 0x0080,
COIN_2_0 = 0x0100, EXTENSION = 0x0200, COIN_2_2 = 0x0400, COIN_2_3 =
0x0800, COIN_2_4 = 0x1000, INVENTOR_5_0 = 0x2000, COIN_2_5 = 0x4000
}
π Protected Types inherited from SoBase π
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
π
Protected Attributes inherited from SoGroup π
SoChildList * children
π¦ Protected Attributes inherited from SoNode π¦
uint32_t uniqueId
π Protected Attributes inherited from SoFieldContainer π
SbBool isBuiltIn
πΈ Static Protected Attributes inherited from SoNode πΈ
static uint32_t nextUniqueId = 0static int nextActionMethodIndex = 0
β¨ Detailed Description β¨
okay so bestie, here's the tea: the SoGeoSeparator class is what you use to georeference a scene graph. like, you're telling Coin where on planet Earth your lil geometry actually lives. ππ
FILE FORMAT/DEFAULTS:
GeoSeparator {
geoSystem ["GD", "WE"]
geoCoords ""
}
So this node is out here specifying an absolute geographic coordinate system for all its children, no cap. When it's rendering (or doing any of the other actions), Coin is gonna add a transformation that moves the geometry into the SoGeoOrigin coordinate system. And listen β all the objects get rotated so that the local Z axis points up from the ground (right at the specified geo-location), the Y axis points toward the north pole, and the X axis is figured out using the right hand rule. it's giving math girlie behavior and we love it. π₯
See also
SoGeoOrigin
Since
Coin 2.5 β¨
π Constructor & Destructor Documentation π
SoGeoSeparator::SoGeoSeparator (void )
Constructor. that's it, that's the whole vibe. building one of these bad boys. π
References geoCoords, geoSystem, and SoGeoSeparator().
Referenced by getFieldData(), and SoGeoSeparator().
SoGeoSeparator::~SoGeoSeparator () [protected], [virtual]
Destructor. the lil goodbye. π protected + virtual, so she's doing her thing properly for the class hierarchy.
π Member Function Documentation π
SoType SoGeoSeparator::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. basically it's the run-time type checking + "downward" casting plug. π
Usage example:
void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
SoGroup * group = (SoGroup *)node; // safe downward cast, knows the type
}
}
Now for the app devs who wanna extend the library with new nodes, engines, nodekits, draggers, whatever: this method needs to be overridden in all subclasses. bestie this is not optional, it's the law. π«Ά Usually you do this as part of setting up the full type system for your extension classes, and that's normally handled by using the pre-defined macros you get through, like, Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes), and so on.
Wanna know more about writing Coin extensions? go check the class documentation of the toplevel superclasses for the various class groups. iykyk. π
Reimplemented from SoSeparator.
const SoFieldData * SoGeoSeparator::getFieldData (void ) const [protected], [virtual]
Hands you back a pointer to the class-wide field data storage object for this instance. And if there are no fields? it returns NULL. empty-handed, iconic, periodt. π
Reimplemented from SoSeparator.
References SoGeoSeparator().
void SoGeoSeparator::callback (SoCallbackAction * action) [virtual]
Action method for SoCallbackAction.
She just updates the state according to how the node behaves for the render action, so that you, the application programmer, can use the SoCallbackAction to extract info about the scene graph. giving tour guide energy. π§
Reimplemented from SoSeparator.
References SoSeparator::callback(), SoAction::getState(), SoState::pop(), and SoState::push().
void SoGeoSeparator::GLRenderBelowPath (SoGLRenderAction * action) [virtual]
so real talk: SGI Open Inventor v2.1 obsoleted support for SoGLRenderAction::addMethod().
Instead, GLRender() might get called directly, and to optimize traversal, the SoSeparator node calls GLRenderBelowPath whenever the path code is BELOW_PATH or NO_PATH (and the path code is guaranteed not to change in that case). To stay compatible with SGI's Inventor (and thereby also TGS'), they chose to follow their implementation in this respect. respect the elders fr fr. π
Also important: SoSeparator::GLRenderBelowPath() does not traverse its children using SoChildList::traverse(), but calls GLRenderBelowPath() directly for all its children. no middleman.
Reimplemented from SoSeparator.
References SoAction::getState(), SoSeparator::GLRenderBelowPath(), SoState::pop(), and SoState::push().
void SoGeoSeparator::GLRenderInPath (SoGLRenderAction * action) [virtual]
Implements the SoAction::IN_PATH traversal method for the rendering action. she's got a specific route and she's walking it. πΆββοΈβ¨
Reimplemented from SoSeparator.
References SoAction::getState(), SoSeparator::GLRenderInPath(), SoState::pop(), and SoState::push().
void SoGeoSeparator::getBoundingBox (SoGetBoundingBoxAction * action) [virtual]
Action method for the SoGetBoundingBoxAction.
Calculates the bounding box and center coordinates for the node, and modifies the values of the action so it encompasses the bounding box for this node and shifts the scene's center point more toward the one for this node. very "let me just scooch the whole vibe over here" of her. π―
And heads up: nodes that influence how geometry nodes calculate their bounding box also override this method to change the relevant state variables.
Reimplemented from SoSeparator.
References SoSeparator::getBoundingBox(), SoAction::getState(), SoState::pop(), and SoState::push().
void SoGeoSeparator::getMatrix (SoGetMatrixAction * action) [virtual]
Action method for SoGetMatrixAction.
Updates the action by accumulating with the transformation matrix of this node (if any). if there's no matrix, she simply doesn't. π
Reimplemented from SoSeparator.
References SoGetMatrixAction::getInverse(), SoGetMatrixAction::getMatrix(), SoAction::getState(), and SbMatrix::inverse().
void SoGeoSeparator::rayPick (SoRayPickAction * action) [virtual]
Action method for SoRayPickAction.
Checks the ray specification of the action and tests for intersection with the data of the node. pew pew, ray goes in, does it hit the thing? we find out. π₯
And again: nodes that influence relevant state variables for how picking is done also override this method.
Reimplemented from SoSeparator.
References SoAction::getState(), SoState::pop(), SoState::push(), and SoSeparator::rayPick().
void SoGeoSeparator::getPrimitiveCount (SoGetPrimitiveCountAction * action) [virtual]
Action method for the SoGetPrimitiveCountAction.
Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action. tallying it all up like a girl with a spreadsheet. ππ
And yes, same deal: nodes that influence how geometry nodes calculate their primitive count also override this method to change the relevant state variables.
Reimplemented from SoSeparator.
References SoSeparator::getPrimitiveCount(), SoAction::getState(), SoState::pop(), and SoState::push().
πΈ Member Data Documentation πΈ
SoSFVec3d SoGeoSeparator::geoCoords
Used for specifying the geographic coordinates. π
See also
SoGeoOrigin::geoCoords
Referenced by SoGeoSeparator().
SoMFString SoGeoSeparator::geoSystem
Used to specify a spatial reference frame. the whole "where are we and by what rules" situation. πΊοΈ
See also
SoGeoOrigin::geoSystem
Referenced by SoGeoSeparator().
π Author π
Generated automatically by Doxygen for Coin from the source code.
aaand that's a wrap bestie!! πβ¨ this whole thing is from Coin Version 2.5.0, and yeah it's literally called SoGeoSeparator(3) β the doxygen wrote it, i just made it slay. go georeference something iconic, you got this ππ¦πΈ
π¦ 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