SoSeparator Class |
Group node that saves and restores traversal state.
Namespace: OIV.Inventor.Nodes
The SoSeparator type exposes the following members.
Name | Description | |
---|---|---|
SoSeparator | Creates a separator node with default settings. | |
SoSeparator(Int32) | Constructor that takes approximate number of children. |
Name | Description | |
---|---|---|
AddChild | Adds a child as last one in group. | |
AffectsState | Returns true if a node has an effect on the state during traversal. | |
Callback | (Overrides SoGroupCallback(SoCallbackAction).) | |
ClearCacheList | ||
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 | (Overrides SoGroupDoAction(SoAction).) | |
EnableNotify | Notification at this Field Container is enabled (if flag == true) or disabled (if flag == false). | |
Equals | (Inherited from Object.) | |
FieldsAreEqual | Returns true if this object's fields are exactly equal to fc's fields. | |
FindChild | Finds index of given child within group. | |
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 | (Overrides SoGroupGetBoundingBox(SoGetBoundingBoxAction).) | |
GetChild | Returns pointer the child node with the given index. | |
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.) | |
GetMatrix | (Overrides SoGroupGetMatrix(SoGetMatrixAction).) | |
GetName | Returns the name of an instance. | |
GetNumChildren | Returns number of children. | |
GetPrimitiveCount | (Overrides SoGroupGetPrimitiveCount(SoGetPrimitiveCountAction).) | |
GetRenderEngineMode | Returns the supported Render engine mode. | |
GetRenderUnitID | (Inherited from SoNode.) | |
GetStringName | (Inherited from SoBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GLRender | (Overrides SoGroupGLRender(SoGLRenderAction).) | |
GLRenderBelowPath | (Overrides SoNodeGLRenderBelowPath(SoGLRenderAction).) | |
GLRenderInPath | (Overrides SoNodeGLRenderInPath(SoGLRenderAction).) | |
GLRenderOffPath | (Overrides SoNodeGLRenderOffPath(SoGLRenderAction).) | |
GrabEventsCleanup | (Inherited from SoNode.) | |
GrabEventsSetup | (Inherited from SoNode.) | |
HandleEvent | (Overrides SoGroupHandleEvent(SoHandleEventAction).) | |
HasDefaultValues | Returns true if all of the object's fields have their default values. | |
InsertChild | Adds a child so that it becomes the one with the given index. | |
IsBoundingBoxIgnoring | Used by BoundingBoxAction to known if bounding box computation should be ignored or not. | |
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 SoGroup.) | |
RayPick | (Overrides SoNodeRayPick(SoRayPickAction).) | |
RemoveAllChildren | Removes all children from group. | |
RemoveChild(Int32) | Removes child with given index from group. | |
RemoveChild(SoNode) | Removes first instance of given child from group. | |
ReplaceChild(Int32, SoNode) | Replaces child with given index with new child. | |
ReplaceChild(SoNode, SoNode) | Replaces first instance of given child with new child. | |
Search | (Overrides SoGroupSearch(SoSearchAction).) | |
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. | |
SetSynchronizable | Sets this to be a ScaleViz synchronizable object. | |
SetToDefaults | Sets all fields in this object to their default values. | |
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 SoGroup.) |
Name | Description | |
---|---|---|
boundingBoxCaching | ||
boundingBoxIgnoring | Whether to ignore this node during bounding box traversal. | |
fastEditing | Specifies the fast edit mode of the separator node. | |
IsDisposable | ISafeDisposable interface implementation.
(Inherited from SoDisposable.) | |
pickCulling | Whether to cull during picking traversal. | |
renderCaching | Obsolete. Whether to cache during rendering traversal. | |
renderCulling | Whether to cull during rendering traversal. | |
renderUnitId | Used during the ScaleViz depth compositing process, this field specifies which render unit (OIRU) will render the sub scene graph below this separator. | |
UserData |
Gets or sets the user data to be contained by the field container.
(Inherited from SoFieldContainer.) |
This group node performs a push (save) of the traversal state before traversing its children and a pop (restore) after traversing them. This isolates the separator's children from the rest of the scene graph. A separator can include lights, cameras, coordinates, normals, bindings, and all other properties. Separators are relatively inexpensive (the push/pop operation is highly optimized), so they can be used freely within scenes.
Caching:
The OIV.Inventor.Nodes.SoSeparator node provides caching of state during bounding box computation. This feature can be explicitly enabled or disabled by setting the OIV.Inventor.Nodes.SoSeparator.m_boundingBoxCaching field. By default, this field is set to AUTO, which means that Open Inventor decides whether to build a cache based on internal heuristics.
Culling:
Separators can also perform culling during rendering and picking. Culling skips over traversal of the separator's children if they are not going to be rendered or picked, based on the comparison of the separator's bounding box with the current view volume. Culling is controlled by the OIV.Inventor.Nodes.SoSeparator.m_renderCulling and OIV.Inventor.Nodes.SoSeparator.m_pickCulling fields. These are also set to AUTO by default; however, render culling can be expensive (and can interfere with render caching), so the AUTO heuristics leave it disabled unless specified otherwise. Note that if renderCulling is ON, the OIV.Inventor.Nodes.SoSeparator will prohibit auto-caching, so that no OIV.Inventor.Nodes.SoSeparator (or other render caching node) above this node in the scene graph will automatically create a render cache.
Fast edit:
The fast editing feature allows you to modify parts of a scene without redrawing the entire scene. For example, you could use it to interactively move a small object in a large scene that takes a long time to redraw. Fast editing must be enabled using OIV.Inventor.Actions.SoGLRenderAction.SetFastEditSavePolicy(OIV.Inventor.Actions.SoGLRenderAction.FastEditSavePolicies, System.Boolean).
The OIV.Inventor.Nodes.SoSeparator.m_fastEditing field enables fast editing for the sub-graph under the OIV.Inventor.Nodes.SoSeparator. Possible values are DISABLE, KEEP_ZBUFFER, and CLEAR_ZBUFFER. Using KEEP_ZBUFFER means that the fast edit geometry is depth buffered against the other objects in the scene, and using CLEAR_ZBUFFER means that the fast edit geometry will be drawn on top of the other objects of the scene. If several SoSeparators have the CLEAR_ZBUFFER flag set, they are drawn in the order in which they appear in the scene. The last separator in the scene will be topmost on the screen.
Fast edit performance:
This feature is most efficient when the parts of a scene graph to be fast edited contain a relatively small number of triangles.
The topmost OIV.Inventor.Nodes.SoSeparator of your scene graph should not enable the fast editing feature. Otherwise, performance will be very poor.
Currently, the entire viewport is saved and restored during fast editing. Therefore, fast editing performance is linked to the size of the viewport: the larger the viewport, the longer it will take to save and restore it.
Fast edit limitations:
Hardware: Fast editing performance depends on your graphics hardware and driver. To use the fast editing feature, the ARB_bufferRegion OpenGL extension is required.
Clip planes: When a fast edit object is moved outside the clip planes limit, fast editing is temporarily disabled and the entire scene is redrawn.
All fast editing sub-graphs are rendered even if only one fast editing sub-graph has changed.
Transparency: If the scene contains partially transparent objects, there is a possibility of visual artifacts regardless of what transparency algorithm is used. The fast edit shapes are necessarily rendered on top of the rest of the scene, which may not be the order required for correct transparency.
Stereo rendering: Fast edit is not compatible with stereo rendering. Fast edit is disabled when switching to stereo rendering.
Separator {
boundingBoxCaching | AUTO |
renderCulling | AUTO |
pickCulling | AUTO |
fastEditing | DISABLE |
renderUnitID | -1 |
OIV.Inventor.Actions.SoGLRenderAction, OIV.Inventor.Actions.SoCallbackAction, OIV.Inventor.Actions.SoGetBoundingBoxAction, OIV.Inventor.Actions.SoGetMatrixAction, OIV.Inventor.Actions.SoHandleEventAction, OIV.Inventor.Actions.SoRayPickAction, OIV.Inventor.Actions.SoSearchAction Saves the current traversal state, traverses all children, and restores the previous traversal state. Sets: OIV.Inventor.Elements.SoCacheElement