public class TLcdDGNModelBoundsDecoder extends Object
DGN
).
These file formats are common to Bentley's MicroStation and Intergraph's
Interactive Graphics Design System.
By default, all element levels are decoded. You can restrict the decoding to the levels you are interested in using the following methods:
By default, all element classes are decoded. You can restrict the decoding to the classes you are interested in using the following methods:
TLcdDGNModelDecoder
Constructor and Description |
---|
TLcdDGNModelBoundsDecoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeSource(String aSourceAsString) |
ILcdBounds |
decode(String aFullPathFileName) |
String |
getDefaultExtension() |
void |
resetElementClassSelection()
Resets the list of DGN element classes that is included into decoded models;
All DGN element classes will now be included in the models when decoding DGN
files.
|
void |
resetLevelSelection()
Resets the list of DGN levels that is included into decoded models.
|
void |
setElementClassSelection(int[] aElementClasses)
Sets the list of element classes that is included into decoded models.
|
void |
setLevelSelection(int[] aLevels)
Sets the list of DGN levels that is included into all decoded models.
|
public String getDefaultExtension()
public boolean canDecodeSource(String aSourceAsString)
true
if the file extension is <defaultExtension> or
<defaultExtension>.gz, <code>false</code> otherwise (<defaultExtension> is the String
returned by getDefaultExtension).public ILcdBounds decode(String aFullPathFileName) throws IOException
IOException
public void resetLevelSelection()
public void setLevelSelection(int[] aLevels)
aLevels
- the levels to be included in the decoded models.
DGN levels are numbered from 1 through 63. They don't have to be listed in
any specific order, and duplicate numbers are allowed.public void resetElementClassSelection()
public void setElementClassSelection(int[] aElementClasses)
aElementClasses
- the element classes to be included in the decoded models.
They don't have to be listed in any specific order, and duplicate entries
are allowed.
The available DGN element classes are