Class: Sketchup::CRSLocation
| Relationships | |
| Inherits: | Object |
Overview
The CRSLocation class contains information that maps the SketchUp model into a projection coordinate system.
Constant Summary
-
FEET =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/CRSLocation.rb', line 12
Constants
nil -
METERS =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/CRSLocation.rb', line 14
Stub value.
nil -
US_SURVEY_FEET =
# File 'lib/sketchup-api-stubs/stubs/Sketchup/CRSLocation.rb', line 16
Stub value.
nil
Class Method Summary
-
.new ⇒ Sketchup::CRSLocation
constructor
Creates a
CRSLocationobject.
Instance Attribute Summary
-
#calibration_file_name ⇒ String?
rw
The #calibration_file_name method is used to retrieve the name of the calibration file used in the construction of the
CRSLocation. -
#calibration_file_name=(calibration_file_name)
rw
The #calibration_file_name= method is used to set the name of the calibration file used in the construction of the
CRSLocation. -
#description ⇒ String?
rw
The #description method is used to retrieve the description of the
CRSLocation. -
#description=(description)
rw
The #description= method is used to set the description of the
CRSLocation. -
#eastings ⇒ Float
rw
The #eastings method is used to retrieve the eastings of the
CRSLocation. -
#eastings=(eastings) ⇒ Float
rw
The #eastings= method is used to set the eastings of the
CRSLocation. -
#geodetic_datum ⇒ String?
rw
The #geodetic_datum method is used to retrieve the name of the geodetic datum of the
CRSLocation. -
#geodetic_datum=(geodetic_datum)
rw
The #geodetic_datum= method is used to set the name of the geodetic datum of the
CRSLocation. -
#height ⇒ Float
rw
The #height method is used to retrieve the height of the
CRSLocation. -
#height=(height) ⇒ Float
rw
The #height= method is used to set the height of the
CRSLocation. -
#map_projection ⇒ String?
rw
The #map_projection method is used to retrieve the name of the map projection of the
CRSLocation. -
#map_projection=(map_projection)
rw
The #map_projection= method is used to set the name of the map projection of the
CRSLocation. -
#map_unit ⇒ Sketchup::CRSMapUnit?
rw
The #map_unit method is used to retrieve the map unit of the
CRSLocation. -
#map_unit=(map_unit)
rw
The #map_unit= method is used to set the map unit of the
CRSLocation. -
#map_zone ⇒ String?
rw
The #map_zone method is used to retrieve the name of the map zone of the
CRSLocation. -
#map_zone=(map_zone)
rw
The #map_zone= method is used to set the name of the map zone of the
CRSLocation. -
#name ⇒ String
rw
The #name method is used to retrieve the name of the
CRSLocation. -
#name=(name)
rw
The #name= method is used to set the name of the
CRSLocation. -
#northings ⇒ Float
rw
The #northings method is used to retrieve the northings of the
CRSLocation. -
#northings=(northings) ⇒ Float
rw
The #northings= method is used to set the northings of the
CRSLocation. -
#scale ⇒ Float
rw
The #scale method is used to retrieve the scale of the
CRSLocation. -
#scale=(scale)
rw
The #scale= method is used to set the scale of the
CRSLocation. -
#tgl_id ⇒ String?
rw
The #tgl_id method is used to retrieve the TGL (Trimble Geodetic Library) ID of the
CRSLocation. -
#tgl_id=(tgl_id)
rw
The #tgl_id= method is used to set the TGL (Trimble Geodetic Library) ID of the
CRSLocation. -
#vertical_datum ⇒ String?
rw
The #vertical_datum method is used to retrieve the name of the vertical datum of the
CRSLocation. -
#vertical_datum=(vertical_datum)
rw
The #vertical_datum= method is used to set the name of the vertical datum of the
CRSLocation. -
#x_axis ⇒ Geom::Vector2d
rw
The #x_axis method is used to retrieve the x_axis of the
CRSLocation. -
#x_axis=(x_axis)
rw
The #x_axis= method is used to set the x_axis of the
CRSLocation.
Instance Method Summary
-
#==(other) ⇒ Boolean
The #== method returns whether two
CRSLocationare equal within tolerance. - #to_s ⇒ String
Constructor Details
.new ⇒ CRSLocation
.new(crslocation) ⇒ CRSLocation
CRSLocation
.new(crslocation) ⇒ CRSLocation
Creates a CRSLocation object.
Instance Attribute Details
#calibration_file_name ⇒ String? (rw)
The #calibration_file_name method is used to retrieve the name of the
calibration file used in the construction of the CRSLocation.
#calibration_file_name=(calibration_file_name) (rw)
The #calibration_file_name= method is used to set the name of the
calibration file used in the construction of the CRSLocation.
#description ⇒ String? (rw)
The #description method is used to retrieve the description of the CRSLocation.
#description=(description) (rw)
The #description= method is used to set the description of the CRSLocation.
#eastings ⇒ Float (rw)
The #eastings method is used to retrieve the eastings of the CRSLocation.
The eastings represents the offset in the "X" direction of this models origin from the origin of the coordinate system
#eastings=(eastings) ⇒ Float (rw)
The #eastings= method is used to set the eastings of the CRSLocation.
Typically #eastings, #northings and #height need to be set together to properly position the model.
#geodetic_datum ⇒ String? (rw)
The #geodetic_datum method is used to retrieve the name of the geodetic datum of the
CRSLocation.
#geodetic_datum=(geodetic_datum) (rw)
If the #name is specific enough this may be unnecessary to set.
The #geodetic_datum= method is used to set the name of the geodetic datum of the CRSLocation.
#height ⇒ Float (rw)
this is equivalent to "Orthogonal Height" from the IFC spec.
The #height method is used to retrieve the height of the CRSLocation.
The height represents the offset in the "Z" direction of this models origin from some base height.
#height=(height) ⇒ Float (rw)
The #height= method is used to set the height of the CRSLocation.
Typically #eastings, #northings and #height need to be set together to properly position the model.
#map_projection ⇒ String? (rw)
The #map_projection method is used to retrieve the name of the map projection of the
CRSLocation.
#map_projection=(map_projection) (rw)
If the #name is specific enough this may be unnecessary to set.
The #map_projection= method is used to set the name of the map projection of the CRSLocation.
#map_unit ⇒ Sketchup::CRSMapUnit? (rw)
If there is no map unit defined, meters can be assumed.
The #map_unit method is used to retrieve the map unit of the CRSLocation.
#map_unit=(map_unit) (rw)
The #map_unit= method is used to set the map unit of the CRSLocation.
#map_zone ⇒ String? (rw)
The #map_zone method is used to retrieve the name of the map zone of the CRSLocation.
#map_zone=(map_zone) (rw)
If the #name is specific enough this may be unnecessary to set.
The #map_zone= method is used to set the name of the map zone of the CRSLocation.
#name ⇒ String (rw)
The #name method is used to retrieve the name of the CRSLocation.
#name=(name) (rw)
The #name= method is used to set the name of the CRSLocation.
For the best interoperability with other BIM and GIS software this should follow the IFC standard.
#northings ⇒ Float (rw)
The #northings method is used to retrieve the northings of the CRSLocation.
The northings represents the offset in the "Y" direction of this models origin from the origin of the coordinate system
#northings=(northings) ⇒ Float (rw)
The #northings= method is used to set the northings of the CRSLocation.
Typically #eastings, #northings and #height need to be set together to properly position the model.
#scale ⇒ Float (rw)
The #scale and #map_unit properties are related.
The #scale method is used to retrieve the scale of the CRSLocation.
The scale represents the ratio between the ::Sketchup modelling units (inches) and the
modelling units of the coordinate system.
For example, if the CRS is in meters, the scale would be 1.m
#scale=(scale) (rw)
When calling this method also considering calling #map_unit=
The #scale= method is used to set the scale of the CRSLocation.
#tgl_id ⇒ String? (rw)
The #tgl_id method is used to retrieve the TGL (Trimble Geodetic Library) ID of the
CRSLocation.
This ID encodes all of the information about the CRS in a compact encoded string.
#tgl_id=(tgl_id) (rw)
This is currently a mandatory field when setting the CRSLocation on the model.
The #tgl_id= method is used to set the TGL (Trimble Geodetic Library) ID of the CRSLocation.
#vertical_datum ⇒ String? (rw)
The #vertical_datum method is used to retrieve the name of the vertical datum of the
CRSLocation.
#vertical_datum=(vertical_datum) (rw)
If the #name is specific enough this may be unnecessary to set.
The #vertical_datum= method is used to set the name of the vertical datum of the CRSLocation.
#x_axis ⇒ Geom::Vector2d (rw)
The #x_axis method is used to retrieve the x_axis of the CRSLocation.
The x_axis represents the direction of the local "X" axis in terms of the coordinate system.
The default value is (1, 0), which means that the local orientation matches the coordinate system.
#x_axis=(x_axis) (rw)
The #x_axis= method is used to set the x_axis of the CRSLocation.
Instance Method Details
#==(other) ⇒ Boolean
The #== method returns whether two CRSLocation are equal within tolerance.
#to_s ⇒ String
The #to_s method converts a CRSLocation object to a ::String.