|
FrameIT
|
Line within 3D Space of finite length More...
Public Member Functions | |
| LineFact () | |
| LineFact (LineFact fact, Dictionary< string, string > old_to_new, FactOrganizer organizer) | |
| LineFact (string pid1, string pid2, string backendURI, FactOrganizer organizer) | |
| LineFact (string pid1, string pid2, FactOrganizer organizer) | |
| override GameObject | instantiateDisplay (GameObject prefab, Transform transform) |
| Initiates a prefab at transform e.g. by setting Label. More... | |
Static Public Member Functions | |
| static new LineFact | parseFact (Scroll.ScrollFact fact) |
| Parses Scroll.ScrollFact to actual Fact More... | |
Public Attributes | |
| float | Distance |
| Distance between AbstractLineFact.Pid1 and AbstractLineFact.Pid2 More... | |
Protected Member Functions | |
| override string | generateLabel () |
| auto-generates Label using generation variable(s) e.g. LabelId; if custom Label is set, tries to restore original generated Label without resetting _CustomLabel. If original Label is already taken, a new one will be generated. More... | |
| override bool | EquivalentWrapped (LineFact f1, LineFact f2) |
| Compares f1 against f2 . More... | |
Protected Member Functions inherited from AbstractLineFactWrappedCRTP< LineFact > | |
| AbstractLineFactWrappedCRTP () | |
| AbstractLineFactWrappedCRTP (AbstractLineFactWrappedCRTP< T > fact, Dictionary< string, string > old_to_new, FactOrganizer organizer) | |
| AbstractLineFactWrappedCRTP (string pid1, string pid2, FactOrganizer organizer) | |
| AbstractLineFactWrappedCRTP (string pid1, string pid2, string backendURI, FactOrganizer organizer) | |
| override bool | EquivalentWrapped (AbstractLineFact f1, AbstractLineFact f2) |
| Compares f1 against f2 . More... | |
| abstract bool | EquivalentWrapped (T f1, T f2) |
| CRTP step of EquivalentWrapped(AbstractLineFact, AbstractLineFact) More... | |
Private Member Functions | |
| void | init (string pid1, string pid2) |
| Initiates AbstractLineFact.Pid1, AbstractLineFact.Pid2, Fact._URI and creates MMT Fact Server-Side More... | |
| void | SetDistance () |
| Calculates and sets Distance; More... | |
Line within 3D Space of finite length
| LineFact.LineFact | ( | ) |
Only being used by JsonReader to initiate empty Facts.
| LineFact.LineFact | ( | LineFact | fact, |
| Dictionary< string, string > | old_to_new, | ||
| FactOrganizer | organizer | ||
| ) |
Copies fact by initiating new MMT Fact.
| fact | Fact to be copied |
| old_to_new | Dictionary mapping fact .getDependentFactIds in fact .Fact._Facts to corresponding Fact.Id in organizer |
| organizer | sets _Facts |
| LineFact.LineFact | ( | string | pid1, |
| string | pid2, | ||
| string | backendURI, | ||
| FactOrganizer | organizer | ||
| ) |
Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence.
| pid1 | sets Pid1 |
| pid2 | sets Pid2 |
| backendURI | MMT URI |
| organizer | sets Fact._Facts |
| LineFact.LineFact | ( | string | pid1, |
| string | pid2, | ||
| FactOrganizer | organizer | ||
| ) |
Standard Constructor
| pid1 | sets AbstractLineFact.Pid1 |
| pid2 | sets AbstractLineFact.Pid2 |
| organizer | sets Fact._Facts |
|
protected |
auto-generates Label using generation variable(s) e.g. LabelId; if custom Label is set, tries to restore original generated Label without resetting _CustomLabel. If original Label is already taken, a new one will be generated.
|
private |
Initiates AbstractLineFact.Pid1, AbstractLineFact.Pid2, Fact._URI and creates MMT Fact Server-Side
| pid1 | sets AbstractLineFact.Pid1 |
| pid2 | sets AbstractLineFact.Pid2 |
| override GameObject LineFact.instantiateDisplay | ( | GameObject | prefab, |
| Transform | transform | ||
| ) |
Initiates a prefab at transform e.g. by setting Label.
Does not set Representation.
| prefab | GameObject Prefab that will represent this Fact |
| transform | Transform where to initiate prefab |
|
static |
|
private |
Calculates and sets Distance;
AbstractLineFact.Pid1 and AbstractLineFact.Pid2 needs to be set first.
| float LineFact.Distance |
Distance between AbstractLineFact.Pid1 and AbstractLineFact.Pid2