Exemplo n.º 1
0
        /// <summary>
        /// Adhoc code
        /// </summary>
        public void Reset()
        {
            Location.X.SetValueDirectly(0.0f);
            Location.Y.SetValueDirectly(0.0f);
            Location.Z.SetValueDirectly(0.0f);

            Rotation.X.SetValueDirectly(0.0f);
            Rotation.Y.SetValueDirectly(0.0f);
            Rotation.Z.SetValueDirectly(0.0f);

            Scale.X.SetValueDirectly(1.0f);
            Scale.Y.SetValueDirectly(1.0f);
            Scale.Z.SetValueDirectly(1.0f);

            LocationVelocity.X.SetValueDirectly(0.0f);
            LocationVelocity.Y.SetValueDirectly(0.0f);
            LocationVelocity.Z.SetValueDirectly(0.0f);

            RotationVelocity.X.SetValueDirectly(0.0f);
            RotationVelocity.Y.SetValueDirectly(0.0f);
            RotationVelocity.Z.SetValueDirectly(0.0f);

            ScaleVelocity.X.SetValueDirectly(0.0f);
            ScaleVelocity.Y.SetValueDirectly(0.0f);
            ScaleVelocity.Z.SetValueDirectly(0.0f);

            RemovedTime.Infinite.SetValueDirectly(true);
            RemovedTime.Value.SetValueDirectly(0);

            CountX.SetValueDirectly(1);
            CountY.SetValueDirectly(1);
            CountZ.SetValueDirectly(1);

            Distance.SetValueDirectly(5);

            TimeSpan.SetValueDirectly(0);

            ColorAll.R.SetValueDirectly(255);
            ColorAll.G.SetValueDirectly(255);
            ColorAll.B.SetValueDirectly(255);
            ColorAll.A.SetValueDirectly(255);

            PlaybackSpeed.SetValueDirectly(1);

            TargetLocation.X.SetValueDirectly(0.0f);
            TargetLocation.Y.SetValueDirectly(0.0f);
            TargetLocation.Z.SetValueDirectly(0.0f);
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder(200);
            sb.AppendFormat("[Table3D @ {0:X6} | Selected={1} CountX={2} CountY={3} CountZ={4} Type={5} | RangeX={6}, RangeY={7}, RangeZ={8} | ",
                            location, selected, countX.ToString(), countY.ToString(), CountZ.ToString(), tableType.ToStr(),
                            rangeX.ToString(), rangeY.ToString(), rangeZ.ToString());

            sb.AppendFormat(" | Xmin={0} Xmax={1} | Ymin={2} Ymax={3} | Zmin={4} Zmax={5} Zavg={6}",
                            Xmin, Xmax, Ymin, Ymax, Zmin, Zmax, Zavg);

            if (hasMAC)
            {
                sb.AppendFormat(" | Multiplier={0}, Offset={1}]", Multiplier, Offset);
            }
            else
            {
                sb.Append("]");
            }
            return(sb.ToString());
        }