11// Begin CVS Header
22// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLLayoutRenderer.cpp,v $
3- // $Revision: 1.5.2.3 $
3+ // $Revision: 1.5.2.4 $
44// $Name: $
55// $Author: gauges $
6- // $Date: 2010/10/03 16:25:21 $
6+ // $Date: 2010/10/05 18:58:45 $
77// End CVS Header
88
99// Copyright (C) 2010 by Pedro Mendes, Virginia Tech Intellectual
@@ -328,7 +328,7 @@ void CLLayoutRenderer::draw_curve(const CLCurve* pCurve, bool drawBasepoints)
328328 unsigned int i, iMax = pCurve->getNumCurveSegments ();
329329 const CLLineSegment* pLineSegment = NULL ;
330330 // apply the current transformation
331- glMatrixMode (GL_MODELVIEW_MATRIX );
331+ glMatrixMode (GL_MODELVIEW );
332332 glPushMatrix ();
333333
334334 if (memcmp (mCurrentAttributes .mpTransform , CLTransformation::getIdentityMatrix (), 12 *sizeof (double )))
@@ -684,7 +684,7 @@ void CLLayoutRenderer::draw_curve(const CLCurve* pCurve, bool drawBasepoints)
684684 this ->map_arrow_head (*pP, v, mCurrentAttributes .mEndHead );
685685 }
686686
687- glMatrixMode (GL_MODELVIEW_MATRIX );
687+ glMatrixMode (GL_MODELVIEW );
688688 glPopMatrix ();
689689}
690690
@@ -701,7 +701,7 @@ void CLLayoutRenderer::draw_curve(const CLRenderCurve* pCurve, const CLBoundingB
701701 CLLayoutRenderer::extract_1d_attributes (pCurve, &mCurrentAttributes );
702702 CLLayoutRenderer::extract_arrowhead_information (pCurve, &mCurrentAttributes );
703703 // apply the current transformation
704- glMatrixMode (GL_MODELVIEW_MATRIX );
704+ glMatrixMode (GL_MODELVIEW );
705705 glPushMatrix ();
706706
707707 if (memcmp (mCurrentAttributes .mpTransform , CLTransformation::getIdentityMatrix (), 12 *sizeof (double )))
@@ -878,7 +878,7 @@ void CLLayoutRenderer::draw_curve(const CLRenderCurve* pCurve, const CLBoundingB
878878 }
879879
880880 this ->restore_current_attributes ();
881- glMatrixMode (GL_MODELVIEW_MATRIX );
881+ glMatrixMode (GL_MODELVIEW );
882882 glPopMatrix ();
883883}
884884
@@ -1120,7 +1120,7 @@ void CLLayoutRenderer::draw_group(const CLGroup* pGroup, const CLBoundingBox* pB
11201120 mCurrentAttributes .mZ = pBB->getPosition ().getZ ();
11211121 mCurrentAttributes .mWidth = pBB->getDimensions ().getWidth ();
11221122 mCurrentAttributes .mHeight = pBB->getDimensions ().getHeight ();
1123- glMatrixMode (GL_MODELVIEW_MATRIX );
1123+ glMatrixMode (GL_MODELVIEW );
11241124 glPushMatrix ();
11251125
11261126 // apply the current transformation
@@ -1213,7 +1213,7 @@ void CLLayoutRenderer::draw_group(const CLGroup* pGroup, const CLBoundingBox* pB
12131213
12141214 // restore the attributes
12151215 this ->restore_current_attributes ();
1216- glMatrixMode (GL_MODELVIEW_MATRIX );
1216+ glMatrixMode (GL_MODELVIEW );
12171217 glPopMatrix ();
12181218}
12191219
@@ -1379,7 +1379,7 @@ void CLLayoutRenderer::draw_text(const CLTextTextureSpec* pTexture, double x, do
13791379 // enable 2D texturing
13801380 glBindTexture (GL_TEXTURE_2D, pTexture->mTextureName );
13811381 glEnable (GL_TEXTURE_2D);
1382- glMatrixMode (GL_MODELVIEW_MATRIX );
1382+ glMatrixMode (GL_MODELVIEW );
13831383 glPushMatrix ();
13841384 glTranslated (xOffset, yOffset, zOffset);
13851385
@@ -1510,7 +1510,7 @@ void CLLayoutRenderer::draw_image(const CLImage* pImage, const CLBoundingBox* pB
15101510 CLRenderPoint p (pImage->getX (), pImage->getY ());
15111511 CLPoint point = CLLayoutRenderer::convert_to_absolute (&p, pBB);
15121512 // apply the current transformation
1513- glMatrixMode (GL_MODELVIEW_MATRIX );
1513+ glMatrixMode (GL_MODELVIEW );
15141514 glPushMatrix ();
15151515
15161516 if (memcmp (mCurrentAttributes .mpTransform , Transformation::getIdentityMatrix (), 12 *sizeof (double )))
@@ -1527,7 +1527,7 @@ void CLLayoutRenderer::draw_image(const CLImage* pImage, const CLBoundingBox* pB
15271527
15281528 // enable 2D texturing
15291529 glEnable (GL_TEXTURE_2D);
1530- glMatrixMode (GL_MODELVIEW_MATRIX );
1530+ glMatrixMode (GL_MODELVIEW );
15311531 glPushMatrix ();
15321532 glTranslated (point.getX (), point.getY (), point.getZ ());
15331533 glBegin (GL_POLYGON);
@@ -1551,7 +1551,7 @@ void CLLayoutRenderer::draw_image(const CLImage* pImage, const CLBoundingBox* pB
15511551
15521552 // restore the attributes
15531553 this ->restore_current_attributes ();
1554- glMatrixMode (GL_MODELVIEW_MATRIX );
1554+ glMatrixMode (GL_MODELVIEW );
15551555 glPopMatrix ();
15561556}
15571557
@@ -2456,7 +2456,7 @@ void CLLayoutRenderer::map_gradient_color(double rel_distance, const CLGradientB
24562456 */
24572457void CLLayoutRenderer::draw_datapoints (GLdouble* pData, unsigned int numPoints, const CLBoundingBox* pBB, bool doTesselation, float xOffset, float yOffset, float zOffset)
24582458{
2459- glMatrixMode (GL_MODELVIEW_MATRIX );
2459+ glMatrixMode (GL_MODELVIEW );
24602460 glPushMatrix ();
24612461 glTranslatef (xOffset, yOffset, zOffset);
24622462
@@ -2674,7 +2674,7 @@ void CLLayoutRenderer::map_arrow_head(const CLPoint& mapTo, const CLPoint& direc
26742674 const CLLineEnding* pLineEnding = this ->mpResolver ->getLineEnding (headId);
26752675 assert (pLineEnding);
26762676 // TODO create an error if the line ending was not found
2677- glMatrixMode (GL_MODELVIEW_MATRIX );
2677+ glMatrixMode (GL_MODELVIEW );
26782678 glPushMatrix ();
26792679 glLoadIdentity ();
26802680 glTranslated (mapTo.getX (), mapTo.getY (), mapTo.getZ ());
0 commit comments