FrameIT
RadiusFact Class Reference

A RadiusFact that corresponds to a PointFacts and has a float value (the actual radius). More...

Inheritance diagram for RadiusFact:
FactWrappedCRTP< RadiusFact >

Public Member Functions

 RadiusFact ()
 
 RadiusFact (string cid1)
 Standard Constructor: Initiates Cid1 and rad More...
 
 RadiusFact (string Cid1, SOMDoc _ServerDefinition)
 Bypasses initialization of new MMT Fact by using existend URI, which is not checked for existence. More...
 
override MMTFact MakeMMTDeclaration ()
 Constructs struct for not-right-angled MMT Fact AddFactResponse More...
 
override SOMDoc Defines ()
 
- Public Member Functions inherited from FactWrappedCRTP< RadiusFact >
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 IEnumerator parseFact (List< Fact > ret, MMTFact fact)
 

Public Attributes

string Cid1
 The circle corresponding to the radius More...
 
float rad
 The radius as a float More...
 

Protected Member Functions

override void RecalculateTransform ()
 
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 string[] GetDependentFactIds ()
 
override bool EquivalentWrapped (RadiusFact f1, RadiusFact f2)
 Compares f1 against f2 . More...
 
override Fact _ReInitializeMe (Dictionary< string, string > old_to_new)
 
- Protected Member Functions inherited from FactWrappedCRTP< RadiusFact >
 FactWrappedCRTP ()
 
abstract bool EquivalentWrapped (T f1, T f2)
 CRTP step of Equivalent(Fact) and Equivalent(Fact, Fact) More...
 
bool DependentFactsEquivalent (T f1, T f2)
 

Properties

CircleFact Circle [get]
 
override bool HasDependentFacts [get]
 

Detailed Description

A RadiusFact that corresponds to a PointFacts and has a float value (the actual radius).

Constructor & Destructor Documentation

◆ RadiusFact() [1/3]

RadiusFact.RadiusFact ( )

Only being used by JsonReader to initiate empty Facts.

See also
SOMDocManager

◆ RadiusFact() [2/3]

RadiusFact.RadiusFact ( string  cid1)

Standard Constructor: Initiates Cid1 and rad

Parameters
cid1sets Cid1

◆ RadiusFact() [3/3]

RadiusFact.RadiusFact ( string  Cid1,
SOMDoc  _ServerDefinition 
)

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

Parameters
Cid1sets Cid1
backendURIMMT URI

Member Function Documentation

◆ _ReInitializeMe()

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

◆ Defines()

override SOMDoc RadiusFact.Defines ( )

◆ EquivalentWrapped()

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

◆ GetDependentFactIds()

override string[] RadiusFact.GetDependentFactIds ( )
protected

◆ MakeMMTDeclaration()

override MMTFact RadiusFact.MakeMMTDeclaration ( )

Constructs struct for not-right-angled MMT Fact AddFactResponse

Parameters
radsee rad
c1URIsee Cid1

◆ parseFact()

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

◆ RecalculateTransform()

override void RadiusFact.RecalculateTransform ( )
protected

Member Data Documentation

◆ Cid1

string RadiusFact.Cid1

The circle corresponding to the radius

◆ rad

float RadiusFact.rad

The radius as a float

Property Documentation

◆ Circle

CircleFact RadiusFact.Circle
get

◆ HasDependentFacts

override bool RadiusFact.HasDependentFacts
get


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