__construct (Constructor) [line 111]
File_Therion_Station __construct(
string
$station)
|
|
Create a new therion station object.
Parameters:
addEquate [line 688]
Add equated station.
This defines that the local station is equal to the passed one. You may also pass an array of Station objects.
A backlink will be established automatically if the equated station already links to this station (the added station will also equate to this station at hand).
Parameters:
applyStationNames [line 650]
void applyStationNames(
)
|
|
Apply prefix/postfix setting permanently.
This will apply the current station-names setting to the name and reset the setting afterwards. The Stations name is then the prefixed/postfixed one with emtpy prefix/postfix setting.
Usually calling getName(true) is the better alternative because it leaves the prefix/postfix and original name intact.
clearEquates [line 754]
Removes all equated stations.
You may optionally select a station to clear by providing the station object. Other stations will be still equated.
The referenced stations backlink will be cleared automatically.
Parameters:
clearFix [line 490]
Removes the fix-data for this station.
The method will silently do nothing if there was no fix so far.
getAllFlags [line 385]
Get all active station flags.
This returns an associative array of all flags that have set values.
getComment [line 189]
Get comment of this station.
getEquates [line 739]
Returns equated stations.
getFix [line 463]
Gets the fix-data for this station.
If no such data is associated for this station, an empty array will be returned.
Content is an associative array; the keys are 'coords', 'std' and 'cs':
- the value of 'coords' is coordinates array(x,y,z), see setFix()
- the value of 'std' is standard deviation for the coordinate values.
if no standards deviation was supplied, NULL values are returned.
The coordinates are relative to a specified coordinate system that will usually get set at the centreline level. Without centreline context linked to a coordinate system, fixing stations is not meaningful. Please also look at the therion and survex manual.
getFlag [line 364]
bool|string|array getFlag(
string
$flag, [boolean
$null = false])
|
|
Get a station flag.
Custom attribute flags (flag 'attr') are returned as associative array holding the attrs name and value.
When the flag is not set explicitely, false is returned; this can be switched to NULL return with $null param set to true. In this case the return is false only if flag is explicitely negated and null if it is not explicitely set; true otherwise.
Parameters:
getName [line 158]
string getName(
[boolean
$applyNames = true])
|
|
Get name of this station.
If the station has a set prefix/postfix, this will be applied, unless the $applyNames parameter is set to false.
If the station is a anonymous one (original name is dash or dot), the prefix/postfix will always be ommitted. Please bear in mind that if you manually set a prefix/postfix as part of the stations raw name, you need to handle that yourself!
Parameters:
getStationNames [line 635]
array: getStationNames(
)
|
|
Get station-names (pre-/postfix).
getSurveyContext [line 594]
Get survey context of this station.
This returns the survey this station is assumed to be a local part of.
isFixed [line 480]
Tell if this station has defined fixes.
parse [line 203]
Parse Therion_Line into station object.
Parameters:
setComment [line 175]
void setComment(
string
$comment)
|
|
Set Comment of this station.
Parameters:
setFix [line 425]
void setFix(
float
$x, float
$y, float
$z, [float
$stdX = null], [float
$stdY = null], [float
$stdZ = null])
|
|
Set fixed surface coordinates for this station.
The coordinates are relative to a specified coordinate system that will usually get set at the centreline level. Without centreline context, fixing stations is not meaningful. Please also look at the therion manual.
Latitude and longtitude in format nn°nn'nn.nn" is autoconverted to therions format (nn:nn:nn.nn). getFix() will return strings instead of floats then!
Parameters:
setFlag [line 314]
void setFlag(
string
$flag, [boolean|string|array
$value = true])
|
|
Set station flag.
The flag value is expected as following:
- normal flags: TRUE or FALSE
- flag 'explored': the value is expected to be string (eg "100m" or so)
- flag 'attr': cutsom flag; value is array(customflag => value)
Parameters:
setName [line 126]
void setName(
string
$name)
|
|
Set Name/ID of this station.
Station name is a therion keyword and as such may only contain alphanumeric characters and additionally ‘_’ and ‘-’.
Parameters:
setStationNames [line 612]
void setStationNames(
string
$prefix, string
$postfix)
|
|
Set prefix/postfix of this station.
This is usually set automatically in centreline context. You can use this to adjust station prefix/postfix after updates from the centreline or to have such data without context.
When null is supplied, the setting will be left untouched.
Parameters:
setSurveyContext [line 582]
Set local survey context of this station.
This is important for name resolution because there may be more stations named the same in several subsurveys.
The context of the station will be automatically set when the station is added to a shot which is part of a centreline.
Parameters:
stripStationNames [line 667]
void stripStationNames(
)
|
|
Strip prefix/postfix setting from name.
This will remove the currently set station-names from the name The Stations name is then the non-prefixed/postfixed one with untouched prefix/postfix setting.
toEquateString [line 826]
Return equate command as string.
This creates an "equate"-command string with station references as viewed from the stations local context.
When no stations are equated, an empty string is returned. Otherwise the command "equate" followed by station string references will be returned.
Stations whose reference cannot be resolved will be silently suppressed.
If an alternative survey context is provided, this will be used instead of the stations context. Be aware that this may yield strange results, and be sure to pass parent surveys of the local context.
Parameters:
toFixString [line 501]
Generate "fix ..." string for this station.
toStationString [line 546]
string toStationString(
)
|
|
Generate "station ..." string for this station.