arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

primsGL.cpp

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////
00002 // 6/6/02       Aaron Lefohn    Scientific Computing and Imaging Institute
00003 // School of Computing          University of Utah
00004 //
00005 //  This library is free software; you can redistribute it and/or
00006 //  modify it under the terms of the GNU Lesser General Public
00007 //  License as published by the Free Software Foundation; either
00008 //  version 2.1 of the License, or (at your option) any later version.
00009 //
00010 //  This library is distributed in the hope that it will be useful,
00011 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 //  Lesser General Public License for more details.
00014 //
00015 //  You should have received a copy of the GNU Lesser General Public
00016 //  License along with this library; if not, write to the Free Software
00017 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 ////////////////////////////////////////////////////////////////////////
00019 //
00020 
00021 #include <drawable/primsGL.h>
00022 
00023 using namespace gutz;
00024 
00025 using namespace glift;
00026 
00027 /// **** GL_POINTS ****
00028 PointsGL::PointsGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00029                    const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices,
00030                    const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00031                    DrawAlg drawAlgType )
00032                    : PrimGL( GL_POINTS, 1, 1, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00033 {}
00034 
00035 
00036 
00037 PointsGL::PointsGL( const PointsGL& rhs ) : PrimGL(rhs)
00038 {}
00039 
00040 PointsGL& PointsGL::operator=( const PointsGL& rhs ) 
00041 {
00042    if( &rhs != this ) {
00043       PrimGL::operator=(rhs);
00044    }
00045    return *this;
00046 }
00047 
00048 /// ***** GL_LINES ****
00049 LinesGL::LinesGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00050                  const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices,
00051                  const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00052                  DrawAlg drawAlgType )
00053                  : PrimGL( GL_LINES, 2, 2, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00054 {}
00055 
00056 
00057 
00058 LinesGL::LinesGL( const LinesGL& rhs ) : PrimGL(rhs)
00059 {}
00060 
00061 LinesGL& LinesGL::operator=( const LinesGL& rhs ) 
00062 {
00063    if( &rhs != this ) {
00064       PrimGL::operator=(rhs);
00065    }
00066    return *this;
00067 }
00068 
00069 /// ***** GL_LINE_STRIP ****
00070 LineStripGL::LineStripGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00071                          const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00072                          const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00073                          DrawAlg drawAlgType )
00074                          : PrimGL( GL_LINE_STRIP, 1, 1, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00075 {}
00076 
00077 
00078 
00079 LineStripGL::LineStripGL( const LineStripGL& rhs ) : PrimGL(rhs)
00080 {}
00081 
00082 LineStripGL& LineStripGL::operator=( const LineStripGL& rhs ) 
00083 {
00084    if( &rhs != this ) {
00085       PrimGL::operator=(rhs);
00086    }
00087    return *this;
00088 }
00089 
00090 /// ***** GL_LINE_LOOP ****
00091 LineLoopGL::LineLoopGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00092                        const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00093                        const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00094                        DrawAlg drawAlgType )
00095                        : PrimGL( GL_LINE_LOOP, 1, 1, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00096 {}
00097 
00098 
00099 
00100 LineLoopGL::LineLoopGL( const LineLoopGL& rhs ) : PrimGL(rhs)
00101 {}
00102 
00103 LineLoopGL& LineLoopGL::operator=( const LineLoopGL& rhs ) 
00104 {
00105    if( &rhs != this ) {
00106       PrimGL::operator=(rhs);
00107    }
00108    return *this;
00109 }
00110 
00111 /// ***** GL_TRIANGLES ****
00112 TrianglesGL::TrianglesGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00113                          const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00114                          const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00115                          DrawAlg drawAlgType )
00116                          : PrimGL( GL_TRIANGLES, 3, 3, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00117 {}
00118 
00119 
00120 
00121 TrianglesGL::TrianglesGL( const TrianglesGL& rhs ) : PrimGL(rhs)
00122 {}
00123 
00124 TrianglesGL& TrianglesGL::operator=( const TrianglesGL& rhs ) 
00125 {
00126    if( &rhs != this ) {
00127       PrimGL::operator=(rhs);
00128    }
00129    return *this;
00130 }
00131 
00132 /// ***** GL_TRIANGLE_STRIP ****
00133 TriangleStripGL::TriangleStripGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00134                                  const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00135                                  const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00136                                  DrawAlg drawAlgType )
00137                                  : PrimGL( GL_TRIANGLE_STRIP, 3, 1, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00138 {}
00139 
00140 
00141 
00142 TriangleStripGL::TriangleStripGL( const TriangleStripGL& rhs ) : PrimGL(rhs)
00143 {}
00144 
00145 TriangleStripGL& TriangleStripGL::operator=( const TriangleStripGL& rhs ) 
00146 {
00147    if( &rhs != this ) {
00148       PrimGL::operator=(rhs);
00149    }
00150    return *this;
00151 }
00152 
00153 /// ***** GL_TRIANGLE_FAN ****
00154 TriangleFanGL::TriangleFanGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00155                              const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00156                              const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00157                              DrawAlg drawAlgType )
00158                              : PrimGL( GL_TRIANGLE_FAN, 3, 1, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00159 {}
00160 
00161 
00162 
00163 TriangleFanGL::TriangleFanGL( const TriangleFanGL& rhs ) : PrimGL(rhs)
00164 {}
00165 
00166 TriangleFanGL& TriangleFanGL::operator=( const TriangleFanGL& rhs ) 
00167 {
00168    if( &rhs != this ) {
00169       PrimGL::operator=(rhs);
00170    }
00171    return *this;
00172 }
00173 
00174 /// ***** GL_QUADS ****
00175 QuadsGL::QuadsGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00176                  const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00177                  const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00178                  DrawAlg drawAlgType )
00179                  : PrimGL( GL_QUADS, 4, 4, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00180 {}
00181 
00182 
00183 
00184 QuadsGL::QuadsGL( const QuadsGL& rhs ) : PrimGL(rhs)
00185 {}
00186 
00187 QuadsGL& QuadsGL::operator=( const QuadsGL& rhs ) 
00188 {
00189    if( &rhs != this ) {
00190       PrimGL::operator=(rhs);
00191    }
00192    return *this;
00193 }
00194 
00195 /// ***** GL_QUAD_STRIP ****
00196 QuadStripGL::QuadStripGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00197                          const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00198                          const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00199                          DrawAlg drawAlgType )
00200                          : PrimGL( GL_QUAD_STRIP, 4, 2, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00201 {}
00202 
00203 
00204 
00205 QuadStripGL::QuadStripGL( const QuadStripGL& rhs ) : PrimGL(rhs)
00206 {}
00207 
00208 QuadStripGL& QuadStripGL::operator=( const QuadStripGL& rhs ) 
00209 {
00210    if( &rhs != this ) {
00211       PrimGL::operator=(rhs);
00212    }
00213    return *this;
00214 }
00215 
00216 /// ***** GL_POLYGON ****
00217 PolygonGL::PolygonGL( const gutz::arrayw2f& vert, const gutz::arrayw2f& texCoord, 
00218                      const vec3f& scale, const gutz::arrayw2f& normal, const arrayw1ui& indices, 
00219                      const gutz::arrayw2f& color, const gutz::arrayw1ub& edgeFlag, 
00220                      DrawAlg drawAlgType )
00221                      : PrimGL( GL_POLYGON, 3, 1, scale, vert, texCoord, normal, indices, color, edgeFlag, drawAlgType )
00222 {}
00223 
00224 PolygonGL::PolygonGL( const PolygonGL& rhs ) : PrimGL(rhs)
00225 {}
00226 
00227 PolygonGL& PolygonGL::operator=( const PolygonGL& rhs ) 
00228 {
00229    if( &rhs != this ) {
00230       PrimGL::operator=(rhs);
00231    }
00232    return *this;
00233 }
00234 

Send questions, comments, and bug reports to:
jmk