Files Classes Functions Hierarchy
#include <pointsgraph.h>
Public Member Functions | |
| void | push (gobj *g) |
| Assumes created with new, adds to graphics. | |
| pointsgraph_axes_circle () | |
| ~pointsgraph_axes_circle () | |
| Cleanup deleting graphics. | |
| void | update () |
| Write graphics. | |
| void | draw () |
| Draw graphics. | |
Public Attributes | |
| gobjContainer * | graphics |
| Container holding realized graphics. | |
| point3< double > | origin |
| Can move the axes origin. | |
| gobjQuadric | quadric |
| gobjglColor3d | xaxiscolor |
| X-axis color. | |
| gobjglColor3d | yaxiscolor |
| Y-axis color. | |
| vector< double > | xaxis |
| Points on x-axis. | |
| vector< double > | yaxis |
| Points on y-axis. | |
| bool | disablelighting |
| Uniform colored points? | |
Definition at line 154 of file pointsgraph.h.
| pointsgraph_axes_circle::pointsgraph_axes_circle | ( | ) |
Definition at line 110 of file pointsgraph.cpp.
References disablelighting, graphics, gobjQuadric::loops, quadric, gobjQuadric::radius, gobjQuadric::slices, xaxiscolor, and yaxiscolor.
00111 { 00112 quadric.radius = 0.02; 00113 quadric.slices=20; 00114 quadric.loops=6; 00115 00116 disablelighting=true; 00117 00118 xaxiscolor = gobjglColor3d(0.0,.62,.33); 00119 yaxiscolor = gobjglColor3d(0.05,.12,.83); 00120 00121 graphics = new gobjContainer(); 00122 }
| pointsgraph_axes_circle::~pointsgraph_axes_circle | ( | ) |
| void pointsgraph_axes_circle::draw | ( | ) | [virtual] |
Draw graphics.
Implements gobj.
Definition at line 159 of file pointsgraph.cpp.
References gobjContainer::draw(), and graphics.
| void pointsgraph_axes_circle::push | ( | gobj * | g | ) |
Assumes created with new, adds to graphics.
Definition at line 165 of file pointsgraph.cpp.
References graphics, and gobjContainer::push().
Referenced by update().
| void pointsgraph_axes_circle::update | ( | ) |
Write graphics.
Definition at line 130 of file pointsgraph.cpp.
References disablelighting, graphics, gobjContainer::nuke(), origin, push(), quadric, point3< T >::x, xaxis, xaxiscolor, point3< T >::y, yaxis, yaxiscolor, and point3< T >::z.
Referenced by windowscaleD2test::test002().
00131 { 00132 assert(graphics); 00133 00134 graphics->nuke(); 00135 00136 push(new gobjglPushAttrib(GL_CURRENT_BIT)); 00137 push(new gobjglPushAttrib(GL_LIGHTING_BIT)); 00138 if (disablelighting) 00139 push(new gobjglDisable(GL_LIGHTING)); 00140 00141 push(new gobjglColor3d(xaxiscolor)); 00142 for (uint i=0; i<xaxis.size(); ++i) 00143 { 00144 push(new 00145 gobjMySphereDraw(point3<double>(origin.x+xaxis[i],origin.y,origin.z),&quadric)); 00146 } 00147 00148 push(new gobjglColor3d(yaxiscolor)); 00149 for (uint i=0; i<yaxis.size(); ++i) 00150 { 00151 push(new 00152 gobjMySphereDraw(point3<double>(origin.x,origin.y+yaxis[i],origin.z),&quadric)); 00153 } 00154 00155 push(new gobjglPopAttrib()); 00156 push(new gobjglPopAttrib()); 00157 }
Uniform colored points?
Definition at line 182 of file pointsgraph.h.
Referenced by pointsgraph_axes_circle(), and update().
Container holding realized graphics.
Definition at line 159 of file pointsgraph.h.
Referenced by draw(), pointsgraph_axes_circle(), push(), update(), and ~pointsgraph_axes_circle().
Definition at line 171 of file pointsgraph.h.
Referenced by pointsgraph_axes_circle(), and update().
| vector<double> pointsgraph_axes_circle::xaxis |
Points on x-axis.
Definition at line 177 of file pointsgraph.h.
Referenced by windowscaleD2test::test002(), and update().
X-axis color.
Definition at line 173 of file pointsgraph.h.
Referenced by pointsgraph_axes_circle(), and update().
| vector<double> pointsgraph_axes_circle::yaxis |
Points on y-axis.
Definition at line 179 of file pointsgraph.h.
Referenced by windowscaleD2test::test002(), and update().
Y-axis color.
Definition at line 175 of file pointsgraph.h.
Referenced by pointsgraph_axes_circle(), and update().
1.5.8