示例#1
0
        public void addFeature(Feature feature)
        {
            if (feature == null) return;

            feature.FeatureID = m_oFeatures.Count;
            feature.setParentContainer(this);

            m_oFeatures.Add(feature);
            boundsOK = false;
        }
示例#2
0
        internal void insertFeature(int idx, Feature feature)
        {
            Debug.Assert(feature != null);
            Debug.Assert(feature.ParentContainer == null);
            Debug.Assert(m_oFeatures[idx] == null); // make sure position is empty

            m_oFeatures[idx] = feature;
            feature.FeatureID = idx;
            feature.setParentContainer(this);

            boundsOK = false;
        }