1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027359: Visualization - add support of flipping for textured text

Added option for OpenGl_Text to use previous model-view state.
Added interface to enable this option in Prs3d_Text
Added option to enable flipping in AIS_NameLabel

Eliminated warning
This commit is contained in:
aba
2016-04-07 11:50:33 +03:00
committed by bugmaster
parent 016e595986
commit 3f1eb0abf9
12 changed files with 210 additions and 25 deletions

View File

@@ -1149,7 +1149,8 @@ void Graphic3d_Group::Text (const TCollection_ExtendedString& theText,
const Graphic3d_TextPath theTP,
const Graphic3d_HorizontalTextAlignment theHTA,
const Graphic3d_VerticalTextAlignment theVTA,
const Standard_Boolean theToEvalMinMax)
const Standard_Boolean theToEvalMinMax,
const Standard_Boolean theHasOwnAnchor)
{
const NCollection_String aText ((Standard_Utf16Char*)(theText.ToExtString()));
Text (aText.ToCString(),
@@ -1159,7 +1160,8 @@ void Graphic3d_Group::Text (const TCollection_ExtendedString& theText,
theTP,
theHTA,
theVTA,
theToEvalMinMax);
theToEvalMinMax,
theHasOwnAnchor);
}
// =======================================================================
@@ -1173,7 +1175,8 @@ void Graphic3d_Group::Text (const Standard_CString /*theText*/,
const Graphic3d_TextPath /*theTp*/,
const Graphic3d_HorizontalTextAlignment /*theHta*/,
const Graphic3d_VerticalTextAlignment /*theVta*/,
const Standard_Boolean theToEvalMinMax)
const Standard_Boolean theToEvalMinMax,
const Standard_Boolean /*theHasOwnAnchor*/)
{
if (IsDeleted())
{

View File

@@ -226,7 +226,8 @@ public:
const Graphic3d_TextPath theTp,
const Graphic3d_HorizontalTextAlignment theHTA,
const Graphic3d_VerticalTextAlignment theVTA,
const Standard_Boolean theToEvalMinMax = Standard_True);
const Standard_Boolean theToEvalMinMax = Standard_True,
const Standard_Boolean theHasOwnAnchor = Standard_True);
//! Creates the string <theText> at orientation <theOrientation> in 3D space.
Standard_EXPORT virtual void Text (const TCollection_ExtendedString& theText,
@@ -236,7 +237,8 @@ public:
const Graphic3d_TextPath theTp,
const Graphic3d_HorizontalTextAlignment theHTA,
const Graphic3d_VerticalTextAlignment theVTA,
const Standard_Boolean theToEvalMinMax = Standard_True);
const Standard_Boolean theToEvalMinMax = Standard_True,
const Standard_Boolean theHasOwnAnchor = Standard_True);
//! Adds an array of primitives for display