proj home

Files   Classes   Functions   Hierarchy  

pointsgraph_axes_circle Class Reference

Circle point axes. More...

#include <pointsgraph.h>

Inheritance diagram for pointsgraph_axes_circle:
Collaboration diagram for pointsgraph_axes_circle:

List of all members.

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

gobjContainergraphics
 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?


Detailed Description

Circle point axes.

Definition at line 154 of file pointsgraph.h.


Constructor & Destructor Documentation

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 (  ) 

Cleanup deleting graphics.

Definition at line 124 of file pointsgraph.cpp.

References graphics.

00125 {
00126   delete graphics;
00127   graphics=0;
00128 }


Member Function Documentation

void pointsgraph_axes_circle::draw (  )  [virtual]

Draw graphics.

Implements gobj.

Definition at line 159 of file pointsgraph.cpp.

References gobjContainer::draw(), and graphics.

00160 {
00161   assert(graphics);
00162   graphics->draw();
00163 }

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().

00166 {
00167   assert(graphics);
00168   graphics->push(g);
00169 }

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 }


Member Data Documentation

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().

Can move the axes origin.

Definition at line 162 of file pointsgraph.h.

Referenced by update().

Definition at line 171 of file pointsgraph.h.

Referenced by pointsgraph_axes_circle(), and update().

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().

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().


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:50:10 2011 for Chelton Evans Source by  doxygen 1.5.8