public MapGraphicKeyframe()
 {
     activeProps = new LongArrayClass();
     activeProps.Add(0);
     activeProps.Add(1);
     animType            = new AnimationTypeMapGraphic();
     name                = "";
     bObjectsNeedRefresh = false;
     Position            = new PointClass();
     Rotation            = 0.0;
     timeStamp           = 0.0;
 }
 public MapLayerEffectsKeyframe()
 {
     activeProps = new LongArrayClass();
     activeProps.Add(0);
     activeProps.Add(1);
     animType            = new AnimationTypeLayerEffects();
     name                = "";
     bObjectsNeedRefresh = false;
     brightness          = 0;
     contrast            = 0;
     timeStamp           = 0;
 }
 public MapLayerEffectsKeyframe()
 {
     activeProps = new LongArrayClass();
     activeProps.Add(0);
     activeProps.Add(1);
     animType = new AnimationTypeLayerEffects();
     name = "";
     bObjectsNeedRefresh = false;
     brightness = 0;
     contrast = 0;
     timeStamp = 0;
 }
 public MapGraphicKeyframe()
 {
     activeProps = new LongArrayClass();
     activeProps.Add(0);
     activeProps.Add(1);
     animType = new AnimationTypeMapGraphic();
     name = "";
     bObjectsNeedRefresh = false;
     Position = new PointClass();
     Rotation = 0.0;
     timeStamp = 0.0;
 }
示例#5
0
        public void TestReadObject()
        {
            la     = new LongSortedList();
            la[1L] = "one";
            la[2L] = "two";
            la.Add("five");
            la.Add("three");
            la[200L] = "twohundred";


            DataWriter      writer    = new DataWriter(stream);
            PofStreamWriter pofWriter = new PofStreamWriter(writer, ctx);

            pofWriter.WriteLongArray(0, la);
            pofWriter.WriteLongArray(0, new LongSortedList());
            pofWriter.WriteLongArray(0, la, typeof(String));

            stream.Position = 0;
            DataReader      reader    = new DataReader(stream);
            PofStreamReader pofReader = new PofStreamReader(reader, ctx);

            LongSortedList resLA = (LongSortedList)pofReader.ReadObject(0);

            Assert.AreEqual(la.Count, resLA.Count);

            IEnumerator e  = resLA.GetEnumerator();
            IEnumerator de = la.GetEnumerator();

            for (; e.MoveNext() && de.MoveNext();)
            {
                Assert.AreEqual(((DictionaryEntry)e.Current).Key, ((DictionaryEntry)de.Current).Key);
                Assert.AreEqual(((DictionaryEntry)e.Current).Value, ((DictionaryEntry)de.Current).Value);
            }

            resLA = (LongSortedList)pofReader.ReadObject(0);
            Assert.AreEqual(0, resLA.Count);

            //uniform sparse array
            resLA = (LongSortedList)pofReader.ReadObject(0);
            Assert.AreEqual(la.Count, resLA.Count);

            e  = resLA.GetEnumerator();
            de = la.GetEnumerator();
            for (; e.MoveNext() && de.MoveNext();)
            {
                Assert.AreEqual(((DictionaryEntry)e.Current).Key, ((DictionaryEntry)de.Current).Key);
                Assert.AreEqual(((DictionaryEntry)e.Current).Value, ((DictionaryEntry)de.Current).Value);
            }
        }
        public void set_IsActiveProperty(int propIndex, bool pbIsActiveProp)
        {
            if (pbIsActiveProp)
            {
                if (get_IsActiveProperty(propIndex) == false)
                {
                    activeProps.Add(propIndex);
                }
            }
            else
            {
                if (get_IsActiveProperty(propIndex) == true)
                {
                    int i     = 0;
                    int count = activeProps.Count;
                    for (i = 0; i < count; i++)
                    {
                        long temp = activeProps.get_Element(i);
                        if (temp == propIndex)
                        {
                            break;
                        }
                    }

                    activeProps.Remove(i);
                }
            }
        }
 public void FIDsetToLongArray(IFIDSet InFIDSet, ref ILongArray OutLongArray, IStepProgressor StepProgressor)
 {
     Int32 pfID = -1;
       InFIDSet.Reset();
       double dMax = InFIDSet.Count();
       int iMax = (int)(dMax);
       for (Int32 pCnt = 0; pCnt <= (InFIDSet.Count() - 1); pCnt++)
       {
     InFIDSet.Next(out pfID);
     OutLongArray.Add(pfID);
     if (StepProgressor != null)
     {
       if (StepProgressor.Position < StepProgressor.MaxRange)
     StepProgressor.Step();
     }
       }
       return;
 }