Example #1
0
    //actually create the new visualization
    public void VisualizeNewConcept(string conceptName)
    {
        Vector3 offset = new Vector3(Random.Range(-10f - conceptTable.Count / 10f, 10f + conceptTable.Count / 10f), Random.Range(-10f - conceptTable.Count / 10f, 10f + conceptTable.Count / 10f), Random.Range(-10f - conceptTable.Count / 10f, 10f + conceptTable.Count / 10f));

        GameObject newConceptGO = Instantiate(conceptPrefab, offset, Quaternion.identity);
        Concept    newConcept   = newConceptGO.GetComponent <Concept>();

        newConcept.Init(conceptName);

        if (newConcept.isStatementTerm())
        {
            if (_areStatementTermsHidden)
            {
                newConceptGO.SetActive(false);
            }

            QueueVisualizeNewTermLink(new Statement(conceptName + "%1;1%"), newConcept);
        }


        if (newConcept.isCompoundTerm() && _areCompoundTermsHidden)
        {
            newConceptGO.SetActive(false);
        }

        conceptTable.Add(conceptName, newConceptGO.GetComponent <Concept>());
    }
 public bool ConnectsCompoundTerm()
 {
     return(_subject.isCompoundTerm() || _predicate.isCompoundTerm());
 }
Example #3
0
 public bool ConnectsCompoundTerm()
 {
     return(_statement.isCompoundTerm() || _constituent.isCompoundTerm());
 }