예제 #1
0
파일: TestSFNode.cs 프로젝트: doug8679/x3d
        public void Constructors()
        {
            var node = new SFNode();

            Assert.AreEqual(node.ToString(), "NULL");

            node = new SFNode("foo");

            Assert.AreEqual(node.ToString(), "foo");

            node = new SFNode(new SFNode("bar"));

            Assert.AreEqual(node.ToString(), "bar");
        }
예제 #2
0
        public void Visit(SFNode field)
        {
            VrmlToken token = m_context.PeekNextToken();

            switch (token.Text)
            {
            case "NULL":
                field.Node = null;
                break;

            default:
                m_context.PushNodeContainer(field);
                m_nodeStatementParser(m_context);
                m_context.PopNodeContainer();
                break;
            }
        }
예제 #3
0
        public void visit(SFNode field)
        {
            VRML97Token token = context.PeekNextToken();

            switch (token.Text)
            {
            case "NULL":
                field.Node = null;
                break;

            default:
                context.PushNodeContainer(field);
                nodeStatementParser(context);
                context.PopNodeContainer();
                break;
            }
        }
예제 #4
0
 public void Visit(SFNode field)
 {
     field.Node = Child;
 }
예제 #5
0
 public SFNode(SFNode obj)
     : base((string)obj)
 {
 }
예제 #6
0
 public void visit(SFNode field)
 {
     field.Node = _child;
 }