Logo Search packages:      
Sourcecode: gaia version File versions  Download package

void TestMasterLayer::RenderRegion ( Region rgn  )  [virtual]

Render one specific region of earth surface

Parameters:
rgn region to render

Implements MasterLayer.

Definition at line 28 of file TestMasterLayer.cc.

References MasterLayer::m_SlaveLayers, Region::v, Region::w, Vector3< T >::x, Vector2< T >::x, Vector3< T >::y, Vector2< T >::y, and Vector3< T >::z.

                                              {
      glBegin(GL_QUADS);
      glColor3f(rgn->w[0].x/2.0 + 0.25, 0.5 - rgn->w[0].x/2.0 - 0.25, rgn->w[0].y + 0.25);
      glVertex3f(rgn->v[0].x, rgn->v[0].y, rgn->v[0].z);
      glColor3f(rgn->w[1].x/2.0 + 0.25, 0.5 - rgn->w[1].x/2.0 - 0.25, rgn->w[0].y + 0.25);
      glVertex3f(rgn->v[1].x, rgn->v[1].y, rgn->v[1].z);
      glColor3f(rgn->w[1].x/2.0 + 0.25, 0.5 - rgn->w[1].x/2.0 - 0.25, rgn->w[1].y + 0.25);
      glVertex3f(rgn->v[2].x, rgn->v[2].y, rgn->v[2].z);
      glColor3f(rgn->w[0].x/2.0 + 0.25, 0.5 - rgn->w[0].x/2.0 - 0.25, rgn->w[1].y + 0.25);
      glVertex3f(rgn->v[3].x, rgn->v[3].y, rgn->v[3].z);
      glEnd();

      for (std::vector<SlaveLayer*>::iterator i = m_SlaveLayers.begin(); i < m_SlaveLayers.end(); i++) {
            if ((*i)->GetCap(SLAVELAYERCAP_OVERDRAW))
                  (*i)->Overdraw(rgn);
      }
}


Generated by  Doxygen 1.6.0   Back to index