Click or drag to resize
SoDataSet Class

Data set node.

Inheritance Hierarchy

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public abstract class SoDataSet : SoNode

The SoDataSet type exposes the following members.

Methods
  NameDescription
Public methodAffectsState

Returns true if a node has an effect on the state during traversal.

(Inherited from SoNode.)
Public methodCallback
Public methodCopy
Calls Copy(false).
(Inherited from SoNode.)
Public methodCopy(Boolean)

Creates and returns an exact copy of the node.

(Inherited from SoNode.)
Public methodCopyFieldValues(SoFieldContainer)
Calls CopyFieldValues(fc, false).
(Inherited from SoFieldContainer.)
Public methodCopyFieldValues(SoFieldContainer, Boolean)

Copies the contents of fc's fields into this object's fields.

(Inherited from SoFieldContainer.)
Public methodStatic memberDataSize

Returns the number of bytes per voxel of the specified data type.

Public methodDispose
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.)
Public methodDistribute
(Inherited from SoNode.)
Public methodDoAction
(Inherited from SoNode.)
Public methodDrawTiles Obsolete.
Public methodEditBoxes

Replace all voxels in the region defined by a list of boxes with the specified value.

Public methodEditSolidShape

Replace all voxels intersecting the given shape with the specified value.

Public methodEditSubVolume(SbBox3i32, SoBufferObject)

Replace the contents of a subvolume with the given data.

Public methodEditSubVolume(SbBox3i32, Double)

Replace the contents of a subvolume with the specified value.

Public methodEditSurfaceShape

Replace all voxels intersecting the polygons or lines defined by the surfaceShape and given thickness with the specified value.

Public methodEditTile(SoLDMTileID, SoBufferObject)

Replace the contents of a tile with the given data.

Public methodEditTile(SoLDMTileID, Double)

Replace the contents of a tile with the specified value.

Public methodEnableNotify

Notification at this Field Container is enabled (if flag == true) or disabled (if flag == false).

