class Microstation::Text
Constants
- Text
- X
Public Instance Methods
=~(reg)
click to toggle source
# File lib/microstation/text.rb, line 20 def =~(reg) @original =~ reg end
bounds()
click to toggle source
# File lib/microstation/text.rb, line 40 def bounds binding.pry rotation = ole_obj.Rotation inverse_rotation = app_ole_obj.Matrix3dInverse(rotation) rescue pry transform = app_ole_obj.Transform3dFromMatrix3dandFixedPoint3d(app_ole_obj.Matrix3dInverse(rotation), ole_obj.origin) ole_obj.transform transform pts = [] 0.upto(4) do |i| points[i] = ole_obj.Boundary.Low end points[2] = self.Boundary.High points[1].X = points[2].x points[3].y = points[2].Y end
method_missing(meth,*args, &block)
click to toggle source
# File lib/microstation/text.rb, line 57 def method_missing(meth,*args, &block) if meth =~ /^[A-Z]/ ole_obj.send(meth,*args) else dup = @original.dup result = dup.send(meth,*args, &block) update(result) result end end
read_ole(ole)
click to toggle source
# File lib/microstation/text.rb, line 8 def read_ole(ole) ole_obj.Text end
to_regexp()
click to toggle source
# File lib/microstation/text.rb, line 16 def to_regexp Regexp.new(read_ole.to_s) end
to_s()
click to toggle source
def text_node?
false
end
# File lib/microstation/text.rb, line 36 def to_s original.to_s end
write_ole(text)
click to toggle source
# File lib/microstation/text.rb, line 12 def write_ole(text) ole_obj.Text = text end