diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-25 01:04:50 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-25 01:04:50 (GMT) |
commit | 8738cdc03451803014ca84f8614bdff1ff393ca9 (patch) | |
tree | db932377ea156d9caf5f47fec3b7bb9466273fe9 /src/OffscreenView.cc | |
parent | eb2c0d38f22f781cf59ca7078bfec260148ca584 (diff) |
split out axes functions. begin to split out opencsg pre-rendering
Diffstat (limited to 'src/OffscreenView.cc')
-rw-r--r-- | src/OffscreenView.cc | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/src/OffscreenView.cc b/src/OffscreenView.cc index 723d8d7..b074910 100644 --- a/src/OffscreenView.cc +++ b/src/OffscreenView.cc @@ -46,26 +46,10 @@ void OffscreenView::paintGL() this->camera_center[0], this->camera_center[1], this->camera_center[2], 0.0, 0.0, 1.0); - // glRotated(object_rot[0], 1.0, 0.0, 0.0); - // glRotated(object_rot[1], 0.0, 1.0, 0.0); - // glRotated(object_rot[2], 0.0, 0.0, 1.0); - - // Large gray axis cross inline with the model - // FIXME: This is always gray - adjust color to keep contrast with background - if (showaxes) - { - glLineWidth(1); - glColor3d(0.5, 0.5, 0.5); - glBegin(GL_LINES); - double l = 3*(this->camera_center - this->camera_eye).norm(); - glVertex3d(-l, 0, 0); - glVertex3d(+l, 0, 0); - glVertex3d(0, -l, 0); - glVertex3d(0, +l, 0); - glVertex3d(0, 0, -l); - glVertex3d(0, 0, +l); - glEnd(); - } + // fixme - showcrosshairs doesnt work with non-gimbal camera + // if (showcrosshairs) GLView::showCrosshairs(); + + if (showaxes) GLView::showAxes(); glDepthFunc(GL_LESS); glCullFace(GL_BACK); @@ -74,6 +58,9 @@ void OffscreenView::paintGL() glLineWidth(2); glColor3d(1.0, 0.0, 0.0); + //FIXME showSmallAxes wont work with non-gimbal camera + //if (showaxes) GLView::showSmallaxes(); + if (this->renderer) { this->renderer->draw(showfaces, showedges); } @@ -98,12 +85,3 @@ std::string OffscreenView::getRendererInfo() const return out.str(); } - -/* -void OffscreenView::setCamera(const Eigen::Vector3d &pos, const Eigen::Vector3d ¢er) -{ - this->camera_eye = pos; - this->camera_center = center; -} - -*/ |