Click or drag to resize
SoVRLdmFileReader Class

LDM file reader.

Inheritance Hierarchy

Namespace: OIV.LDM.Readers
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public class SoVRLdmFileReader : SoLDMReader

The SoVRLdmFileReader type exposes the following members.

Constructors
  NameDescription
Public methodSoVRLdmFileReader

Default constructor.

Top
Methods
  NameDescription
Public methodCloseAllHandles

Close all resources that are locked by the reader.

(Inherited from SoVolumeReader.)
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 methodDispose
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.)
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 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 methodGetBbox

Returns the bounding box of the data associated with the specified file ID.

(Inherited from SoLDMReader.)
Public methodGetBorderFlag Obsolete.

Returns the border flag.

(Inherited from SoLDMReader.)
Public methodGetCenter

Returns the center of the data associated with the specified file ID.

(Inherited from SoLDMReader.)
Public methodGetConfiguredWriter (Inherited from SoLDMReader.)
Public methodGetCoordinateType

Returns coordinate type used by the data set.

(Inherited from SoVolumeReader.)
Public methodGetDataChar

Gets the characteristics (file header) of the data volume.

(Overrides SoLDMReaderGetDataChar(SbBox3f, SoDataSetDataTypes, SbVec3i32).)
Public methodGetDimension

Returns the dimension of the data.

(Inherited from SoLDMReader.)
Public methodGetDirectCoordSys

Return whether the coordinate system used is direct or not.

(Inherited from SoVolumeReader.)
Public methodGetDirectCoordSysAutoDetection

Return automatic detection value.

(Inherited from SoVolumeReader.)
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 methodGetFilename

Returns the path of the file.

