Example #1
0
        public override bool Equals(object obj)
        {
            XbimColourMap map = obj as XbimColourMap;

            if (map == null)
            {
                return(false);
            }
            if (map.Count != Count)
            {
                return(false);
            }
            foreach (var colour in map)
            {
                if (!this.Contains(colour))
                {
                    return(false);
                }
                if (!colour.Equals(this[colour.Name]))
                {
                    return(false);
                }
            }
            return(true);
        }
Example #2
0
 public XbimMeshLayer(IModel m, XbimColour colour, XbimColourMap subCategoryColourMap)
     : this(m, colour)
 {
     _layerColourMap = subCategoryColourMap;
 }
Example #3
0
 /// <summary>
 /// Constructs a scene, using the specfified colourmap
 /// </summary>
 /// <param name="colourMap"></param>
 public XbimScene(XbimModel model, XbimColourMap colourMap)
 {
     this._layerColourMap = colourMap;
     this._model          = model;
 }