X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLIGHTGUI%2FLIGHTGUI_TextPrs.cxx;h=444e823a75ef73014de0b84915631260570b73d9;hb=becc0dc93a016e0aa36fad8671ea396cb667d436;hp=4b93b84cd47c317921b01f5a171f47377aaa159f;hpb=b4aeec97c42b2101ec064a7a6781fa9f58f69eb8;p=samples%2Flight.git diff --git a/src/LIGHTGUI/LIGHTGUI_TextPrs.cxx b/src/LIGHTGUI/LIGHTGUI_TextPrs.cxx index 4b93b84..444e823 100644 --- a/src/LIGHTGUI/LIGHTGUI_TextPrs.cxx +++ b/src/LIGHTGUI/LIGHTGUI_TextPrs.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2005-2013 OPEN CASCADE +// Copyright (C) 2005-2014 OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -32,6 +32,10 @@ #include +#if OCC_VERSION_LARGE > 0x060505 +#include +#endif + /*! \class LIGHTGUI_TextPrs \brief Presentation object for the string line. @@ -87,7 +91,13 @@ void LIGHTGUI_TextPrs::Compute( const Handle(PrsMgr_PresentationManager3d)& /*pr Graphic3d_Vertex aTextPos; // aTextPos.SetCoord( myPos.X(), aPos.Y(), aPos.Z() ); aTextPos.SetCoord( myPos.X(), myPos.Y(), myPos.Z() ); +#if OCC_VERSION_LARGE <= 0x060505 aGroup->Marker( aTextPos ); +#else + Handle(Graphic3d_ArrayOfPoints) anArrayOfPoints = new Graphic3d_ArrayOfPoints (1); + anArrayOfPoints->AddVertex(myPos.X(), myPos.Y(), myPos.Z()); + aGroup->AddPrimitiveArray(anArrayOfPoints); +#endif // aGroup->Text( aNodeIter.Value().ToCString(), aTextPos, aCharSize ); aGroup->Text( myString, aTextPos, aCharSize ); #if OCC_VERSION_LARGE <= 0x060504