SoIndexedLineSet(3)
π NAME π
SoIndexedLineSet β bestie, this class is used to render and otherwise represent indexed lines. That's the whole vibe. (Also hi, you're on the SoIndexedLineSet(3) page, we're doing this together π«Ά)
π¦ SYNOPSIS π¦
#include <Inventor/nodes/SoIndexedLineSet.h>
Inherits SoIndexedShape. Yeah she comes from a whole family, we'll get to that. π
β¨ Public Member Functions β¨
These are hers, like actually hers:
virtual SoType getTypeId (void) constβ the type id, and it's virtual so she'll tell you who she really is πSoIndexedLineSet (void)β the constructor. she's born. iconic. πvirtual void GLRender (SoGLRenderAction *action)β does the GL rendering thing with the actionvirtual void getBoundingBox (SoGetBoundingBoxAction *action)β hands over the bounding box via the actionvirtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)β counts primitives, as one does
πΈ Public Member Functions inherited from SoVertexShape πΈ
Not hers originally, but she got them in the will π
virtual void notify (SoNotList *nl)β sends out the notificationvirtual void write (SoWriteAction *action)β writes herself out
π¦ Public Member Functions inherited from SoShape π¦
virtual SbBool affectsState (void) constβ does she affect state? a yes/no situationvirtual void rayPick (SoRayPickAction *action)β ray picking time, bestievirtual void callback (SoCallbackAction *action)β the callback actionconst SoBoundingBoxCache * getBoundingBoxCache (void) constβ the bounding box cache, already cached, no redoing the work
π Public Member Functions inherited from SoNode π
Long list, don't panic, we're going through every single one:
void setOverride (const SbBool state)β sets the override stateSbBool isOverride (void) constβ is it overriding? asking for youvoid setNodeType (const NodeType type)β sets the node typeNodeType getNodeType (void) constβ gets the node typevirtual SoNode * copy (SbBool copyconnections=0) constβ makes a copyvirtual void doAction (SoAction *action)β does the actionvirtual void GLRenderBelowPath (SoGLRenderAction *action)β GL renders below the pathvirtual void GLRenderInPath (SoGLRenderAction *action)β GL renders in the pathvirtual void GLRenderOffPath (SoGLRenderAction *action)β GL renders off the pathvirtual void getMatrix (SoGetMatrixAction *action)β grabs the matrixvirtual void handleEvent (SoHandleEventAction *action)β handles the eventvirtual void pick (SoPickAction *action)β does the pickingvirtual void search (SoSearchAction *action)β does the searchingvirtual void audioRender (SoAudioRenderAction *action)β audio render, yes really πvirtual void grabEventsSetup (void)β sets up the event grabbingvirtual void grabEventsCleanup (void)β cleans up the event grabbingvirtual void startNotify (void)β kicks off the notificationuint32_t getNodeId (void) constβ the node id, auint32_tno lessvirtual SoChildList * getChildren (void) constβ the children listvirtual void writeInstance (SoOutput *out)β writes the instancevirtual SoNode * addToCopyDict (void) constβ adds herself to the copy dictionaryvirtual void copyContents (const SoFieldContainer *from, SbBool copyconnections)β copies the contents overvirtual SoFieldContainer * copyThroughConnection (void) constβ copies through the connection
π Public Member Functions inherited from SoFieldContainer π
void setToDefaults (void)β back to defaults, reset eraSbBool hasDefaultValues (void) constβ still on defaults? yes/noSbBool fieldsAreEqual (const SoFieldContainer *container) constβ are the fields equal to that container's? πvoid copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=0)β copies the field values overSbBool set (const char *const fielddata)β sets from field datavoid get (SbString &fielddata)β gets the field data outvirtual int getFields (SoFieldList &l) constβ gets the fields into a listvirtual int getAllFields (SoFieldList &l) constβ gets all the fields, every last onevirtual SoField * getField (const SbName &name) constβ gets a field by namevirtual SoField * getEventIn (const SbName &name) constβ gets an event in by namevirtual SoField * getEventOut (const SbName &name) constβ gets an event out by nameSbBool getFieldName (const SoField *const field, SbName &name) constβ gets the name of a given fieldSbBool enableNotify (const SbBool flag)β turns notification on/offSbBool isNotifyEnabled (void) constβ is notification enabled? you know the drillSbBool set (const char *fielddata, SoInput *in)β sets from field data, but with anSoInputvoid get (SbString &fielddata, SoOutput *out)β gets the field data out, with anSoOutputvirtual SbBool validateNewFieldValue (SoField *field, void *newval)β is this new value even valid for that fieldvirtual void addWriteReference (SoOutput *out, SbBool isfromfield=0)β adds the write referenceSbBool getIsBuiltIn (void) constβ is it built in?void setUserData (void *userdata) constβ stashes your user datavoid * getUserData (void) constβ gets your user data back out
π§ Public Member Functions inherited from SoBase π§
void ref (void) constβ refs her, bumps the countvoid unref (void) constβ unrefs hervoid unrefNoDelete (void) constβ unrefs but, you know, doesn't deleteint32_t getRefCount (void) constβ the ref count, as anint32_tvoid touch (void)β touch herSbBool isOfType (SoType type) constβ is she that type?virtual SbName getName (void) constβ her namevirtual void setName (const SbName &newname)β gives her a new namevoid addAuditor (void *const auditor, const SoNotRec::Type type)β adds an auditor of that typevoid removeAuditor (void *const auditor, const SoNotRec::Type type)β removes an auditor of that typeconst SoAuditorList & getAuditors (void) constβ the auditor listSbBool shouldWrite (void)β should she be written?void assertAlive (void) constβ asserts she's alive, dramatic but fair π
β Static Public Member Functions β
static SoType getClassTypeId (void)β the class type id, static editionstatic void initClass (void)β inits the class
π Static Public Member Functions inherited from SoIndexedShape π
static SoType getClassTypeId (void)static void initClass (void)
π Static Public Member Functions inherited from SoVertexShape π
static SoType getClassTypeId (void)static void initClass (void)
π₯ Static Public Member Functions inherited from SoShape π₯
static SoType getClassTypeId (void)static void initClass (void)static void getScreenSize (SoState *const state, const SbBox3f &boundingbox, SbVec2s &rectsize)β screen size, from a state and a bounding box into arectsizestatic float getDecimatedComplexity (SoState *state, float complexity)β the decimated complexity, as afloat
π 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)
π«Ά Protected Member Functions π«Ά
The members-only section, no randoms allowed:
virtual const SoFieldData * getFieldData (void) constβ the field data, protected editionvirtual ~SoIndexedLineSet ()β the destructor. rest in peace queen π
π Protected Member Functions inherited from SoIndexedShape π
SoIndexedShape (void)β the constructorvirtual ~SoIndexedShape ()β the destructorvirtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er)β computes the bounding box intoboxandcenterint getNumVerts (const int startCoord)β how many verts, starting fromstartCoordvoid setupIndices (const int numParts, const int numFaces, const SbBool needNormals, const SbBool needTexCoords)β sets up the indices for the given parts, faces, and whether normals/tex coords are neededconst int32_t * getNormalIndices (void)β the normal indicesconst int32_t * getColorIndices (void)β the color indicesconst int32_t * getTexCoordIndices (void)β the texture coordinate indicesSbBool getVertexData (SoState *state, const SoCoordinateElement *&coords, const SbVec3f *&normals, const int32_t *&cindices, const int32_t *&nindices, const int32_t *&tindices, const int32_t *&mindices, int &numcindices, const SbBool needNormals, SbBool &normalCacheUsed)β the big one, grabs all the vertex data in one go
π¦ Protected Member Functions inherited from SoVertexShape π¦
SoVertexShape (void)virtual ~SoVertexShape ()virtual SbBool shouldGLRender (SoGLRenderAction *action)β should this even GL render? yes/novoid setNormalCache (SoState *const state, const int num, const SbVec3f *normals)β sets the normal cacheSoNormalCache * getNormalCache (void) constβ gets the normal cacheSoNormalCache * generateAndReadLockNormalCache (SoState *const state)β generates it and read-locks it, multitasking queenvoid getVertexData (SoState *state, const SoCoordinateElement *&coords, const SbVec3f *&normals, const SbBool neednormals)β theSoVertexShapeflavour of getting vertex datavoid readLockNormalCache (void)β read-locks the normal cachevoid readUnlockNormalCache (void)β read-unlocks the normal cache
β Protected Member Functions inherited from SoShape β
Okay this one's a whole album, stay with me:
SoShape (void)virtual ~SoShape ()float getComplexityValue (SoAction *action)β the complexity value, as afloatvoid beginSolidShape (SoGLRenderAction *action)β begins the solid shapevoid endSolidShape (SoGLRenderAction *action)β ends the solid shapevoid GLRenderBoundingBox (SoGLRenderAction *action)β GL renders the bounding boxSbBool shouldPrimitiveCount (SoGetPrimitiveCountAction *action)β should we count primitives?SbBool shouldRayPick (SoRayPickAction *const action)β should we ray pick?void computeObjectSpaceRay (SoRayPickAction *const action)β computes the object space rayvoid computeObjectSpaceRay (SoRayPickAction *const action, const SbMatrix &matrix)β same but you hand it a matrixvirtual SoDetail * createTriangleDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, const SoPrimitiveVertex *v3, SoPickedPoint *pp)β makes the triangle detail from three verticesvirtual SoDetail * createLineSegmentDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, SoPickedPoint *pp)β makes the line segment detail from two verticesvirtual SoDetail * createPointDetail (SoRayPickAction *action, const SoPrimitiveVertex *v, SoPickedPoint *pp)β makes the point detail from one vertexvoid invokeTriangleCallbacks (SoAction *const action, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2, const SoPrimitiveVertex *const v3)β fires the triangle callbacksvoid invokeLineSegmentCallbacks (SoAction *const action, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2)β fires the line segment callbacksvoid invokePointCallbacks (SoAction *const action, const SoPrimitiveVertex *const v)β fires the point callbacksvoid beginShape (SoAction *const action, const TriangleShape shapetype, SoDetail *const detail=NULL)β begins the shape with that triangle shape type and a detail that defaults toNULLvoid shapeVertex (const SoPrimitiveVertex *const v)β feeds in a shape vertexvoid endShape (void)β ends the shapevoid generateVertex (SoPrimitiveVertex *const pv, const SbVec3f &point, const SbBool useTexFunc, const SoTextureCoordinateElement *const tce, const float s, const float t, const SbVec3f &normal)β generates a vertex withs,tand a normalvoid generateVertex (SoPrimitiveVertex *const pv, const SbVec3f &point, const SbBool useTexFunc, const SoTextureCoordinateElement *const tce, const float s, const float t, const float r, const SbVec3f &normal)β the same but withrtoo, she's extra πSbBool startVertexArray (SoGLRenderAction *action, const SoCoordinateElement *coords, const SbVec3f *pervertexnormals, const SbBool texpervertex, const SbBool colorpervertex)β starts the vertex arrayvoid finishVertexArray (SoGLRenderAction *action, const SbBool vbo, const SbBool normpervertex, const SbBool texpervertex, const SbBool colorpervertex)β finishes the vertex array
okay bestie that's part 1, and there is so much more where that came from, do not go anywhere π«Ά
β¨ Protected Member Functions inherited from SoNode β¨
Okay so these are the protected ones you inherit from SoNode, bestie β don't sleep on them:
SoNode (void)virtual ~SoNode ()virtual SbBool readInstance (SoInput *in, unsigned short flags)
π 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 SoIndexedShape πΈ
static const SoFieldData ** getFieldDataPtr (void)static SbBool areTexCoordsIndexed (SoAction *action)
π Static Protected Member Functions inherited from SoVertexShape π
static const SoFieldData ** getFieldDataPtr (void)
π Static Protected Member Functions inherited from SoShape π
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 SoShape
enum TriangleShape { TRIANGLE_STRIP, TRIANGLE_FAN, TRIANGLES, POLYGON,
QUADS, QUAD_STRIP, POINTS, LINES, LINE_STRIP }
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
}
Public Attributes inherited from SoIndexedShape
SoMFInt32 coordIndexSoMFInt32 materialIndexSoMFInt32 normalIndexSoMFInt32 textureCoordIndex
Public Attributes inherited from SoVertexShape
SoSFNode vertexProperty
Protected Types inherited from SoBase
enum BaseFlags { IS_ENGINE = 0x01, IS_GROUP = 0x02 }
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 π
The SoIndexedLineSet class is used to render and otherwise represent indexed lines.
The indexed counterpart of SoLineSet. Lines can be specified using indices for coordinates, normals, materials and texture coordinates.
If no normals are supplied on the stack (or in the vertexProperty field), the lines will be rendered with lighting disabled.
For more information about line sets, see documentation in SoLineSet. For more information about indexed shapes, see documentation in SoIndexedShape and SoIndexedFaceSet.
FILE FORMAT/DEFAULTS:
IndexedLineSet {
vertexProperty NULL
coordIndex 0
materialIndex -1
normalIndex -1
textureCoordIndex -1
}
π οΈ Constructor & Destructor Documentation π οΈ
SoIndexedLineSet::SoIndexedLineSet (void )
Constructor.
References SoIndexedLineSet().
Referenced by getFieldData(), and SoIndexedLineSet().
SoIndexedLineSet::~SoIndexedLineSet () [protected], [virtual]
Destructor.
π Member Function Documentation π
SoType SoIndexedLineSet::getTypeId (void ) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and "downward" casting.
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
}
}
For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance 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.
For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.
Reimplemented from SoIndexedShape.
const SoFieldData * SoIndexedLineSet::getFieldData (void ) const [protected], [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.
Reimplemented from SoIndexedShape.
References SoIndexedLineSet().
void SoIndexedLineSet::GLRender (SoGLRenderAction * action) [virtual]
Action method for the SoGLRenderAction.
This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method.
Reimplemented from SoShape.
References SoIndexedShape::coordIndex, SoShape::finishVertexArray(), SoGLRenderAction::getCacheContext(), SoNode::getNodeId(), SoNode::getNodeType(), SoAction::getState(), SoIndexedShape::getVertexData(), SoState::pop(), SoState::push(), SoVertexShape::shouldGLRender(), SoShape::startVertexArray(), SoVertexShape::vertexProperty, and SoNode::VRML1.
void SoIndexedLineSet::getBoundingBox (SoGetBoundingBoxAction * action) [virtual]
Action method for the SoGetBoundingBoxAction.
Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node.
Nodes influencing how geometry nodes calculates their bounding box also overrides this method to change the relevant state variables.
Reimplemented from SoShape.
References SoNode::getBoundingBox(), and SoAction::getState().
void SoIndexedLineSet::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.
Nodes influencing how geometry nodes calculates their primitive count also overrides this method to change the relevant state variables.
Reimplemented from SoShape.
References SoGetPrimitiveCountAction::addNumLines(), SoGetPrimitiveCountAction::canApproximateCount(), SoIndexedShape::coordIndex, and SoShape::shouldPrimitiveCount().
βοΈ Author βοΈ
Generated automatically by Doxygen for Coin from the source code.
Coin, Version 2.5.0, page SoIndexedLineSet(3) β and that's the whole vibe, bestie. Stay indexed, stay iconic. π
πβ¨
π¦ 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