Exemple #1
0
    public int number = 0;     //Needed to generate filternumber

    public VTKNode(VTKFilter filter, VTKNode parent, VTKProperties properties)
    {
        this.filter     = filter;
        this.parent     = parent;
        this.children   = new List <VTKNode> ();
        this.isRoot     = (parent == null) ? true : false;
        this.name       = (isRoot) ? name : filter.GetType().ToString().Remove(0, 9) + GetFilterNumber();
        this.properties = properties;
    }
Exemple #2
0
 public VTKNode(VTKFilter filter, VTKNode parent, VTKProperties properties)
 {
     this.filter = filter;
     this.parent = parent;
     this.children = new List<VTKNode> ();
     this.isRoot = (parent == null) ? true : false;
     this.name = (isRoot) ? name : filter.GetType ().ToString ().Remove (0, 9) + GetFilterNumber();
     this.properties = properties;
 }
    public override void OnInspectorGUI()
    {
        script = (VTKProperties)target;

        DrawDefaultInspector ();

        Content ();

        EditorUtility.SetDirty (target);
    }
Exemple #4
0
    public override void OnInspectorGUI()
    {
        script = (VTKProperties)target;

        DrawDefaultInspector();

        Content();

        EditorUtility.SetDirty(target);
    }
Exemple #5
0
    public void Initialize()
    {
        this.flyStick = GameObject.Find("FlyStick");
        this.root     = gameObject.transform.parent.gameObject.GetComponent <VTKRoot> ();

        this.filter     = node.filter;
        this.properties = node.properties;

        activeMode        = mode.None;
        activeMenu        = menu.None;
        activeParameter   = 0;
        activeIndex       = 0;
        playmodeParameter = null;
    }
    public void Initialize()
    {
        this.flyStick = GameObject.Find ("FlyStick");
        this.root = gameObject.transform.parent.gameObject.GetComponent<VTKRoot> ();

        this.filter = node.filter;
        this.properties = node.properties;

        activeMode = mode.None;
        activeMenu = menu.None;
        activeParameter = 0;
        activeIndex = 0;
        playmodeParameter = null;
    }