mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029350: Visualization, OpenGl_Text - add Aspect_TODT_SHADOW text style
Within new style Aspect_TODT_SHADOW, a tiny shadow is drawn at right-bottom corner with one pixel shift, producing a slightly nicer visual look than Aspect_TODT_DEKALE.
This commit is contained in:
@@ -2554,6 +2554,8 @@ static int VDrawText (Draw_Interpretor& theDI,
|
||||
aDisplayType = Aspect_TODT_DIMENSION;
|
||||
else if (aType == "normal")
|
||||
aDisplayType = Aspect_TODT_NORMAL;
|
||||
else if (aType == "shadow")
|
||||
aDisplayType = Aspect_TODT_SHADOW;
|
||||
else
|
||||
{
|
||||
std::cout << "Error: wrong display type '" << aType << "'.\n";
|
||||
@@ -6584,7 +6586,7 @@ void ViewerTest::ObjectCommands(Draw_Interpretor& theCommands)
|
||||
"\n\t\t X and Y define the coordinate origin in 2d space relative to the view window"
|
||||
"\n\t\t Example: X=0 Y=0 is center, X=1 Y=1 is upper right corner etc..."
|
||||
"\n\t\t Z coordinate defines the gap from border of view window (except center position)."
|
||||
"\n\t\t: [-disptype {blend|decal|subtitle|dimension|normal}=normal}"
|
||||
"\n\t\t: [-disptype {blend|decal|shadow|subtitle|dimension|normal}=normal}"
|
||||
"\n\t\t: [-subcolor {R G B|name}=white]"
|
||||
"\n\t\t: [-noupdate]"
|
||||
"\n\t\t: [-plane NormX NormY NormZ DirX DirY DirZ]"
|
||||
|
Reference in New Issue
Block a user