COPASI API  4.16.103
Public Member Functions | List of all members
Label3D Class Reference

#include <qwt3dBars.h>

Public Member Functions

void draw (Qwt3D::Triple const &, double w, double h)
 

Detailed Description

Definition at line 44 of file qwt3dBars.h.

Member Function Documentation

void Label3D::draw ( Qwt3D::Triple const &  pos,
double  w,
double  h 
)

Definition at line 156 of file qwt3dBars.cpp.

157 {
158  double gap = 0.3;
159  double posZ;
160 
161  if (pos.z < 0)
162  posZ = 0;
163  else
164  posZ = pos.z;
165 
166  glColor3d(1, 1, 1);
167  glBegin(GL_QUADS);
168  glVertex3d(pos.x - w, pos.y, posZ + gap);
169  glVertex3d(pos.x + w, pos.y, posZ + gap);
170  glVertex3d(pos.x + w, pos.y, posZ + gap + h);
171  glVertex3d(pos.x - w, pos.y, posZ + gap + h);
172  glEnd();
173  glColor3d(0.4, 0, 0);
174  glBegin(GL_LINE_LOOP);
175  glVertex3d(pos.x - w, pos.y, posZ + gap);
176  glVertex3d(pos.x + w, pos.y, posZ + gap);
177  glVertex3d(pos.x + w, pos.y, posZ + gap + h);
178  glVertex3d(pos.x - w, pos.y, posZ + gap + h);
179  glEnd();
180  glBegin(GL_LINES);
181  glVertex3d(pos.x, pos.y, posZ);
182  glVertex3d(pos.x, pos.y, posZ + gap);
183  glEnd();
184 }

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