|
SketchUp C API
|
A Coordinate Reference System (CRS) location object. More...
#include <SketchUpAPI/model/crslocation.h>
Related Functions | |
(Note that these are not member functions.) | |
| enum SUResult | SUCRSLocationCreate (SUCRSLocationRef *location_ref) |
| Creates an empty CRS location struct. More... | |
| enum SUResult | SUCRSLocationRelease (SUCRSLocationRef *location_ref) |
| Releases a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetEastings (SUCRSLocationRef location_ref, double value) |
| Sets the eastings value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetEastings (SUCRSLocationRef location_ref, double *value) |
| Gets the eastings value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetNorthings (SUCRSLocationRef location_ref, double value) |
| Sets the northings value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetNorthings (SUCRSLocationRef location_ref, double *value) |
| Gets the northings value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetHeight (SUCRSLocationRef location_ref, double value) |
| Sets the orthogonal height value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetHeight (SUCRSLocationRef location_ref, double *value) |
| Gets the orthogonal height value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetXAxis (SUCRSLocationRef location_ref, const struct SUVector2D *value) |
| Sets the x-axis of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetXAxis (SUCRSLocationRef location_ref, struct SUVector2D *value) |
| Gets the x-axis of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetScale (SUCRSLocationRef location_ref, double value) |
| Sets the scale value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetScale (SUCRSLocationRef location_ref, double *value) |
| Gets the scale value of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetName (SUCRSLocationRef location_ref, const char *value) |
| Sets the CRS name of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetName (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the CRS name of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetDescription (SUCRSLocationRef location_ref, const char *value) |
| Sets the description of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetDescription (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the description of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetGeodeticDatum (SUCRSLocationRef location_ref, const char *value) |
| Sets the geodetic datum of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetGeodeticDatum (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the geodetic datum of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetVerticalDatum (SUCRSLocationRef location_ref, const char *value) |
| Sets the vertical datum of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetVerticalDatum (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the vertical datum of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetMapProjection (SUCRSLocationRef location_ref, const char *value) |
| Sets the map projection of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetMapProjection (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the map projection of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetMapZone (SUCRSLocationRef location_ref, const char *value) |
| Sets the map zone of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetMapZone (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the map zone of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetMapUnit (SUCRSLocationRef location_ref, const char *name, double conversion) |
| Sets the map unit of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetMapUnit (SUCRSLocationRef location_ref, SUStringRef *name, double *conversion) |
| Gets the map unit of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetTGLId (SUCRSLocationRef location_ref, const char *value) |
| Sets the TGL identifier of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetTGLId (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the TGL identifier of a CRS location object. More... | |
| enum SUResult | SUCRSLocationSetCalibrationFileName (SUCRSLocationRef location_ref, const char *value) |
| Sets the calibration file name of a CRS location object. More... | |
| enum SUResult | SUCRSLocationGetCalibrationFileName (SUCRSLocationRef location_ref, SUStringRef *value) |
| Gets the calibration file name of a CRS location object. More... | |
A Coordinate Reference System (CRS) location object.
Stores all data properties used to represent a CRS location. Not all properties are mandatory and data validation does not happen until the object is applied to a model via SUModelSetCRSLocationCopy(). This object is not associated with a model but rather a model's CRS location data can be copied to or from it.
|
related |
Creates an empty CRS location struct.
Constructs a CRS location object and leaves each individual property set to a default value.
You must use SUCRSLocationRelease() on this CRS location object to free its memory.
| [out] | location_ref | The CRS location object to be created. |
location_ref is NULLlocation_ref does not refer to an invalid object
|
related |
Gets the calibration file name of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The calibration file name string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the description of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The description string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the eastings value of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The eastings value retrieved (meters). |
location_ref is not a valid objectvalue is NULL
|
related |
Gets the geodetic datum of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The geodetic datum string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the orthogonal height value of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The height value retrieved (meters). |
location_ref is not a valid objectvalue is NULL
|
related |
Gets the map projection of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The map projection string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the map unit of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | name | The map unit name string retrieved. |
| [out] | conversion | The map unit conversion factor to meters retrieved. |
location_ref is not a valid objectname or conversion is NULLname is not a valid string object
|
related |
Gets the map zone of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The map zone string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the CRS name of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The CRS name string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the northings value of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The northings value retrieved (meters). |
location_ref is not a valid objectvalue is NULL
|
related |
Gets the scale value of a CRS location object.
The scale converts CRS units to SketchUp's internal units (inches).
| [in] | location_ref | The CRS location object. |
| [out] | value | The scale value retrieved. |
location_ref is not a valid objectvalue is NULL
|
related |
Gets the TGL identifier of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The TGL identifier string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the vertical datum of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The vertical datum string retrieved. |
location_ref is not a valid objectvalue is NULLvalue is not a valid string object
|
related |
Gets the x-axis of a CRS location object.
| [in] | location_ref | The CRS location object. |
| [out] | value | The x-axis unit vector retrieved. |
location_ref is not a valid objectvalue is NULL
|
related |
Releases a CRS location object.
| [in,out] | location_ref | The CRS location object to be released. |
location_ref is NULLlocation_ref does not refer to a valid object
|
related |
Sets the calibration file name of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The calibration file name string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the description of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The description string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the eastings value of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The eastings value (meters). |
location_ref is not a valid object
|
related |
Sets the geodetic datum of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The geodetic datum string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the orthogonal height value of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The height value (meters). |
location_ref is not a valid object
|
related |
Sets the map projection of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The map projection string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the map unit of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | name | The map unit name string. |
| [in] | conversion | The map unit conversion factor to meters. Must be greater than zero. |
location_ref is not a valid objectname is NULLconversion is not greater than zero
|
related |
Sets the map zone of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The map zone string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the CRS name of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The CRS name string. Must not be empty. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the northings value of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The northings value (meters). |
location_ref is not a valid object
|
related |
Sets the scale value of a CRS location object.
The scale converts CRS units to SketchUp's internal units (inches).
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The scale value. Must be greater than zero. |
location_ref is not a valid objectvalue is not greater than zero
|
related |
Sets the TGL identifier of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The TGL identifier string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the vertical datum of a CRS location object.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The vertical datum string. |
location_ref is not a valid objectvalue is NULL
|
related |
Sets the x-axis of a CRS location object.
The x-axis is expressed as a 2D unit vector and defines the orientation of the CRS axes relative to the model axes. The x and y components correspond to IfcMapConversion::XAxisAbscissa and IfcMapConversion::XAxisOrdinate respectively.
| [in,out] | location_ref | The CRS location object. |
| [in] | value | The x-axis unit vector. |
location_ref is not a valid objectvalue is NULLvalue is not a unit vector
1.8.3.1