Class: Floorplanner::XML::Item

Inherits:
Object
  • Object
show all
Includes:
ROXML
Defined in:
lib/floorplanner/xml.rb

Instance Method Summary collapse

Instance Method Details

#mirroredObject



91
92
93
# File 'lib/floorplanner/xml.rb', line 91

def mirrored
  @mirrored ||= Floorplanner::XML.parse_vector(mirrored_str)
end

#positionObject



83
84
85
# File 'lib/floorplanner/xml.rb', line 83

def position
  @position ||= Floorplanner::XML.parse_point(points)
end

#rotationObject



87
88
89
# File 'lib/floorplanner/xml.rb', line 87

def rotation
  @rotation ||= Floorplanner::XML.parse_rotation(rotation_str)
end

#sizeObject



79
80
81
# File 'lib/floorplanner/xml.rb', line 79

def size
  @scale ||= Floorplanner::XML.parse_vector(size_str)
end

#typeObject



75
76
77
# File 'lib/floorplanner/xml.rb', line 75

def type
  type_str.to_sym
end