SoSegmentChain Class Reference
[Geometries]

ImageViz class that reprensents a chain of segments. More...

#include <ImageViz/Nodes/Geometries/SoSegmentChain.h>

Inheritance diagram for SoSegmentChain:
SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoSegmentChain ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoMFInt32 sizes
SoMFVec3d vertices

Detailed Description

ImageViz class that reprensents a chain of segments.

SEE ALSO

SoFieldContainer


Constructor & Destructor Documentation

SoSegmentChain::SoSegmentChain (  ) 

Default constructor.


Member Function Documentation

static SoType SoSegmentChain::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoFieldContainer.

virtual SoType SoSegmentChain::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Implements SoTypedObject.


Member Data Documentation

Array containing the number connected vertices in each segment chain.

The size of the array is the number of chains.

A chain with n connected vertices has (n-1) segment. A chain cannot have less than 2 vertices.

Ordered list of vertices used in all the segment chains.

Here is an example on how to iterate over each vertices of each chain.

 int indexAccumulator = 0;
 for (int chainIndex=0; chainIndex<sizes.getNum(); ++chainIndex)
 {
   for (int vertexIndex=0; vertexIndex<sizes[chainIndex]; ++vertexIndex)
   {
     fprintf(stdout,"chain %d - vertices %d = (%.3g %.3g %.3g)\n",
          chainIndex, vertexIndex,
          vertices[indexAccumulator+vertexIndex][0],
          vertices[indexAccumulator+vertexIndex][1],
          vertices[indexAccumulator+vertexIndex][2]
     );
   }
   indexAccumulator += sizes[chainIndex];
 }

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/