SoMarkerSet Class |
Extension of PointSet that draws a small bitmap (symbol) at each 3D location.
Namespace: OIV.Inventor.Nodes
The SoMarkerSet type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoMarkerSet | Constructor. |
Name | Description | |
---|---|---|
![]() ![]() | AddMarker(Int32, SoMarker) | Add a new marker with index markerIndex using an existing marker definition. |
![]() ![]() | AddMarker(Int32, SbVec2s, Byte) | Calls AddMarker(markerIndex, size, bytes, true, true). |
![]() ![]() | AddMarker(Int32, SbVec2s, Byte, Boolean) | Calls AddMarker(markerIndex, size, bytes, isLSBFirst, true). |
![]() ![]() | AddMarker(Int32, SbVec2s, Byte, UInt32) | Calls AddMarker(markerIndex, size, bytes, orderedRGBA, true, true). |
![]() ![]() | AddMarker(Int32, SbVec2s, Byte, Boolean, Boolean) | Add a new marker with index markerIndex . |
![]() ![]() | AddMarker(Int32, SbVec2s, Byte, UInt32, Boolean) | Calls AddMarker(markerIndex, size, bytes, orderedRGBA, isLSBFirst, true). |
![]() ![]() | AddMarker(Int32, SbVec2s, Byte, UInt32, Boolean, Boolean) | Add a new colored marker with index markerIndex . |
![]() | AffectsState | Overrides default method on SoNode. |
![]() | BeginShape(SoAction, SoShapeTriangleShapes) | Calls BeginShape(action, shapeType, (OIV.Inventor.Details.SoFaceDetail ^)nullptr). (Inherited from SoShape.) |
![]() | BeginShape(SoAction, SoShapeTriangleShapes, SoFaceDetail) | These methods can be used by subclasses to generate triangles more easily when those triangles are part of a larger structure, such as a triangle strip, triangle fan, or triangulated polygon, according to the TriangleShape enumerated type. |
![]() | Callback | Implements primitive generation for all shapes. |
![]() | CallShouldGLRender | Obsolete. Calls CallShouldGLRender(action, false). (Inherited from SoShape.) |
![]() | ComputeBBox(SoAction, SbBox3f, SbVec3f) | This handles AABB bounding box computation for all shapes derived from this class. |
![]() | ComputeBBox(SoAction, SbXfBox3d, SbVec3d) | This handles OOBB bounding box computation for all shapes derived from this class. |
![]() | Copy | Calls Copy(false). (Inherited from SoNode.) |
![]() | Copy(Boolean) | Creates and returns an exact copy of the node. |
![]() | CopyFieldValues(SoFieldContainer) | Calls CopyFieldValues(fc, false). (Inherited from SoFieldContainer.) |
![]() | CopyFieldValues(SoFieldContainer, Boolean) | Copies the contents of fc's fields into this object's fields. |
![]() | Dispose |
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.) |
![]() | Distribute | (Inherited from SoNode.) |
![]() | DoAction | (Inherited from SoNode.) |
![]() | EnableNotify | Notification at this Field Container is enabled (if flag == true) or disabled (if flag == false). |
![]() | EndShape | end shape previously started with beginShape(). |
![]() | Equals | (Inherited from Object.) |
![]() | FieldsAreEqual | Returns true if this object's fields are exactly equal to fc's fields. |
![]() | Get | Returns the values of the fields of this object in the Open Inventor ASCII file format in the given string. |
![]() | GetAllFields | Returns a list of fields, including the eventIn's and eventOut's. |
![]() | GetAlternateRep | This method is called by actions to allow the node to provide an "alternate representation" when appropriate (typically depending on the action type). |
![]() | GetBoundingBox | Implements SoGetBoundingBoxAction action Redefined this to tell open caches that they contain points. |
![]() | GetEventIn | Returns a the eventIn with the given name. |
![]() | GetEventOut | Returns the eventOut with the given name. |
![]() | GetField | Returns a the field of this object whose name is fieldName. |
![]() | GetFieldName | Returns the name of the given field in the fieldName argument. |
![]() | GetFields | Appends references to all of this object's fields to resultList, and returns the number of fields appended. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() ![]() | GetMarker(Int32) | Retrieve the definition of the marker with index markerIndex . |
![]() ![]() | GetMarker(Int32, SbVec2s, SbNativeArrayByte, Boolean) | Retrieve the description of the marker with index markerIndex . |
![]() ![]() | GetMarker(Int32, SbVec2s, SbNativeArrayByte, SbNativeArrayUInt32, Boolean) | Retrieve the description of the colored marker with index markerIndex . |
![]() ![]() | GetMarker(Int32, SbVec2s, SbNativeArrayByte, SbNativeUInt32Array, Boolean) | Obsolete. Retrieve the description of the colored marker with index markerIndex . |
![]() | GetMatrix | (Inherited from SoNode.) |
![]() | GetName | Returns the name of an instance. |
![]() | GetNormalCache | Returns the current normal cache, or NULL if there is none. |
![]() ![]() | GetNumDefinedMarkers | Return the number of defined markers. |
![]() | GetNumNeededNormals | (Inherited from SoVertexShape.) |
![]() | GetPrimitiveCount | Implements SoGetPrimitiveCountAction action. |
![]() | GetRenderUnitID | (Inherited from SoNode.) |
![]() | GetShapeType | Gets the current shape Full Scene Antialiasing type. |
![]() | GetStringName | (Inherited from SoBase.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GLRender | Implements SoGLRenderAction action. |
![]() | GLRenderBelowPath | (Inherited from SoNode.) |
![]() | GLRenderInPath | (Inherited from SoNode.) |
![]() | GLRenderOffPath | (Inherited from SoNode.) |
![]() | GrabEventsCleanup | (Inherited from SoNode.) |
![]() | GrabEventsSetup | (Inherited from SoNode.) |
![]() | HandleEvent | (Inherited from SoNode.) |
![]() | HandleInvisibleOrBBox | Obsolete. Calls HandleInvisibleOrBBox(action, false). (Inherited from SoShape.) |
![]() | HasDefaultValues | Returns true if all of the object's fields have their default values. |
![]() | IsBoundingBoxIgnoring | This method is used by getBoundingBox action traversal to know if the current node must be traversed or not, ie the bounding should be ignored. |
![]() ![]() | IsMarkerBitSet | |
![]() | IsNotifyEnabled | Notification is the process of telling interested objects that this object has changed. |
![]() | IsOverride | Returns the state of the override flag. |
![]() | IsSynchronizable | Gets the ScaleViz synchronizable state of this object. |
![]() | Pick | (Inherited from SoNode.) |
![]() | RayPick | Implements picking along a ray by intersecting the ray with each primitive generated by subclass. |
![]() ![]() | RemoveMarker | Remove the marker with index markerIndex . |
![]() | Search | (Inherited from SoNode.) |
![]() | Set | Sets one or more fields in this object to the values specified in the given string, which should be a string in the Open Inventor file format. |
![]() | SetName | (Inherited from SoBase.) |
![]() | SetOverride | Turns the override flag on or off. |
![]() | SetShapeType | set the antialiasing type for this shape. |
![]() | SetSynchronizable | Sets this to be a ScaleViz synchronizable object. |
![]() | SetToDefaults | Sets all fields in this object to their default values. |
![]() | ShapeVertex | add a primitive vertex to the shape prevously started with beginShape(). |
![]() | ShouldGLRender | Obsolete. Calls ShouldGLRender(action, false). (Inherited from SoPointSet.) |
![]() | ShouldGLRenderCore(SoGLRenderAction) | Obsolete. Calls ShouldGLRenderCore(action, false, false). (Inherited from SoShape.) |
![]() | ShouldGLRenderCore(SoGLRenderAction, Boolean) | Obsolete. Calls ShouldGLRenderCore(action, isPointsOrLines, false). (Inherited from SoShape.) |
![]() | ToString |
Converts this SoBase structure to a human readable string.
(Inherited from SoBase.) |
![]() | Touch | Marks an instance as modified, simulating a change to it. |
![]() | Write | (Inherited from SoVertexShape.) |
Name | Description | |
---|---|---|
![]() | boundingBoxIgnoring | Whether to ignore this node during bounding box traversal. |
![]() | IsDisposable | ISafeDisposable interface implementation.
(Inherited from SoDisposable.) |
![]() | markerGlobalScale | Specifies a global scale factor applied to all markers. |
![]() | markerIndex | Specifies the marker index (type of marker) for each marker. |
![]() | markerScale | Specifies the scale factor applied to each marker. |
![]() | numPoints | Number of points. |
![]() | startIndex | Index of first coordinate of shape. |
![]() | UserData |
Gets or sets the user data to be contained by the field container.
(Inherited from SoFieldContainer.) |
![]() | vertexProperty | vertex property node. |
This class draws a marker (small image) at each of a set of points located at the coordinates specified by the vertexProperty field (from SoVertexShape) or the current inherited 3D coordinates. For best performance, the vertexProperty field is recommended. SoMarkerSet uses the coordinates in order, starting with the coordinate at startIndex. The number of coordinates to use (the number of markers in the set) is specified by the numPoints field. The default value of this field is -1, which means to use all the coordinates, so it may not be necessary to explicitly set this field.
You specify the marker to be drawn at each point using the field markerIndex, which indexes into the global list of marker definitions. There is a set of pre-defined markers already in the global list. You can add your own marker definitions to this list using the addMarker functions. Marker definitions in the global list can be used by any SoMarkerSet or SoIndexedMarkerSet node. You can specify fewer index values than the number of markers to be drawn (the number of coordinates). In this case the node will cycle through the provided index values as many times as necessary. If all the markers in the set will use the same definition it is only necessary to set the first value in markerIndex.
You can specify a scale factor (> 0) for each marker using the field markerScale. You can specify fewer scale values than the number of markers to be drawn, but in this case the "missing" values are assumed to be 1. You can also specify a scale factor to be applied to every marker in the set using the field markerGlobalScale. This scale factor is applied in addition to the individual scale factor (if any).
A marker is an image defined by a bitmap and optional color values. If no color values are given then image pixels corresponding to "1" bits are drawn using the current material color (see SoMaterial) and pixels corresponding to "0" bits are not drawn (whatever is behind the marker shows through). If color values are given then each pixel in the image is assigned an RGBA value.
The coordinates of the markers are transformed by the current cumulative transformation.
Lighting is not applied to points (i.e., they are rendered with light model BASE_COLOR) unless the application explicitly sets normal vectors using SoVertexProperty or SoNormal.
Automatic simplification (by skipping points) is controlled by the SoComplexity field value. Only values < 0.25 have any effect.
Note that custom markers defined with addMarker are not automatically saved in the Open Inventor file when an SoWriteAction is applied to the scene graph (and therefore are not defined if the scene graph is reloaded). To save marker definitions in an Open Inventor file use the SoMarker node.
Limitations:
Since Open Inventor 9.3, markers are rendered using a high performance shader implementation by default. However the shader implementation requires support for the OpenGL geometry shader (GL_ARB_geometry_shader4) and texture array (GL_EXT_texture_array) features (or the equivalent extensions). If necessary markers will still be rendered, but using the previous drawPixels() implementation which is slower.
SoMarkerSet does not cast or receive shadows (see SoShadowGroup).
Shape Antialiasing type is SoShape.POINTS.
The following markers are defined by default:
MarkerSet {
markerIndex | 0 |
markerScale | 1 |
markerGlobalScale | 1 |
vertexProperty | NULL |
startIndex | 0 |
numPoints | -1 |
SoGLRenderAction Draws markers based on the current coordinates.
SoGetPrimitiveCountAction Increments the image count by 1 for each marker in the marker set.