Exemple #1
0
        public MaskDAGGraphNode(GraphCanvas owningCanvas)
        {
            mOwningCanvas = owningCanvas;

            //grab the point from the user
            Location = owningCanvas.transformPoint(owningCanvas.LastClickedPoint, owningCanvas.CanvasTransformInv);
        }
Exemple #2
0
        public Device_SelectGradient(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Select Gradient";
            mColorTop    = Color.White;
            mColorBottom = Color.Purple;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #3
0
        public Device_HydraulicErosion(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Hydraulic Erosion";
            mColorTop    = Color.White;
            mColorBottom = Color.Brown;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #4
0
        public Device_RidgedNoise(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Ridged Noise";
            mColorTop    = Color.White;
            mColorBottom = Color.Green;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #5
0
        public Device_DistanceTransform(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Distance Transform";
            mColorTop    = Color.White;
            mColorBottom = Color.CornflowerBlue;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #6
0
        public Device_RandomInt(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Random Integer";
            mColorTop    = Color.White;
            mColorBottom = Color.Yellow;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #7
0
        public Device_Splitter(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Splitter";
            mColorTop    = Color.White;
            mColorBottom = Color.PeachPuff;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #8
0
        public Device_MaskFromList(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Mask From List";
            mColorTop    = Color.White;
            mColorBottom = Color.HotPink;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;


            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #9
0
        public Device_ToCurrentMask(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "To Current Mask";
            mColorTop    = Color.White;
            mColorBottom = Color.Red;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;


            generateConnectionPoints();
            resizeFromConnections();
        }
Exemple #10
0
        public Device_Curves(GraphCanvas owningCanvas)
            :
            base(owningCanvas)
        {
            base.Text    = "Curves";
            mColorTop    = Color.White;
            mColorBottom = Color.CornflowerBlue;
            mBorderSize  = 1;

            mSize.Width  = 60;
            mSize.Height = 20;

            generateConnectionPoints();
            resizeFromConnections();

            addControlPoint(0, 0);
            addControlPoint(1, 1);
        }
Exemple #11
0
 public MaskDevice(GraphCanvas owningCanvas)
     :
     base(owningCanvas)
 {
 }
Exemple #12
0
        public OutputConnectionPoint(ParamType valueType, string Descriptor, MaskDAGGraphNode ownerMaskDAGGraphNode, GraphCanvas owningCanvas)
            : base(valueType, Descriptor, ownerMaskDAGGraphNode, owningCanvas)
        {
            Location = new Point(2, 2);
            mSize    = new Size(10, 10);

            mBorderSize = 1;

            mColorBottom = Color.LightGray;
            mColorTop    = Color.Gray;
        }
Exemple #13
0
 public ConnectionPoint(ParamType paramType, string Descriptor, MaskDAGGraphNode ownerMaskDAGGraphNode, GraphCanvas owningCanvas)
 {
     mDepthLayer            = 1;
     mOwnerMaskDAGGraphNode = ownerMaskDAGGraphNode;
     mParamType             = paramType;
     ID = Descriptor;
 }
Exemple #14
0
        public ConstraintConnectionPoint(ParamType valueType, string Descriptor, MaskDAGGraphNode ownerMaskDAGGraphNode, GraphCanvas owningCanvas)
            : base(valueType, Descriptor, ownerMaskDAGGraphNode, owningCanvas)
        {
            Location = new Point(2, 2);
            mSize    = new Size(10, 10);

            mBorderSize = 1;

            mColorBottom = Color.Purple;
            mColorTop    = Color.White;
        }
Exemple #15
0
        public InputConnectionPoint(ParamType valueType, bool requiredInput, string Descriptor, MaskDAGGraphNode ownerMaskDAGGraphNode, GraphCanvas owningCanvas)
            : base(valueType, Descriptor, ownerMaskDAGGraphNode, owningCanvas)
        {
            mLocation = new Point(2, 2);
            mSize     = new Size(10, 10);

            mBorderSize = 1;

            mColorBottom = Color.Gray;
            mColorTop    = Color.White;

            mIsRequiredInput = requiredInput;
        }