FrameIT
RightAngleFact Class Reference

A RightAngleFact defined by 3 Pointfact More...

Inheritance diagram for RightAngleFact:
AbstractAngleFactWrappedCRTP< RightAngleFact >

Public Member Functions

 RightAngleFact ()
 
 RightAngleFact (string pid1, string pid2, string pid3)
 Standard Constructor: Initiates Pid1, Pid2, Pid3, is_right_angle, Fact._URI and creates MMT Fact Server-Side More...
 
 RightAngleFact (string Pid1, string Pid2, string Pid3, SOMDoc _ServerDefinition)
 Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. More...
 
override MMTFact MakeMMTDeclaration ()
 
override SOMDoc Defines ()
 

Static Public Member Functions

static new IEnumerator parseFact (List< Fact > ret, MMTFact fact)
 

Protected Member Functions

override string generateLabel (FactRecorder name_space)
 auto-generates GetLabel using generation variable(s) e.g. LabelId; if custom GetLabel is set, tries to restore original generated GetLabel without resetting _CustomLabel. If original GetLabel is already taken, a new one will be generated. More...
 
override bool EquivalentWrapped (RightAngleFact f1, RightAngleFact f2)
 Compares f1 against f2 . More...
 
override Fact _ReInitializeMe (Dictionary< string, string > old_to_new)
 
- Protected Member Functions inherited from AbstractAngleFactWrappedCRTP< RightAngleFact >
 AbstractAngleFactWrappedCRTP ()
 
 AbstractAngleFactWrappedCRTP (AbstractAngleFactWrappedCRTP< T > fact, Dictionary< string, string > old_to_new)
 
 AbstractAngleFactWrappedCRTP (string pid1, string pid2, string pid3)
 
 AbstractAngleFactWrappedCRTP (string pid1, string pid2, string pid3, float angle, SOMDoc _ServerDefinition)
 
override bool EquivalentWrapped (AbstractAngleFact f1, AbstractAngleFact f2)
 Compares f1 against f2 . More...
 
abstract bool EquivalentWrapped (T f1, T f2)
 CRTP step of EquivalentWrapped(AbstractAngleFact, AbstractAngleFact) More...
 

Properties

override bool is_right_angle [get]
 
override float angle [get]
 

Detailed Description

A RightAngleFact defined by 3 Pointfact

Constructor & Destructor Documentation

◆ RightAngleFact() [1/3]

RightAngleFact.RightAngleFact ( )

Only being used by JsonReader to initiate empty Facts.

See also
SOMDocManager

◆ RightAngleFact() [2/3]

RightAngleFact.RightAngleFact ( string  pid1,
string  pid2,
string  pid3 
)

Standard Constructor: Initiates Pid1, Pid2, Pid3, is_right_angle, Fact._URI and creates MMT Fact Server-Side

Parameters
pid1sets Pid1
pid2sets Pid2
pid3sets Pid3

◆ RightAngleFact() [3/3]

RightAngleFact.RightAngleFact ( string  Pid1,
string  Pid2,
string  Pid3,
SOMDoc  _ServerDefinition 
)

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

Parameters
Pid1sets Pid1
Pid2sets Pid2
Pid3sets Pid3
backendURIMMT URI

Member Function Documentation

◆ _ReInitializeMe()

override Fact RightAngleFact._ReInitializeMe ( Dictionary< string, string >  old_to_new)
protected

◆ Defines()

override SOMDoc RightAngleFact.Defines ( )

◆ EquivalentWrapped()

override bool RightAngleFact.EquivalentWrapped ( RightAngleFact  f1,
RightAngleFact  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

◆ generateLabel()

override string RightAngleFact.generateLabel ( FactRecorder  name_space)
protected

auto-generates GetLabel using generation variable(s) e.g. LabelId; if custom GetLabel is set, tries to restore original generated GetLabel without resetting _CustomLabel. If original GetLabel is already taken, a new one will be generated.

Returns
auto-generated GetLabel

◆ MakeMMTDeclaration()

override MMTFact RightAngleFact.MakeMMTDeclaration ( )

◆ parseFact()

static new IEnumerator RightAngleFact.parseFact ( List< Fact ret,
MMTFact  fact 
)
static

Property Documentation

◆ angle

override float RightAngleFact.angle
get

◆ is_right_angle

override bool RightAngleFact.is_right_angle
get

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