(Inherited from SoFieldContainer.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFieldsAreEqual

Returns true if this object's fields are exactly equal to fc's fields.

(Inherited from SoFieldContainer.)
Public methodFinishEditing

Terminate an editing transaction.

Public methodGet

Returns the values of the fields of this object in the Open Inventor ASCII file format in the given string.

(Inherited from SoFieldContainer.)
Public methodGetAllFields

Returns a list of fields, including the eventIn's and eventOut's.

(Inherited from SoFieldContainer.)
Public methodGetAlternateRep

This method is called by actions to allow the node to provide an "alternate representation" when appropriate (typically depending on the action type).

(Inherited from SoNode.)
Public methodGetAppropriateElement

a SoDataSet must return the LDMelt defining the weights of the representations that are going to use it.

Public methodGetBoundingBox
Public methodGetDataSize

Returns the number of bytes per voxel in VolumeViz.

Public methodGetDataType

Returns the data type.

Public methodGetDatumSize

Returns the number of bytes per voxel.

Public methodGetDimension

Returns the data set dimension.

Public methodGetEventIn

Returns a the eventIn with the given name.

(Inherited from SoFieldContainer.)
Public methodGetEventOut

Returns the eventOut with the given name.

(Inherited from SoFieldContainer.)
Public methodGetField

Returns a the field of this object whose name is fieldName.

(Inherited from SoFieldContainer.)
Public methodGetFieldName

Returns the name of the given field in the fieldName argument.

(Inherited from SoFieldContainer.)
Public methodGetFields

Appends references to all of this object's fields to resultList, and returns the number of fields appended.

(Inherited from SoFieldContainer.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetLdmDataAccess

Returns a reference to the SoLDMDataAccess object.

Public methodGetLdmManagerAccess
Public methodGetLDMReader

Returns a pointer to the current data set reader object.

Public methodGetLdmResourceParameter Obsolete.

Returns a reference to the LDMResourceParameter.

Public methodGetMatrix
(Inherited from SoNode.)
Public methodStatic memberGetMaxNumDataSets

Returns the maximum number of data sets that can be render composited on the current hardware (essentially the number of texture units - 1).

Public methodGetMinMax(Double, Double)

Returns min and max values of the data set.

Public methodGetMinMax(Int64, Int64)

Returns min and max values of the data set data.

Public methodGetName

Returns the name of an instance.

(Inherited from SoBase.)
Public methodGetNodeFrontManager

Returns a pointer to the LDM node front manager.

Public methodGetNumTimeSteps Obsolete.

Returns the number of time steps.

Public methodGetOverlapping Obsolete.

Returns the tile border (overlap) in voxels.

Public methodGetPrimitiveCount
(Inherited from SoNode.)
Public methodGetReader Obsolete.

Returns the current data set reader object.

Public methodGetRenderUnitID
(Inherited from SoNode.)
Public methodGetStringName (Inherited from SoBase.)
Public methodGetTileDimension

Returns the tile dimension.

Public methodGetTileManager

Returns a pointer to the LDM tile manager.

Public methodGetTileVisitor Obsolete.

Returns the current LDM tile visitor.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVVizGeometry Obsolete.

Returns a pointer to the LDM geometry object.

Public methodGLRender
Public methodGLRenderBelowPath
(Inherited from SoNode.)
Public methodGLRenderInPath
(Inherited from SoNode.)
Public methodGLRenderOffPath
(Inherited from SoNode.)
Public methodGrabEventsCleanup
(Inherited from SoNode.)
Public methodGrabEventsSetup
(Inherited from SoNode.)
Public methodHandleEvent
(Inherited from SoNode.)
Public methodHasDefaultValues

Returns true if all of the object's fields have their default values.

(Inherited from SoFieldContainer.)
Public methodHasEditedTile

Returns true if DataSet has edited tiles.

Public methodIsBoundingBoxIgnoring

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.

(Inherited from SoNode.)
Public methodStatic memberIsDataFloat

Returns true if the given data type is a float data type.

Public methodStatic memberIsDataSigned

Returns true if the given data type is a signed integer data type.

Public methodIsNotifyEnabled

Notification is the process of telling interested objects that this object has changed.

(Inherited from SoFieldContainer.)
Public methodIsOverride

Returns the state of the override flag.

(Inherited from SoNode.)
Public methodIsSynchronizable

Gets the ScaleViz synchronizable state of this object.

(Inherited from SoBase.)
Public methodIsTimeDependent Obsolete.
Public methodNumSigBits

Returns the number of significant bits.

Public methodPick
Public methodRayPick
(Inherited from SoNode.)
Public methodReadTile(SoBufferObject, SoLDMTileID, Boolean)

Copies the specified tile into the provided buffer.

Public methodReadTile(SoLDMTileID, SoBufferObject, Boolean)

Copies the specified tile into the provided buffer.

Public methodReadTile(SoLDMTileID, Byte, Boolean) Obsolete.
Public methodReadTileLong Obsolete.

Copies the specified tile into the provided buffer.

Public methodRedoEditing

Redo all modifications associated with the specified transaction id.

Public methodResetReader

reset previously set custom reader setup by setReader call.

Public methodSaveEditing
Save modifications to a file.
Public methodSaveEditing(Boolean)
Save modifications to a file.
Public methodSaveEditing(Boolean, IListString)
Save modifications to a file.
Public methodSearch
(Inherited from SoNode.)
Public methodSet

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.

(Inherited from SoFieldContainer.)
Public methodSetLDM Obsolete.

Enable or disable LDM mode.

Public methodSetLDMDataTransformCB(SoDataSetLDMDataTransformCB) Obsolete.
Use LDMDataTransformCallback property instead. If set, the user-defined delegate is invoked after each tile is loaded. This allows you to modify the original data (for example, attribute calculation) before it's displayed.
Public methodSetLDMDataTransformCB(SoDataSetLDMDataTransformUserDataCB, Object) Obsolete.
Use LDMDataTransformCallback property instead.
Public methodSetLDMReader

Sets the LDM volume reader object to use.

Public methodSetName (Inherited from SoBase.)
Public methodSetOverride

Turns the override flag on or off.

(Inherited from SoNode.)
Public methodSetReader(SoVolumeReader) Obsolete.
Calls SetReader(reader, false).
Public methodSetReader(SoVolumeReader, Boolean) Obsolete.

This method allows the data to be read directly from the disk using the specified subclass of SoVolumeReader.

Public methodSetSynchronizable

Sets this to be a ScaleViz synchronizable object.

(Inherited from SoBase.)
Public methodSetTileVisitor Obsolete.

Sets a custom LDM tile visitor.

Public methodSetToDefaults

Sets all fields in this object to their default values.

(Inherited from SoFieldContainer.)
Public methodStartEditing

Initiate an editing transaction.

Public methodToString
Converts this SoBase structure to a human readable string.
(Inherited from SoBase.)
Public methodTouch

Marks an instance as modified, simulating a change to it.

(Inherited from SoNode.)
Public methodUndoEditing

Undo all modifications associated with the specified transaction id.

Public methodUseFakeData

Create fake data in buffer.

Public methodWrite
Public methodWriteTile

Write the specified tile using the specified writer.

Top
Properties
  NameDescription
Public propertyallocateResourceOnRender

Indicates if resource allocation is done only on first render traversal or as soon as the node is created.

Public propertydataSetId

When using multiple SoDataSet nodes, the dataSetId field uniquely identifies each data set used in the compositing.

Public propertydataTransform

If set to an appropriate SoLDMDataTransform object, the object's transformFunction method is called after each tile is loaded, but before it is stored in main memory.

Public propertyextent

The real size (extent) of the volume in modeling coordinates.

Public propertyfileName

Indicates the file location containing the data set.

Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Public propertyLDMDataTransformCallback Obsolete.

If set, the user-defined function is called after each tile is loaded, but before it is stored in main memory.

Public propertyldmResourceParameters

Contains an SoLDMResourceParameters object which allows you to set LDM resource parameters.

Public propertyReader

Returns the current data set reader object.

Public propertytexturePrecision

Specifies the color index texture storage size in bits.

Public propertyuseCompressedTexture

Controls use of the OpenGL lossy texture compression extension (if available).

Public propertyUserData
Gets or sets the user data to be contained by the field container.
(Inherited from SoFieldContainer.)
Top
Remarks

This class specifies the data set and its properties, and also provides utilities for extracting a subset of the data set and for resampling the data set. The data can be read from directly from a file or can be accessed via a user-defined volume reader. This class is the parent class of the VolumeViz data nodes SoVolumeData and SoMeshGeometry. These nodes provide the data for VolumeViz nodes (SoVolumeRender, SoOrthoSlice, SoObliqueSlice, etc.).

The data set can be specified by:

  • Setting the fileName field This implies that the data set is stored on disk, in one of the file formats for which LDM has a built-in reader. LDM will automatically select a reader based on the file extension, for example ".am" for the AmiraMesh file format.

Calling the setReader() method This is the most general method because an application can specify one of the standard LDM readers or implement a customized subclass of SoVolumeReader. LDM will get the data set properties (dimensions, size, data type, etc) and access the data through the specified reader object. This allows the application to completely control how, and from where, the data is loaded.

See Also