Class TLcdDGNModelDescriptor
- All Implemented Interfaces:
ILcdDataModelDescriptor
,ILcdModelDescriptor
,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.- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdDGNModelDescriptor
(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, 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, 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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the data model that describes the elements of the model.Returns the color table associated with the DGN model.Returns the set of level filters.Returns the level symbology associated with the DGN model.getDGNReferenceFile
(int aIndex) Returns the specified reference file associated with the DGN modelint
Returns the number of reference files associated with the DGN model.getDGNTagSet
(int aIndex) Returns the specified tag set associated with the DGN model.getDGNTagSetByNumber
(int aTagSetNumber) Finds a tag set based on its identification number.int
Returns the number of tag sets associated with the DGN model.Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor.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
Returns the number of positional units per master unit.boolean
is3D()
Returns whether the DGN model is 3D.boolean
Returns whether the construction elements should be shown in the view.boolean
Returns whether the dimension elements should be shown in the view.boolean
Returns whether the element fills should be shown in the view.boolean
Returns whether the level symbology should be shown in the view.boolean
Returns whether the line styles should be applied in the view.boolean
Returns whether the line weights should be applied in the view.boolean
Returns whether the patterns should be applied in the view.boolean
Returns whether the text elements should be shown in the view.Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, getTypeName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName, getTypeName
-
Constructor Details
-
TLcdDGNModelDescriptor
public TLcdDGNModelDescriptor(String aSourceName, String aDisplayName, TLcdDGNLevelSymbology aDGNLevelSymbology, TLcdDGNColorTable aDGNColorTable) Creates a new TLcdDGNModelDescriptor with the given properties. -
TLcdDGNModelDescriptor
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) Creates a new TLcdDGNModelDescriptor with the given properties. -
TLcdDGNModelDescriptor
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) Creates a new TLcdDGNModelDescriptor with the given properties.
-
-
Method Details
-
getDGNLevelFilters
Returns the set of level filters.- Returns:
- The set of level filters.
-
getDGNLevelSymbology
Returns the level symbology associated with the DGN model. -
getDGNReferenceFileCount
public int getDGNReferenceFileCount()Returns the number of reference files associated with the DGN model. -
getDGNReferenceFile
Returns the specified reference file associated with the DGN model -
getDGNTagSetCount
public int getDGNTagSetCount()Returns the number of tag sets associated with the DGN model. -
getDGNTagSet
Returns the specified tag set associated with the DGN model. -
getDGNTagSetByNumber
Finds a tag set based on its identification number.- Parameters:
aTagSetNumber
- a tag set number.- Returns:
- the specified tag set associated with the DGN model this
descriptor is describing, or
null
if it doesn't exist.
-
getDGNColorTable
Returns the color table associated with the DGN model. -
is3D
public boolean is3D()Returns whether the DGN model is 3D. -
isViewLevelSymbologyOn
public boolean isViewLevelSymbologyOn()Returns whether the level symbology should be shown in the view. -
isViewLineStylesOn
public boolean isViewLineStylesOn()Returns whether the line styles should be applied in the view. -
isViewLineWeightsOn
public boolean isViewLineWeightsOn()Returns whether the line weights should be applied in the view. -
isViewFillOn
public boolean isViewFillOn()Returns whether the element fills should be shown in the view. -
isViewPatternsOn
public boolean isViewPatternsOn()Returns whether the patterns should be applied in the view. -
isViewConstructionsOn
public boolean isViewConstructionsOn()Returns whether the construction elements should be shown in the view. -
isViewDimensionsOn
public boolean isViewDimensionsOn()Returns whether the dimension elements should be shown in the view. -
isViewTextOn
public boolean isViewTextOn()Returns whether the text elements should be shown in the view. -
getPositionalUnitsPerMasterUnit
public int getPositionalUnitsPerMasterUnit()Returns the number of positional units per master unit. -
getDataModel
Description copied from interface: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)
).- Specified by:
getDataModel
in interfaceILcdDataModelDescriptor
- Returns:
- the data model that describes the elements of the model
-
getModelElementTypes
Description copied from interface: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() )
.- Specified by:
getModelElementTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be elements in the model associated with this descriptor
-
getModelTypes
Description copied from interface: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.- Specified by:
getModelTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-