SoLDMReaderGetDataChar Method |
Gets the characteristics (file header) of the data volume.
Namespace: OIV.LDM.ReadersAssembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax public override SoVolumeReaderReadErrors GetDataChar(
out SbBox3f size,
out SoDataSetDataTypes type,
out SbVec3i32 dim
)
Public Overrides Function GetDataChar (
<OutAttribute> ByRef size As SbBox3f,
<OutAttribute> ByRef type As SoDataSetDataTypes,
<OutAttribute> ByRef dim As SbVec3i32
) As SoVolumeReaderReadErrors
public:
virtual SoVolumeReaderReadErrors GetDataChar(
[OutAttribute] SbBox3f% size,
[OutAttribute] SoDataSetDataTypes% type,
[OutAttribute] SbVec3i32% dim
) override
abstract GetDataChar :
size : SbBox3f byref *
type : SoDataSetDataTypes byref *
dim : SbVec3i32 byref -> SoVolumeReaderReadErrors
override GetDataChar :
size : SbBox3f byref *
type : SoDataSetDataTypes byref *
dim : SbVec3i32 byref -> SoVolumeReaderReadErrors
Parameters
- size
- Type: OIV.InventorSbBox3f
- type
- Type: OIV.LDM.NodesSoDataSetDataTypes
- dim
- Type: OIV.InventorSbVec3i32
Return Value
Type:
SoVolumeReaderReadErrorsRemarks See SoDataSet.setVolumeData().
You can use the convenience method OIV.LDM.Readers.SoVolumeReader.SetFilename(System.String) to specify the file location, in which case you will not have to open the file yourself. Then you can use the convenience method getBuffer() to read the header in order to get the requested information.
NOTE: We strongly recommend that readers implement this version of OIV.LDM.Readers.SoLDMReader.GetDataChar(OIV.Inventor.SbBox3f@, OIV.LDM.Nodes.SoDataSet.DataTypes@, OIV.Inventor.SbVec3i32@), introduced in VolumeViz 5.1, because it uses OIV.Inventor.SbVec3i32 for the volume dimension.
See Also