Module: Microstation::Scan::Type

Included in:
Criteria
Defined in:
lib/microstation/scan/type.rb

Instance Method Summary collapse

Instance Method Details

#include_cell_headerObject



85
86
87
# File 'lib/microstation/scan/type.rb', line 85

def include_cell_header
  include_type(::Microstation::MSD::MsdElementTypeCellHeader)
end

#include_cellsObject



93
94
95
96
# File 'lib/microstation/scan/type.rb', line 93

def include_cells
  include_cell_header
  include_shared_cell
end

#include_dimensionsObject



98
99
100
# File 'lib/microstation/scan/type.rb', line 98

def include_dimensions
  include_type(::Microstation::MSD::MsdElementTypeDimension)
end

#include_linesObject



123
124
125
# File 'lib/microstation/scan/type.rb', line 123

def include_lines
  include_type ::Microstation::MSD::MsdElementTypeLine
end

#include_shared_cellObject



89
90
91
# File 'lib/microstation/scan/type.rb', line 89

def include_shared_cell
  include_type(::Microstation::MSD::MsdElementTypeSharedCell)
end

#include_solidsObject



119
120
121
# File 'lib/microstation/scan/type.rb', line 119

def include_solids
  include_type ::Microstation::MSD::MsdElementTypeSolid
end

#include_tagsObject



106
107
108
# File 'lib/microstation/scan/type.rb', line 106

def include_tags
  include_type ::Microstation::MSD::MsdElementTypeTag
end

#include_textObject



102
103
104
# File 'lib/microstation/scan/type.rb', line 102

def include_text
  include_type(::Microstation::MSD::MsdElementTypeText)
end

#include_text_nodesObject



110
111
112
# File 'lib/microstation/scan/type.rb', line 110

def include_text_nodes
  include_type ::Microstation::MSD::MsdElementTypeTextNode
end

#include_textualObject



114
115
116
117
# File 'lib/microstation/scan/type.rb', line 114

def include_textual
  include_text
  include_text_nodes
end

#include_type(type) ⇒ Object



72
73
74
# File 'lib/microstation/scan/type.rb', line 72

def include_type(type)
  type_inclusions << type
end

#reset_ole_typesObject



68
69
70
# File 'lib/microstation/scan/type.rb', line 68

def reset_ole_types
  ole_obj.ExcludeAllTypes
end

#reset_typesObject



63
64
65
66
# File 'lib/microstation/scan/type.rb', line 63

def reset_types
  reset_ole_types
  @type_inclusions = []
end

#resolve_type_scansObject



76
77
78
79
80
81
82
83
# File 'lib/microstation/scan/type.rb', line 76

def resolve_type_scans
  return unless type_inclusions.size > 0

  reset_ole_types
  type_inclusions.each do |type|
    ole_obj.IncludeType(type)
  end
end

#type_inclusionsObject

MsdElementTypeCellLibraryHeader MsdElementTypeCellHeader MsdElementTypeLine MsdElementTypeLineString MsdElementTypeGroupData MsdElementTypeShape MsdElementTypeTextNode MsdElementTypeDigSetData MsdElementTypeDesignFileHeader MsdElementTypeLevelSymbology MsdElementTypeCurve MsdElementTypeComplexString MsdElementTypeConic MsdElementTypeComplexShape MsdElementTypeEllipse MsdElementTypeArc MsdElementTypeText MsdElementTypeSurface MsdElementTypeSolid MsdElementTypeBsplinePole MsdElementTypePointString MsdElementTypeCone MsdElementTypeBsplineSurface MsdElementTypeBsplineBoundary MsdElementTypeBsplineKnot MsdElementTypeBsplineCurve MsdElementTypeBsplineWeight MsdElementTypeDimension MsdElementTypeSharedCellDefinition MsdElementTypeSharedCell MsdElementTypeMultiLine MsdElementTypeTag MsdElementTypeDgnStoreComponent MsdElementTypeDgnStoreHeader MsdElementType44 MsdElementTypeMicroStation MsdElementTypeRasterHeader MsdElementTypeRasterComponent MsdElementTypeRasterReference MsdElementTypeRasterReferenceComponent MsdElementTypeRasterFrame MsdElementTypeTableEntry MsdElementTypeTable MsdElementTypeViewGroup MsdElementTypeView MsdElementTypeLevelMask MsdElementTypeReferenceAttachment MsdElementTypeMatrixHeader MsdElementTypeMatrixIntegerData MsdElementTypeMatrixDoubleData MsdElementTypeMeshHeader MsdElementTypeReferenceOverride MsdElementTypeNamedGroupHeader MsdElementTypeNamedGroupComponent



59
60
61
# File 'lib/microstation/scan/type.rb', line 59

def type_inclusions
  @type_inclusions ||= []
end