Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GaussianProcessTuning/ILNumerics.2.14.4735.573/Drawing/Shapes/ILQuads.cs @ 11826

Last change on this file since 11826 was 9102, checked in by gkronber, 12 years ago

#1967: ILNumerics source for experimentation

File size: 7.1 KB
Line 
1///
2///    This file is part of ILNumerics Community Edition.
3///
4///    ILNumerics Community Edition - high performance computing for applications.
5///    Copyright (C) 2006 - 2012 Haymo Kutschbach, http://ilnumerics.net
6///
7///    ILNumerics Community Edition is free software: you can redistribute it and/or modify
8///    it under the terms of the GNU General Public License version 3 as published by
9///    the Free Software Foundation.
10///
11///    ILNumerics Community Edition is distributed in the hope that it will be useful,
12///    but WITHOUT ANY WARRANTY; without even the implied warranty of
13///    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14///    GNU General Public License for more details.
15///
16///    You should have received a copy of the GNU General Public License
17///    along with ILNumerics Community Edition. See the file License.txt in the root
18///    of your distribution package. If not, see <http://www.gnu.org/licenses/>.
19///
20///    In addition this software uses the following components and/or licenses:
21///
22///    =================================================================================
23///    The Open Toolkit Library License
24///   
25///    Copyright (c) 2006 - 2009 the Open Toolkit library.
26///   
27///    Permission is hereby granted, free of charge, to any person obtaining a copy
28///    of this software and associated documentation files (the "Software"), to deal
29///    in the Software without restriction, including without limitation the rights to
30///    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
31///    the Software, and to permit persons to whom the Software is furnished to do
32///    so, subject to the following conditions:
33///
34///    The above copyright notice and this permission notice shall be included in all
35///    copies or substantial portions of the Software.
36///
37///    =================================================================================
38///   
39
40using System.Drawing;
41
42
43namespace ILNumerics.Drawing.Shapes {
44   
45    public class ILQuads
46        : ILCompositeShape<C4bV3f> {
47
48        #region constructors
49        /// <summary>
50        /// create quads, for delayed vertex definition
51        /// </summary>
52        /// <param name="panel">hosting panel</param>
53        /// <param name="numVertices">number of vertices to create. Vertices must be filled
54        /// with data manually afterwards.</param>
55        public ILQuads (ILPanel panel, int numVertices)
56            : base (panel, numVertices, 4) {
57            m_fillColor = Color.Green;   
58        }
59        ///// <summary>
60        ///// create quads, define vertex positions
61        ///// </summary>
62        ///// <param name="panel">hosting panel</param>
63        ///// <param name="X">x coordinates vector </param>
64        ///// <param name="Y">y coordinates vector </param>
65        ///// <param name="Z">z coordinates vector </param>
66        //public ILQuads (ILPanel panel, ILBaseArray X, ILBaseArray Y, ILBaseArray Z)
67        //    : base (panel,4,X,Y,Z) {
68        //    m_fillColor = Color.Green;   
69        //}
70        ///// <summary>
71        ///// create quads, indexed storage
72        ///// </summary>
73        ///// <param name="panel">hosting panel</param>
74        ///// <param name="X">x coordinates vector </param>
75        ///// <param name="Y">y coordinates vector </param>
76        ///// <param name="Z">z coordinates vector </param>
77        ///// <param name="mapping">Mapping of shapes, composes quads out of vertices. Matrix having 
78        ///// 4 rows. Every element in a column specifies the index of a vertex according to its position in X,Y,Z.
79        ///// The 4 elements in a column therefore compose a single quad. Vertices may
80        ///// get used arbitrary times (or not at all). All elements must be positive integer values in
81        ///// range 0...[<see cref="ILNumerics.Drawing.Shapes.ILShape.VertexCount"/>-1].</param>
82        //public ILQuads (ILPanel panel, ILBaseArray X, ILBaseArray Y, ILBaseArray Z, ILBaseArray mapping)
83        //    : base (panel,4,X,Y,Z,mapping) {
84        //    m_fillColor = Color.Green;   
85        //}
86        ///// <summary>
87        ///// create quads, flat shading
88        ///// </summary>
89        ///// <param name="panel">hosting panel</param>
90        ///// <param name="X">x coordinates vector </param>
91        ///// <param name="Y">y coordinates vector </param>
92        ///// <param name="Z">z coordinates vector </param>
93        ///// <param name="color">Fill color for all shapes.</param>
94        ///// <param name="mapping">Composes shapes out of given vertices. Matrix having 4 rows.
95        ///// Every element in a column specifies the index of a vertex according to its position in X,Y,Z.
96        ///// The 4 elements in a column therefore compose a single quad. Vertices may
97        ///// get used arbitrary times (or not at all). All elements must be positive integer values in
98        ///// range 0...[vertCount-1].</param>
99        ///// <param name="mapping">Mapping composes quads out of vertices. Matrix having 
100        ///// 4 rows. Every element in a column specifies the index of a vertex according to its position in X,Y,Z.
101        ///// The 4 elements in a column therefore compose a single quad. Vertices may
102        ///// get used arbitrary times (or not at all). All elements must be positive integer values in
103        ///// range 0...[<see cref="ILNumerics.Drawing.Shapes.ILShape.VertexCount"/>-1].</param>
104        //public ILQuads (ILPanel panel, ILBaseArray X, ILBaseArray Y, ILBaseArray Z, Color color, ILBaseArray mapping)
105        //    : base (panel,4,X,Y,Z,mapping) {
106        //    m_fillColor = color;
107        //}
108        ///// <summary>
109        ///// create quads, interpolated shading
110        ///// </summary>
111        ///// <param name="panel">hosting panel</param>
112        ///// <param name="X">x coordinates vector </param>
113        ///// <param name="Y">y coordinates vector </param>
114        ///// <param name="Z">z coordinates vector </param>
115        ///// <param name="colors">matrix with <see cref="ILNumerics.Drawing.Shapes.ILShape.VertexCount"/>
116        ///// rows, 3 columns for (R,G,B) or 4 columns for
117        ///// (A,R,G,B) for every vertex specified by X,Y,Z. Elements must range from 0..255. If colors
118        ///// has 3 columns only, alpha values of 255 are used as default.</param>
119        ///// <param name="mapping">Mapping of shapes, composes quads out of vertices. Matrix having 
120        ///// 4 rows. Every element in a column references a vertex according to its position index in vectors X,Y,Z.
121        ///// The 4 elements in a column therefore compose a single quad. Vertices may
122        ///// get used arbitrary times (or not at all). All elements must be positive integer values in
123        ///// range 0...[<see cref="ILNumerics.Drawing.Shapes.ILShape.VertexCount"/>-1].</param>
124        //public ILQuads (ILPanel panel, ILBaseArray X, ILBaseArray Y, ILBaseArray Z, ILBaseArray colors, ILBaseArray mapping)
125        //    : base (panel,4,X,Y,Z,colors,mapping) {
126        //    m_fillColor = Color.Green;
127        //}
128        #endregion
129
130    }
131}
Note: See TracBrowser for help on using the repository browser.