Beispiel #1
0
        public ImageNodeInfo GenerateRandomImageNode(int maxCount)
        {
            m_nextImageIndex = (m_nextImageIndex + 1) % maxCount;

            m_nextPlaneIndex = (m_nextPlaneIndex + 1) % m_zPlanes.Length;

            var imageNode = new ImageNodeInfo(
                m_nextImageIndex,
                new Vector3(
                    m_random.Next((int)(MinPosition.X * 100), (int)(MaxPosition.X * 100)) * 0.01f,
                    m_random.Next((int)(MinPosition.Y * 100), (int)(MaxPosition.Y * 100)) * 0.01f,
                    m_random.Next((int)(MinPosition.Z * 100), (int)(MaxPosition.Z * 100)) * 0.01f + m_zPlanes[m_nextPlaneIndex]),
                m_random.Next((int)(MinScale * 100), (int)(MaxScale * 100)) * 0.01f);

            return(imageNode);
        }
Beispiel #2
0
 private void AddImage(ImageNodeInfo imageNodeInfo)
 {
     AddImage(_imageBrushes[(int)imageNodeInfo.NamedImage].Brush, imageNodeInfo);
 }
 private void AddImage(ImageNodeInfo imageNodeInfo)
 {
     AddImage(_imageBrushes[(int)imageNodeInfo.ImageIndex].Brush, imageNodeInfo);
 }
 private void AddImage(ImageNodeInfo imageNodeInfo)
 {
     AddImage(_managedSurfaces[(int)imageNodeInfo.NamedImage].Brush, imageNodeInfo);
 }