FrameIT
ConeVolumeFact Class Reference

The volume of a cone A defined by a base area CircleFact, an apex PointFact and the volume as float More...

Inheritance diagram for ConeVolumeFact:
FactWrappedCRTP< ConeVolumeFact >

Public Member Functions

 ConeVolumeFact ()
 
 ConeVolumeFact (string cid1, string pid1, float vol)
 Standard Constructor: Initiates members and creates MMT Fact Server-Side More...
 
 ConeVolumeFact (string Cid1, string Pid1, float volume, 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 ()
 
- Public Member Functions inherited from FactWrappedCRTP< ConeVolumeFact >
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
 a CircleFact describing the base area More...
 
string Pid1
 a PointFact describing the apex point More...
 
float volume
 the volume of the cone 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 (ConeVolumeFact f1, ConeVolumeFact f2)
 Compares f1 against f2 . More...
 
override Fact _ReInitializeMe (Dictionary< string, string > old_to_new)
 
- Protected Member Functions inherited from FactWrappedCRTP< ConeVolumeFact >
 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]
 
PointFact Point [get]
 
override bool HasDependentFacts [get]
 

Detailed Description

The volume of a cone A defined by a base area CircleFact, an apex PointFact and the volume as float

Constructor & Destructor Documentation

◆ ConeVolumeFact() [1/3]

ConeVolumeFact.ConeVolumeFact ( )

Only being used by JsonReader to initiate empty Facts.

See also
SOMDocManager

◆ ConeVolumeFact() [2/3]

ConeVolumeFact.ConeVolumeFact ( string  cid1,
string  pid1,
float  vol 
)

Standard Constructor: Initiates members and creates MMT Fact Server-Side

Parameters
cid1sets Cid1
pid1sets Pid1
volsets volume

◆ ConeVolumeFact() [3/3]

ConeVolumeFact.ConeVolumeFact ( string  Cid1,
string  Pid1,
float  volume,
SOMDoc  _ServerDefinition 
)

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

Parameters
Cid1sets Cid1
Pid1sets Pid1
volumesets volume
backendURIMMT URI

Member Function Documentation

◆ _ReInitializeMe()

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

◆ Defines()

override SOMDoc ConeVolumeFact.Defines ( )

◆ EquivalentWrapped()

override bool ConeVolumeFact.EquivalentWrapped ( ConeVolumeFact  f1,
ConeVolumeFact  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 ConeVolumeFact.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[] ConeVolumeFact.GetDependentFactIds ( )
protected

◆ MakeMMTDeclaration()

override MMTFact ConeVolumeFact.MakeMMTDeclaration ( )

◆ parseFact()

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

◆ RecalculateTransform()

override void ConeVolumeFact.RecalculateTransform ( )
protected

Member Data Documentation

◆ Cid1

string ConeVolumeFact.Cid1

a CircleFact describing the base area

◆ Pid1

string ConeVolumeFact.Pid1

a PointFact describing the apex point

◆ volume

float ConeVolumeFact.volume

the volume of the cone as a float

Property Documentation

◆ Circle

CircleFact ConeVolumeFact.Circle
get

◆ HasDependentFacts

override bool ConeVolumeFact.HasDependentFacts
get

◆ Point

PointFact ConeVolumeFact.Point
get

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