FrameIT
AbstractLineFact Class Reference

Base-class for 1D-Facts More...

Inheritance diagram for AbstractLineFact:
FactWrappedCRTP< AbstractLineFact > AbstractLineFactWrappedCRTP< T >

Public Member Functions

override bool hasDependentFacts ()
 
Returns
true if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array
More...
 
override string[] getDependentFactIds ()
 
override int GetHashCode ()
 canonical More...
 
- Public Member Functions inherited from FactWrappedCRTP< AbstractLineFact >
override bool Equivalent (Fact f2)
 Compares this against f2 . More...
 
override bool Equivalent (Fact f1, Fact f2)
 Compares f1 against f2 . More...
 

Public Attributes

Vector3 Dir
 Normalized Direction from Pid1 to Pid2. More...
 
string Pid1
 One Id of two PointFact defining Dir. More...
 
string Pid2
 One Id of two PointFact defining Dir. More...
 

Protected Member Functions

 AbstractLineFact ()
 
 AbstractLineFact (AbstractLineFact fact, Dictionary< string, string > old_to_new, FactOrganizer organizer)
 Copies fact by initiating new MMT Fact. More...
 
 AbstractLineFact (string pid1, string pid2, FactOrganizer organizer)
 Standard Constructor More...
 
 AbstractLineFact (string pid1, string pid2, string backendURI, FactOrganizer organizer)
 Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. More...
 
- Protected Member Functions inherited from FactWrappedCRTP< AbstractLineFact >
 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 set_public_members (string pid1, string pid2)
 Initiates Pid1, Pid2, Dir More...
 

Detailed Description

Base-class for 1D-Facts

Constructor & Destructor Documentation

◆ AbstractLineFact() [1/4]

AbstractLineFact.AbstractLineFact ( )
protected

Only being used by JsonReader to initiate empty Facts.

See also
JSONManager

◆ AbstractLineFact() [2/4]

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

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

◆ AbstractLineFact() [3/4]

AbstractLineFact.AbstractLineFact ( string  pid1,
string  pid2,
FactOrganizer  organizer 
)
protected

Standard Constructor

Parameters
pid1sets AbstractLineFact.Pid1
pid2sets AbstractLineFact.Pid2
organizersets Fact._Facts

◆ AbstractLineFact() [4/4]

AbstractLineFact.AbstractLineFact ( string  pid1,
string  pid2,
string  backendURI,
FactOrganizer  organizer 
)
protected

Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence.

Parameters
pid1sets Pid1
pid2sets Pid2
backendURIMMT URI
organizersets Fact._Facts

Member Function Documentation

◆ getDependentFactIds()

override string[] AbstractLineFact.getDependentFactIds ( )

Returns
array of Fact Ids on which this Fact depends.

AngleFact needs 3 PointFacts to be defined.

◆ GetHashCode()

override int AbstractLineFact.GetHashCode ( )

canonical

Returns
unique-ish Hash

◆ hasDependentFacts()

override bool AbstractLineFact.hasDependentFacts ( )

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

◆ set_public_members()

void AbstractLineFact.set_public_members ( string  pid1,
string  pid2 
)
private

Initiates Pid1, Pid2, Dir

Parameters
pid1sets Pid1
pid2sets Pid2

Member Data Documentation

◆ Dir

Vector3 AbstractLineFact.Dir

Normalized Direction from Pid1 to Pid2.

◆ Pid1

string AbstractLineFact.Pid1

One Id of two PointFact defining Dir.

◆ Pid2

string AbstractLineFact.Pid2

One Id of two PointFact defining Dir.


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