mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0031547: Visualization - V3d_View creates V3d_Trihedron instance
- moved creating of V3d_View::myTrihedron from constructor to first attempt of displaying or calling it; - moved creating of V3d_Viewer::myRGrid and V3d_Viewer::myCGrid to to first attempt of displaying or calling them; - renamed V3d_Viewer::IsActive() to V3d_Viewer::IsGridActive(); - redefined V3d_View::Trihedron() and V3d_Viewer::Grid() by adding new argument toCreate for opportunity to check the existence of the objects without their recreating.
This commit is contained in:
@@ -255,7 +255,7 @@ void CGeometryDoc::MoveEvent2D(const Standard_Integer x,
|
||||
const Standard_Integer y,
|
||||
const Handle(V3d_View)& aView)
|
||||
{
|
||||
if(aView->Viewer()->Grid()->IsActive())
|
||||
if (aView->Viewer()->IsGridActive())
|
||||
{
|
||||
Standard_Real aGridX=0,aGridY=0,aGridZ=0;
|
||||
aView->ConvertToGrid(x,y,aGridX,aGridY,aGridZ);
|
||||
|
Reference in New Issue
Block a user