FrameIT
FactManager Class Reference

Initiates named Fact and adds it to StageStatic.stage.factState More...

Static Public Member Functions

static Fact AddFactIfNotFound (Fact fact, out bool exists, bool samestep)
 Adds fact to StageStatic.stage.factState More...
 
static PointFact AddPointFact (RaycastHit hit, bool samestep=false)
 Initiates named Fact and adds it to StageStatic.stage.factState More...
 
static PointFact AddPointFact (Vector3 point, Vector3 normal, bool samestep=false)
 Initiates named Fact and adds it to StageStatic.stage.factState More...
 
static OnLineFact AddOnLineFact (string pid, string lid, bool samestep=false)
 Initiates named Fact and adds it to StageStatic.stage.factState More...
 
static LineFact AddLineFact (string pid1, string pid2, bool samestep=false)
 Initiates named Fact and adds it to StageStatic.stage.factState More...
 
static RayFact AddRayFact (string pid1, string pid2, bool samestep=false)
 Initiates named Fact and adds it to StageStatic.stage.factState More...
 
static AngleFact AddAngleFact (string pid1, string pid2, string pid3, bool samestep=false)
 Initiates named Fact and adds it to StageStatic.stage.factState More...
 

Detailed Description

Initiates named Fact and adds it to StageStatic.stage.factState

Parameters
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

Member Function Documentation

◆ AddAngleFact()

static AngleFact FactManager.AddAngleFact ( string  pid1,
string  pid2,
string  pid3,
bool  samestep = false 
)
static

Initiates named Fact and adds it to StageStatic.stage.factState

Parameters
pid1Fact.Id of first PointFact defining a AngleFact
pid2Fact.Id of second PointFact defining a AngleFact
pid3Fact.Id of third PointFact defining a AngleFact
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

◆ AddFactIfNotFound()

static Fact FactManager.AddFactIfNotFound ( Fact  fact,
out bool  exists,
bool  samestep 
)
static

Adds fact to StageStatic.stage.factState

Parameters
factto be added
existstrue iff fact already has a equivalent counterpart in fact._Facts
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

◆ AddLineFact()

static LineFact FactManager.AddLineFact ( string  pid1,
string  pid2,
bool  samestep = false 
)
static

Initiates named Fact and adds it to StageStatic.stage.factState

Parameters
pid1Fact.Id of first PointFact defining a LineFact
pid2Fact.Id of second PointFact defining a LineFact
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

◆ AddOnLineFact()

static OnLineFact FactManager.AddOnLineFact ( string  pid,
string  lid,
bool  samestep = false 
)
static

Initiates named Fact and adds it to StageStatic.stage.factState

Parameters
pidFact.Id of PointFact which lies on lid
lidFact.Id of LineFact on which pid lies
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

◆ AddPointFact() [1/2]

static PointFact FactManager.AddPointFact ( RaycastHit  hit,
bool  samestep = false 
)
static

Initiates named Fact and adds it to StageStatic.stage.factState

Parameters
hitRaycastHit where and how (orientation) to spawn PointFact
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

◆ AddPointFact() [2/2]

static PointFact FactManager.AddPointFact ( Vector3  point,
Vector3  normal,
bool  samestep = false 
)
static

Initiates named Fact and adds it to StageStatic.stage.factState

Parameters
pointwhere to spawn PointFact
normalhow (orientation) to spawn PointFact
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

◆ AddRayFact()

static RayFact FactManager.AddRayFact ( string  pid1,
string  pid2,
bool  samestep = false 
)
static

Initiates named Fact and adds it to StageStatic.stage.factState

Creates aditionally OnLineFacts when RayFact crosses PointFacts.

Parameters
pid1Fact.Id of first PointFact defining a RayFact
pid2Fact.Id of second PointFact defining a RayFact
samestepset true if Fact creation happens as a subsequent/ consequent step of multiple Fact creations and/or deletions, and you whish that these are affected by a single FactOrganizer.undo/ FactOrganizer.redo step
Returns
Fact.Id of generated Fact if not yet existent in StageStatic.stage.factState, else Fact.Id of existent equivalent Fact

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