$_data = array(
'author' => array(),// 0=year, 1=Person
'copyright'=>array(),// 0=year, 1=string
'title'=>"",'date'=>array(),'explo-date'=>array(),'instrument'=>array(),// assoc: [<quantity>]=<description>
'infer'=>array(),// assoc: [<what>]=<boolean>
'declination'=>array(),// 0=value, 1=unit; eg. (0.0 grad)
'grid-angle'=>array(),// (<value> <units>)
'sd'=>array(),// assoc: [<quantity>]=(<value> <units>)
'cs'=>"",// <coordinate system>
'station-names'=>null,// <prefix> <postfix>; null=leave alone
'grade'=>array(),// grade <grade list>
)
[line 63]
Basic data elements.
$_extend = array()
[line 139]
Extend definitions.
Controls how extended elevation is rendered.
Contains array with associative array:
- key 'obj': value is relevant object (Shot or Station)
- key 'spec': value is specification
$_fixedStations = array()
[line 125]
Fixed stations outside of shot data
$_options = array(
'id' => "",
)
[line 44]
Centreline options (id, ...).
$_shotDef = array()
[line 107]
Centreline data definition.
This holds the data definition order of shot elements. (eg "data normal from to length bearing gradient left right up down").
array is associative:
- key 'style' is "normal", "diving", etc
- key 'order' is "left", "right", "up", etc.
Index=0 is type, subsequent items define keyword
$_shots = array()
[line 118]
Centreline shot definition.
This holds a associative array containing the shots. Each shot is represented by an individual File_Therion_Shot object. This gives access to extended data fields like flags.
$_shotTPL = null
[line 55]
Shot template for initializing units etc
Will be initialized in construtor and updated from setUnit()
$_survey = null
[line 37]
Survey context of this centreline.
$_tripStack = array()
[line 92]
Trips Stack to store date, explo-date, team and explo-team in order.
Each indexed entry contains an associative array with name and value: array( [0] => array ( ['date'] => Date-Obj || array(DateObj, DateObj) ) [1] => array ( ['team'] => array(PersonObj, "role1", "roleN") ) [2] => array( ['explo-date'] => Date-Obj || array(DateObj, DateObj) ) [3] => array ( ['explo-team'] => PersonObj ) [n] => array (...)
__construct (Constructor) [line 149]
File_Therion_Centreline __construct(
[array
$options = array()])
|
|
Create a new therion centreline object.
Parameters:
addDate [line 779]
Set survey date.
If a an array with exactly two Date objects is given, this will be threaten as time interval.
Parameters:
addExploDate [line 811]
void addExploDate(
File_Therion_Date
$date)
|
|
Set exploration date.
Parameters:
addExploTeam [line 726]
void addExploTeam(
File_Therion_Person
$person)
|
|
Add a team member which explored.
Parameters:
addFixedStation [line 949]
Add a fixed station definition.
Note that the usual way to go is, to call File_Therion_Station::setFix() on a existing station from one of the associated centreline shots.
If a station object with the name exists, that station will be fixed. Otherwise the station will be added as uncorrelated to shot data.
Example:
$station->setComment("Small rabbit hole left of tree");
$station->setFix(1, 2, 3);
Parameters:
addShot [line 1106]
Add a survey shot to this centreline.
If the centreline has an active station-names setting, the stations pre- and postfix (see setStationNames()) will be updated at the added shot stations with the current centreline setting.
This will also update the survey context of the shots from- and to-station with the survey context of the centreline; as a given station could only be part of one centreline.
The shots units declarations will be updated using the current default units settings of the centreline (see setUnit()), but only if the shot does not already have a more specific units setting.
You need to use File_Therion_Station::addEquate() when you want to set stations equal.
Parameters:
addTeam [line 655]
void addTeam(
File_Therion_Person
$person, [string|array
$roles = array()])
|
|
Add a surveying team member.
Parameters:
applyStationNames [line 1213]
void applyStationNames(
)
|
|
Apply station-names to all stations of shots from this centreline.
This applies the individual station prefix/postfix setting of all stations from all shots of this centreline. This may be handy when you want to avoid station-name commands in generated output or want fully qualified station names everywhere.
Be aware that this will overwrite the station names and resets the prefix/postfix setting. If you just want to enforce a given prefix/postfix softly, use updateShotStationNames() instead.
You also could call updateShotStationNames() prior calling applyStationNames() to enforce homogenous fully qualified station names.
The centrelines prefix/postfix setting will be untouched after this operation. Reset it manually if you don't want that further added stations receive the current prefix/postfix setting (see setStationNames()).
clearDate [line 787]
clearExploDate [line 819]
Remove all survey exploration dates.
clearExploTeam [line 751]
Remove all associated exploring team members.
clearExtends [line 1079]
Clear all extend definitions of centreline.
clearFixedStations [line 979]
void clearFixedStations(
)
|
|
Remove associated fixed stations.
clearShots [line 1184]
Remove all associated shots from this centreline.
clearTeam [line 685]
Remove all associated team members.
count [line 1338]
Count number of shots of this centreline (SPL Countable).
getAuthor [line 1327]
getCoordinateSystem [line 1285]
string getCoordinateSystem(
)
|
|
Returns the coordinate system used for fixing stations.
getCopyright [line 1306]
getDate [line 765]
Get survey date(s).
When no date is set, NULL will be returned. If one date is set, a date object is returned. Otherwise an array containing all date objects is returned.
getDeclination [line 554]
null|array getDeclination(
)
|
|
Get declination of this centreline.
returns null in case declination was not set.
getExploDate [line 801]
Get exploration date.
When no date is set, NULL will be returned. If one date is set, a date object is returned. Otherwise an array containing all date objects is returned.
getExploTeam [line 736]
Get all exploring team members.
getExtends [line 1071]
Get extend definitions of centreline.
Returns array with associative array:
- key 'obj': value is relevant object (Shot or Station)
- key 'spec': value is specification
getFixedStations [line 992]
array getFixedStations(
)
|
|
Get existing fixed station objects associated outside of shot data.
Associated stations (see addFixedStation()) will be tested so only currently fixed stations will be returned.
getGrade [line 1756]
Get grade definition(s) of this centreline.
getShots [line 1138]
array getShots(
[string
$fromStation = null], [
$toStation = null])
|
|
Get all shots of this centreline.
Parameters:
getStationNames [line 875]
null|array: getStationNames(
)
|
|
Get station-names (pre-/postfix).
When no station-names setting is in effect, null is returned.
getStations [line 891]
Get all station objects.
You may query for a station name in which case either the station is returned or throws an OutOfBoundsException when not found. Use the full stations name when station-names is in effect.
Parameters:
getSurveyContext [line 1660]
Get survey context of this equate.
This returns the survey context of this equate for name resolution.
getTeam [line 670]
Get all surveying team members.
getTeamRoles [line 699]
array getTeamRoles(
File_Therion_Person
$person)
|
|
Get surveying roles of a team member.
Note that exploring team members have no roles.
Parameters:
getUnit [line 1693]
Get current default unit for shots.
See setUnit() for details.
Parameters:
parse [line 167]
Parses given Therion_Line-objects into internal data structures.
Parameters:
setAuthor [line 1317]
void setAuthor(
int
$year, string
$text)
|
|
Sets author remark.
Parameters:
setCoordinateSystem [line 1275]
void setCoordinateSystem(
string
$cs)
|
|
Sets the coordinate system that is used for fixing stations.
Fixing stations coordinates is only meaningful defining a coordinate system for the coordinates given.
Parameters:
setCopyright [line 1296]
void setCopyright(
int
$year, string
$text)
|
|
Sets copyright remark.
Parameters:
setDeclination [line 538]
void setDeclination(
float
$decl, [string
$unit = "degrees"])
|
|
Set declination of this centreline.
Wehn $decl is set to NULL, an existing declination is erased.
Parameters:
setExtend [line 1026]
Modify extend definition of centreline.
This controls how the centreline extended elevation will be rendered.
$spec may be one of the following:
- "normal"/"reverse"
- "left"/"right"
- "vertical"
- "start"
- "ignore"
- "hide"
$stationOrShot is a Station or Shot object. If an extend command for a given object already exists, its $spec will be updated, otherwise added.
Parameters:
setGrade [line 1713]
Set grade(s) applying to this centreline.
When $grade is a string, a new empty internal Grade object will be created implicitely. use this to reference grade names already built into therion. When passing an array, you can either pass Grade objects or strings to reference the grade definition names. To delete all grade definitions from the centreline, use NULL as $grade (the empty string works too).
Parameters:
setStationNames [line 849]
setSurveyContext [line 1642]
Set local survey context of this centreline.
The survey context will be passed to newly added stations and shots. All already present shot stations context will be updated.
Parameters:
setUnit [line 1678]
Set default unit for shots.
The unit will be used to initialize all newly added shots, if the corresponding unit of that shot is not set so far. If the new shot to be added already has an associated unit, that will take precedence. If you want to change that shot, you need to convert the shot ({@see File_Therion_Shot} for details).
Parameters:
stripStationNames [line 1234]
void stripStationNames(
)
|
|
Strip station-names from all stations of shots from this centreline.
This strips the individual station prefix/postfix setting of all stations from all shots of this centreline.
You also could call updateShotStationNames() prior calling applyStationNames() to enforce homogenous station-names settings throughout all shots.
toLines [line 1354]
Generate line content from this object.
When no shot of this centerline bears LRUD information, LRUD fields will be ommitted. To produce explicite LRUD output, you may assign a shot with missing data the explicit missing-data sign "-" as LRUD information.
updateShotStationNames [line 1257]
void updateShotStationNames(
)
|
|
Update station-names setting in all shots of this centreline.
This will overwrite the current prefix/postfix setting of all shot stations in this centreline using File_Therion_Station::setStationNames() on each station. The original name of the stations remain intact.
This can be useful to correct the station prefix/postfix to a common centreline wide setting. Use applyStationNames() to permanently apply the setting.