Class: File_Therion_Shot
Source Location: /File_Therion-0.4.1/File/Therion/Shot.php
Class representing a therion shot object.
Author(s):
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Method Detail
__construct (Constructor) [line 140]
Create a new therion shot object. The shot will be initialized with default style, data ordering and units (see $_style, $_order and $_units). If no ordering is specified, the default ordering will be used. If no units are specified, they will remain "unknown", so the system local therion defaults take precedence when generated data is compiled. You may optionally supply basic shot data using the constructors params. Please refer to the named methods for further information on expected types and formats. After creating, units, style, ordering and data can be changed/added.
Parameters:
aliasField [line 1051]
string aliasField(
string
$name)
|
|
Get alias for normalized field name.
Parameters:
getAllFlags [line 323]
Get all active shot flags. This returns an associative array of all flags.
getBackBearing [line 962]
Calculate backwards compass reading. Result=360 will be reported as 0 (with degrees).
getBackGradient [line 998]
Calculate backwards clino reading.
getBearing [line 537]
Get shot compass bearing.
getDownDimension [line 611]
float|null getDownDimension(
)
|
|
Get shot down (height to ground) dimensions. Returns either float value or NULL for explicitely (ie "-") or implicitely missing data.
getFlag [line 292]
boolean getFlag(
string
$flag)
|
|
Get a shot flag. Note that the shot is flagged implicitely as splay when one of from- or to-stations name is a dot or dash ('.', '-').
Parameters:
getFrom [line 507]
Get from (source) station.
getGradient [line 547]
getLeftDimension [line 560]
float|null getLeftDimension(
)
|
|
Get shot left dimensions. Returns either float value or NULL for explicitely (ie "-") or implicitely missing data.
getLength [line 527]
getLRUDdata [line 1112]
Get LRUD information compacted. Returns an array containing LRUD information for all directions. The array keys are the keywords 'left', 'right', 'up', 'down'. The value is either: - float, if real LRUD is there
- string "-", if explicite "missing data" was tagged or
- NULL, if no data was set so far.
This differs to the get*Dimension() methods in that you can query explicitely for "known missing-data" entries.
getOrder [line 371]
array getOrder(
[boolean
$normalize = false])
|
|
Get data definition order of this shot.
Parameters:
getOrderedData [line 1064]
Returns array with data fields ordered by current order.
getRightDimension [line 577]
float|null getRightDimension(
)
|
|
Get shot right dimensions. Returns either float value or NULL for explicitely (ie "-") or implicitely missing data.
getStyle [line 340]
Get data definition style of this shot
getTo [line 517]
Get to (targeted) station.
getUnit [line 480]
Get current unit for measurement. Returns the unit definition for this shot field. If it was unset so far, NULL will be returned, indicating that the local therion default should be used for interpreting the data.
Parameters:
getUpDimension [line 594]
float|null getUpDimension(
)
|
|
Get shot up (height to ceiling) dimensions. Returns either float value or NULL for explicitely (ie "-") or implicitely missing data.
hasSplayStation [line 1083]
boolean hasSplayStation(
)
|
|
Tell if this shot is a splay shot due to naming conventions. If the from-station or to-station are named with a dot or dash, then splay flag is assumed.
parse [line 162]
Parse string content into a shot object using ordering information.
Parameters:
reverse [line 1015]
Swap direction of measurement of this shot. This will swap the from and to stations and adjust bearing and gradient.
setBearing [line 692]
void setBearing(
float
$bearing)
|
|
Set shot compass bearing.
Parameters:
setDownDimension [line 831]
void setDownDimension(
float|string|null
$down)
|
|
Set shot down (height to ground) dimensions. Use "-" to indicate missing value or NULL to clear data.
Parameters:
setFlag [line 268]
void setFlag(
string
$flag, [boolean
$value = true])
|
|
Set shot flag.
Parameters:
setFrom [line 635]
Set from (source) station. When station name is "-" or ".", then the splay flag is set implicitely. If the passed argument is string, a new station object will be created.
Parameters:
setGradient [line 731]
void setGradient(
float
$gradient)
|
|
Set shot gradient.
Parameters:
setLeftDimension [line 768]
void setLeftDimension(
floats|tring|null
$left)
|
|
Set shot left dimensions. Use "-" to indicate missing value.
Parameters:
setLength [line 672]
void setLength(
float
$length)
|
|
Set shot length.
Parameters:
setOrder [line 390]
void setOrder(
array
$order)
|
|
Set data definition order of this shot.
Parameters:
setRightDimension [line 789]
void setRightDimension(
float|string|null
$right)
|
|
Set shot right dimensions. Use "-" to indicate missing value or NULL to clear data.
Parameters:
setStyle [line 353]
void setStyle(
string
$style)
|
|
Set data definition style of this shot
Parameters:
setTo [line 655]
Set to (targeted) station. When station name is "-" or ".", then the splay flag is set implicitely. If the passed argument is string, a new station object will be created.
Parameters:
setUnit [line 425]
Set unit for measurements of this shot.
Parameters:
setUpDimension [line 810]
void setUpDimension(
float|string|null
$up)
|
|
Set shot up (height to ceiling) dimensions. Use "-" to indicate missing value or NULL to clear data.
Parameters:
toLines [line 858]
Return formatted datafields as Therion Line in current order. If $fsn is set to true, the full station name will be reported. By default, only the unprefixed name is reported. The reason is, that toLines() is expected to be called in context of a centreline that will take care of reporting valid station-names commands prior exporting a shot.
Parameters:
toLinesDataDef [line 900]
Return formatted datadefinition as Therion Line.
toLinesUnitsDef [line 920]
Return formatted units definitions for data defintion as Therion Line(s). In default mode, only units deviating from the therion default are reported. Currently that is meters for lengths and degrees for angles. If no default unit was changed, an empty array is returned. Otherwise (or if $all was selected) Lines will be generated.
unaliasField [line 1037]
string unaliasField(
string
$alias)
|
|
Resolve field name alias to normalized name.
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:09:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|