FrameIT
PointFact Class Reference

Point in 3D Space More...

Inheritance diagram for PointFact:
FactWrappedCRTP< PointFact >

Public Member Functions

 PointFact ()
 
 PointFact (PointFact fact, Dictionary< string, string > old_to_new, FactOrganizer organizer)
 Copies fact by initiating new MMT Fact. More...
 
 PointFact (Vector3 P, Vector3 N, FactOrganizer organizer)
 Standard Constructor More...
 
 PointFact (float a, float b, float c, string uri, FactOrganizer organizer)
 Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. Normal set to Vector3.up More...
 
override Boolean hasDependentFacts ()
 
Returns
true if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array
More...
 
override string[] getDependentFactIds ()
 
override GameObject instantiateDisplay (GameObject prefab, Transform transform)
 Initiates a prefab at transform e.g. by setting Label. More...
 
override int GetHashCode ()
 canonical More...
 
- Public Member Functions inherited from FactWrappedCRTP< PointFact >
override bool Equivalent (Fact f2)
 Compares this against f2 . More...
 
override bool Equivalent (Fact f1, Fact f2)
 Compares f1 against f2 . More...
 

Static Public Member Functions

static new PointFact parseFact (Scroll.ScrollFact fact)
 Parses Scroll.ScrollFact to actual Fact More...
 

Public Attributes

Vector3 Point
 Position More...
 
Vector3 Normal
 Orientation for Fact.Representation More...
 

Protected Member Functions

override bool EquivalentWrapped (PointFact f1, PointFact f2)
 Compares f1 against f2 . More...
 
- Protected Member Functions inherited from FactWrappedCRTP< PointFact >
 FactWrappedCRTP ()
 
 FactWrappedCRTP (FactOrganizer organizer)
 
 FactWrappedCRTP (FactWrappedCRTP< T > fact, FactOrganizer organizer)
 
abstract bool EquivalentWrapped (T f1, T f2)
 CRTP step of Equivalent(Fact) and Equivalent(Fact, Fact) More...
 

Private Member Functions

void init (Vector3 P, Vector3 N)
 Initiates Point, Normal, Fact._URI and creates MMT Fact Server-Side More...
 

Detailed Description

Point in 3D Space

Constructor & Destructor Documentation

◆ PointFact() [1/4]

PointFact.PointFact ( )

Only being used by JsonReader to initiate empty Facts.

See also
JSONManager

◆ PointFact() [2/4]

PointFact.PointFact ( PointFact  fact,
Dictionary< string, string >  old_to_new,
FactOrganizer  organizer 
)

Copies fact by initiating new MMT Fact.

Parameters
factFact to be copied
old_to_newDictionary mapping fact .getDependentFactIds in fact .Fact._Facts to corresponding Fact.Id in organizer
organizersets _Facts

◆ PointFact() [3/4]

PointFact.PointFact ( Vector3  P,
Vector3  N,
FactOrganizer  organizer 
)

Standard Constructor

Parameters
Psets Point
Nsets Normal
organizersets Fact._Facts

◆ PointFact() [4/4]

PointFact.PointFact ( float  a,
float  b,
float  c,
string  uri,
FactOrganizer  organizer 
)

Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. Normal set to Vector3.up

Parameters
asets x coordinate of Point
bsets y coordinate of Point
csets z coordinate of Point
uriMMT URI
organizersets Fact._Facts

Member Function Documentation

◆ EquivalentWrapped()

override bool PointFact.EquivalentWrapped ( PointFact  f1,
PointFact  f2 
)
protected

Compares f1 against f2 .

Parameters
f1Fact to compare to
f2Fact to compare to
Returns
true if f2 is semantical very similar to f1

◆ getDependentFactIds()

override string[] PointFact.getDependentFactIds ( )

Returns
array of Fact Ids on which this Fact depends.

AngleFact needs 3 PointFacts to be defined.

◆ GetHashCode()

override int PointFact.GetHashCode ( )

canonical

Returns
unique-ish Hash

◆ hasDependentFacts()

override Boolean PointFact.hasDependentFacts ( )

Returns
true if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array

◆ init()

void PointFact.init ( Vector3  P,
Vector3  N 
)
private

Initiates Point, Normal, Fact._URI and creates MMT Fact Server-Side

Parameters
Psets Point
Nsets Normal

◆ instantiateDisplay()

override GameObject PointFact.instantiateDisplay ( GameObject  prefab,
Transform  transform 
)

Initiates a prefab at transform e.g. by setting Label.

Does not set Representation.

Parameters
prefabGameObject Prefab that will represent this Fact
transformTransform where to initiate prefab
Returns

◆ parseFact()

static new PointFact PointFact.parseFact ( Scroll.ScrollFact  fact)
static

Parses Scroll.ScrollFact to actual Fact

Parameters
factinstance to be parsed
Returns
parsed Fact

Member Data Documentation

◆ Normal

Vector3 PointFact.Normal

Orientation for Fact.Representation

◆ Point

Vector3 PointFact.Point

Position


The documentation for this class was generated from the following file: