Class TLcdDGNModelDescriptor

java.lang.Object
com.luciad.model.TLcdModelDescriptor
com.luciad.format.dgn.TLcdDGNModelDescriptor
All Implemented Interfaces:
ILcdDataModelDescriptor, ILcdModelDescriptor, Serializable

public class TLcdDGNModelDescriptor extends TLcdModelDescriptor implements ILcdDataModelDescriptor, Serializable
This 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 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

      public ALcdDGNLevelFilter[] getDGNLevelFilters()
      Returns the set of level filters.
      Returns:
      The set of level filters.
    • getDGNLevelSymbology

      public TLcdDGNLevelSymbology 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

      public TLcdDGNReferenceFile getDGNReferenceFile(int aIndex)
      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

      public TLcdDGNTagSet getDGNTagSet(int aIndex)
      Returns the specified tag set associated with the DGN model.
    • getDGNTagSetByNumber

      public TLcdDGNTagSet getDGNTagSetByNumber(int aTagSetNumber)
      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

      public TLcdDGNColorTable 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

      public TLcdDataModel 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 interface ILcdDataModelDescriptor
      Returns:
      the data model that describes the elements of the model
    • getModelElementTypes

      public Set<TLcdDataType> 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 interface ILcdDataModelDescriptor
      Returns:
      a set containing all the data types of which instances can be elements in the model associated with this descriptor
    • getModelTypes

      public Set<TLcdDataType> 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 interface ILcdDataModelDescriptor
      Returns:
      a set containing all the data types of which instances can be used in the model associated with this descriptor