public class TLcdDGNModelDescriptor extends TLcdModelDescriptor implements ILcdDataModelDescriptor, Serializable
ILcdModelDescriptor
describes data in Intergraph Standard
File Formats (ISFF, with the extension DGN
). These file formats
are common to Bentley's MicroStation and Intergraph's Interactive Graphics
Design System.Constructor and Description |
---|
TLcdDGNModelDescriptor(String aSourceName,
String aDisplayName,
TLcdDGNLevelSymbology aDGNLevelSymbology,
TLcdDGNColorTable aDGNColorTable)
Creates a new TLcdDGNModelDescriptor with the given properties.
|
TLcdDGNModelDescriptor(String aSourceName,
String aDisplayName,
TLcdDGNLevelSymbology aDGNLevelSymbology,
TLcdDGNColorTable aDGNColorTable,
TLcdDGNReferenceFile[] aDGNReferenceFiles,
TLcdDGNTagSet[] aDGNTagSets,
ALcdDGNLevelFilter[] aDGNLevelFilters,
boolean aIs3D,
boolean aViewLevelSymbology,
boolean aViewLineStyles,
boolean aViewLineWeights,
boolean aViewFill,
boolean aViewPatterns,
boolean aViewConstructions,
boolean aViewDimensions,
boolean aViewText,
int aPositionalUnitsPerMasterUnit)
Creates a new TLcdDGNModelDescriptor with the given properties.
|
TLcdDGNModelDescriptor(String aSourceName,
String aDisplayName,
TLcdDGNLevelSymbology aDGNLevelSymbology,
TLcdDGNColorTable aDGNColorTable,
TLcdDGNReferenceFile[] aDGNReferenceFiles,
TLcdDGNTagSet[] aDGNTagSets,
boolean aIs3D,
boolean aViewLevelSymbology,
boolean aViewLineStyles,
boolean aViewLineWeights,
boolean aViewFill,
boolean aViewPatterns,
boolean aViewConstructions,
boolean aViewDimensions,
boolean aViewText,
int aPositionalUnitsPerMasterUnit)
Creates a new TLcdDGNModelDescriptor with the given properties.
|
Modifier and Type | Method and Description |
---|---|
TLcdDataModel |
getDataModel()
Returns the data model that describes the elements of the model.
|
TLcdDGNColorTable |
getDGNColorTable()
Returns the color table associated with the DGN model.
|
ALcdDGNLevelFilter[] |
getDGNLevelFilters()
Returns the set of level filters.
|
TLcdDGNLevelSymbology |
getDGNLevelSymbology()
Returns the level symbology associated with the DGN model.
|
TLcdDGNReferenceFile |
getDGNReferenceFile(int aIndex)
Returns the specified reference file associated with the DGN model
|
int |
getDGNReferenceFileCount()
Returns the number of reference files associated with the DGN model.
|
TLcdDGNTagSet |
getDGNTagSet(int aIndex)
Returns the specified tag set associated with the DGN model.
|
TLcdDGNTagSet |
getDGNTagSetByNumber(int aTagSetNumber)
Finds a tag set based on its identification number.
|
int |
getDGNTagSetCount()
Returns the number of tag sets associated with the DGN model.
|
Set<TLcdDataType> |
getModelElementTypes()
Returns a set containing all the data types of which instances can be elements in the model
associated with this descriptor.
|
Set<TLcdDataType> |
getModelTypes()
Returns a set containing all the types of which instances can be used (including both
top-level elements and child objects) in the model associated with this descriptor.
|
int |
getPositionalUnitsPerMasterUnit()
Returns the number of positional units per master unit.
|
boolean |
is3D()
Returns whether the DGN model is 3D.
|
boolean |
isViewConstructionsOn()
Returns whether the construction elements should be shown in the view.
|
boolean |
isViewDimensionsOn()
Returns whether the dimension elements should be shown in the view.
|
boolean |
isViewFillOn()
Returns whether the element fills should be shown in the view.
|
boolean |
isViewLevelSymbologyOn()
Returns whether the level symbology should be shown in the view.
|
boolean |
isViewLineStylesOn()
Returns whether the line styles should be applied in the view.
|
boolean |
isViewLineWeightsOn()
Returns whether the line weights should be applied in the view.
|
boolean |
isViewPatternsOn()
Returns whether the patterns should be applied in the view.
|
boolean |
isViewTextOn()
Returns whether the text elements should be shown in the view.
|
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDisplayName, getSourceName, getTypeName
public TLcdDGNModelDescriptor(String aSourceName, String aDisplayName, TLcdDGNLevelSymbology aDGNLevelSymbology, TLcdDGNColorTable aDGNColorTable)
public TLcdDGNModelDescriptor(String aSourceName, String aDisplayName, TLcdDGNLevelSymbology aDGNLevelSymbology, TLcdDGNColorTable aDGNColorTable, TLcdDGNReferenceFile[] aDGNReferenceFiles, TLcdDGNTagSet[] aDGNTagSets, boolean aIs3D, boolean aViewLevelSymbology, boolean aViewLineStyles, boolean aViewLineWeights, boolean aViewFill, boolean aViewPatterns, boolean aViewConstructions, boolean aViewDimensions, boolean aViewText, int aPositionalUnitsPerMasterUnit)
public TLcdDGNModelDescriptor(String aSourceName, String aDisplayName, TLcdDGNLevelSymbology aDGNLevelSymbology, TLcdDGNColorTable aDGNColorTable, TLcdDGNReferenceFile[] aDGNReferenceFiles, TLcdDGNTagSet[] aDGNTagSets, ALcdDGNLevelFilter[] aDGNLevelFilters, boolean aIs3D, boolean aViewLevelSymbology, boolean aViewLineStyles, boolean aViewLineWeights, boolean aViewFill, boolean aViewPatterns, boolean aViewConstructions, boolean aViewDimensions, boolean aViewText, int aPositionalUnitsPerMasterUnit)
public ALcdDGNLevelFilter[] getDGNLevelFilters()
public TLcdDGNLevelSymbology getDGNLevelSymbology()
public int getDGNReferenceFileCount()
public TLcdDGNReferenceFile getDGNReferenceFile(int aIndex)
public int getDGNTagSetCount()
public TLcdDGNTagSet getDGNTagSet(int aIndex)
public TLcdDGNTagSet getDGNTagSetByNumber(int aTagSetNumber)
aTagSetNumber
- a tag set number.null
if it doesn't exist.public TLcdDGNColorTable getDGNColorTable()
public boolean is3D()
public boolean isViewLevelSymbologyOn()
public boolean isViewLineStylesOn()
public boolean isViewLineWeightsOn()
public boolean isViewFillOn()
public boolean isViewPatternsOn()
public boolean isViewConstructionsOn()
public boolean isViewDimensionsOn()
public boolean isViewTextOn()
public int getPositionalUnitsPerMasterUnit()
public TLcdDataModel getDataModel()
ILcdDataModelDescriptor
Returns the data model that describes the elements of the model. Note that not necessarily all data in the model will be of a type of this data model. Very likely, types from the dependencies of the returned data model are used as well.
In case the model accepts objects from multiple data models, an anonymous
data model that depends on all these data models should be returned
(see TLcdDataModelBuilder.createAnonymousDataModel(java.util.Collection)
).
getDataModel
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelElementTypes()
ILcdDataModelDescriptor
Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually elements in the model; but they are not required to do so.
Implementations should return null
in case they don't know
which element types are present in the model.
For each element of the model associated with this model descriptor, the following holds true :
getModelElementTypes().contains( element.getDataType() )
.
getModelElementTypes
in interface ILcdDataModelDescriptor
public Set<TLcdDataType> getModelTypes()
ILcdDataModelDescriptor
Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.
A simple and correct implementation would be to return
getDataModel().getTypes()
. Implementations are encouraged to return a subset of
this set if they can do so without spending an unreasonable amount of resources.
Implementations should return null
in case they don't know
which types are present in the model.
getModelTypes
in interface ILcdDataModelDescriptor