(Inherited from SoVolumeReader.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetHistogram(Queue) Obsolete.
Returns histogram if stored in file.
(Inherited from SoVolumeReader.)
Public methodGetHistogram(IListInt64)

Returns the distribution of data values, i.e., the number of voxels per data value.

(Overrides SoLDMReaderGetHistogram(IListInt64).)
Public methodGetMinMax(Double, Double)

Returns the minimum and maximum data values (for float values).

(Overrides SoLDMReaderGetMinMax(Double, Double).)
Public methodGetMinMax(Int32, Int32) Obsolete.
Public methodGetMinMax(Int64, Int64)

Returns the minimum and maximum data values.

(Overrides SoLDMReaderGetMinMax(Int64, Int64).)
Public methodGetName

Returns the name of an instance.

(Inherited from SoBase.)
Public methodGetNumSignificantBits

Returns the number of significant bits.

(Overrides SoVolumeReaderGetNumSignificantBits.)
Public methodGetNumVoxels

Utility function provided by OIV.LDM.Readers.SoVolumeReader for subclass readers to call.

(Inherited from SoVolumeReader.)
Public methodGetOriginalFilename

Returns original file name from which the data has been converted to LDM format if stored in file.

(Inherited from SoLDMReader.)
Public methodGetReaderType

Returns the reader type.

(Inherited from SoLDMReader.)
Public methodGetRectilinearCoordinates

Returns the coordinates for the specified axis.

(Inherited from SoVolumeReader.)
Public methodGetSize

Returns the bounding box of the total data in world coordinates.

(Inherited from SoLDMReader.)
Public methodGetSizeToAllocate

Utility function provided by OIV.LDM.Readers.SoVolumeReader for subclass readers to call.

(Inherited from SoVolumeReader.)
Public methodGetStringName (Inherited from SoBase.)
Public methodGetSubSlice(SbBox2i32, Int32, SoBufferObject)

Same as OIV.LDM.Readers.SoVolumeReader.GetSubSlice(OIV.Inventor.SbBox2i32, System.Int32, OIV.Inventor.Generic.SbNativeArray{{System.Byte}}) but using an OIV.Inventor.Devices.SoBufferObject as the target of the data.

(Inherited from SoVolumeReader.)
Public methodGetSubSlice(SbBox2i32, Int32, SbNativeArrayByte) Obsolete.
Public methodGetTileMinMax

Returns the minimum and maximum data values for the given tile.

(Inherited from SoLDMReader.)
Public methodGetTileSize

Returns the size of a data tile.

(Inherited from SoLDMReader.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetXmlTag

Gets the first occurrence of the XML element whose tag name is specified by tagName.

(Inherited from SoLDMReader.)
Public methodHasDefaultValues

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

(Inherited from SoFieldContainer.)
Public methodIsIgnoredFile

Should return true if at least one file has been ignored during reading.

(Inherited from SoVolumeReader.)
Public methodIsLittleEndian

Returns whether the bytes of the data are stored in big or little endian order.

(Inherited from SoLDMReader.)
Public methodIsNotifyEnabled

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

(Inherited from SoFieldContainer.)
Public methodIsSynchronizable

Gets the ScaleViz synchronizable state of this object.

(Inherited from SoBase.)
Public methodReadTile(Int32, SbBox3i32)

Given an index, reads a tile if the data is organized in tiles (for LDM).

(Inherited from SoLDMReader.)
Public methodReadTile(Int32, SbNativeArrayByte, SbBox3i32) Obsolete.
(Inherited from SoLDMReader.)
Public methodReadTile(Int32, SoBufferObject, SbBox3i32) Obsolete.

Same as OIV.LDM.Readers.SoVolumeReader.ReadTile(System.Int32, OIV.Inventor.Generic.SbNativeArray{{System.Byte}}, OIV.Inventor.SbBox3i32) but using an OIV.Inventor.Devices.SoBufferObject (allocated by LDM) as the target of the data.

(Inherited from SoVolumeReader.)
Public methodReadXSliceInTile

Read directly from the LDM data source, an orthoslice on the X axis inside a tile.

(Inherited from SoLDMReader.)
Public methodReadXTraceInTile

Read directly from the LDM data source, a trace inside a tile.

(Inherited from SoLDMReader.)
Public methodReadYSliceInTile

Read directly from the LDM data source, an orthoslice on the Y axis inside a tile.

(Inherited from SoLDMReader.)
Public methodReadZSliceInTile

Read directly from the LDM data source, an orthoslice on the Z axis inside a tile.

(Inherited from SoLDMReader.)
Public methodReloadTileMinMax
(Inherited from SoVolumeReader.)
Public methodRestoreAllHandles

Restore resources that were closed by OIV.LDM.Readers.SoVolumeReader.CloseAllHandles().

(Inherited from SoVolumeReader.)
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 methodSetDirectCoordSysAutoDetection

Sets whether or not the reader should automatically try to detect if the coordinate system used is direct or not.

(Inherited from SoVolumeReader.)
Public methodSetDirectCoorSys

Specify if the coordinate system used is direct or not.

(Inherited from SoVolumeReader.)
Public methodSetFilename

Specifies the path of the file.

(Inherited from SoVolumeReader.)
Public methodSetInputDataRange

Requests that the input be converted from the specified range to the range depending on the output data type.

(Inherited from SoVolumeReader.)
Public methodSetName (Inherited from SoBase.)
Public methodSetOutputDataType

Sets the output data type.

(Inherited from SoVolumeReader.)
Public methodSetRectilinearCoordinates

Sets rectilinear coordinates for the data set.

(Inherited from SoVolumeReader.)
Public methodSetSynchronizable

Sets this to be a ScaleViz synchronizable object.

(Inherited from SoBase.)
Public methodSetToDefaults

Sets all fields in this object to their default values.

(Inherited from SoFieldContainer.)
Public methodSetUserData Obsolete.
Stores the userData (for example the filename string) in the m_data protected variable.
(Inherited from SoVolumeReader.)
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 SoBase.)
Top
Properties
  NameDescription
Public propertyDataConverted
true if the data is already organized in tiles for the LDM module. In other words, all drivers that directly support the GetTile() method should set DataConverted to true. If true, VolumeViz will use the ReadTile method and will NOT call GetSubSlice().
(Inherited from SoVolumeReader.)
Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Public propertyIsRGBA

Returns true if the data set contains RGBA color values.

(Inherited from SoVolumeReader.)
Public propertyIsThreadSafe

Return true as this reader is thread safe.

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

LDM is a format for storing hierarchical multi-resolution volume data, defined by VSG. VolumeViz includes a utility program that can convert other formats (supported by VolumeViz) into this format. Preprocessing volume data into this format provides the maximum benefits from the VolumeViz large data management (LDM) features.

The default VolumeViz LDM file format is based on an octree topology. The data is stored in tiles of different subsampling resolution.

The first tile in the file represents the entire volume at its lowest resolution and corresponds to the root of the octree. The next 8 tiles represent octants of the entire volume at a lower subsample step. There is another set of 8 tiles for each of these tiles, and so on, until reaching tiles of full resolution.

The tile index starts at 0 for the root and increments linearly into the octree (1 to 8 for octree children, 9 to 16 for children of tile 1, and so on).

The data of a tile is accessed with the OIV.LDM.Readers.SoLDMReader.ReadTile(System.Int32, OIV.Inventor.SbBox3i32) function by passing an index and allocated buffer.

See Also