mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026511: Build fails with VTK 6.3rc1
Obsolete typedef "vtkFloatingPointType" is replaced by "double" in VIS and DRAW
This commit is contained in:
@@ -73,15 +73,15 @@ float IVtkTools_ShapePicker::GetTolerance( ) const
|
||||
// Method: convertDisplayToWorld
|
||||
// Purpose: Convert display coordinates to world coordinates
|
||||
//============================================================================
|
||||
bool IVtkTools_ShapePicker::convertDisplayToWorld (vtkRenderer *theRenderer,
|
||||
vtkFloatingPointType theDisplayCoord[3],
|
||||
vtkFloatingPointType theWorldCoord[3])
|
||||
bool IVtkTools_ShapePicker::convertDisplayToWorld (vtkRenderer *theRenderer,
|
||||
double theDisplayCoord[3],
|
||||
double theWorldCoord[3])
|
||||
{
|
||||
// Convert the selection point into world coordinates.
|
||||
theRenderer->SetDisplayPoint (theDisplayCoord[0], theDisplayCoord[1], theDisplayCoord[2]);
|
||||
theRenderer->DisplayToWorld();
|
||||
|
||||
vtkFloatingPointType* const aCoords = theRenderer->GetWorldPoint();
|
||||
double* const aCoords = theRenderer->GetWorldPoint();
|
||||
if (aCoords[3] == 0.0)
|
||||
{
|
||||
return false;
|
||||
|
@@ -124,8 +124,8 @@ protected:
|
||||
|
||||
//! Convert display coordinates to world coordinates
|
||||
static bool convertDisplayToWorld (vtkRenderer *theRenderer,
|
||||
vtkFloatingPointType theDisplayCoord[3],
|
||||
vtkFloatingPointType theWorldCoord[3] );
|
||||
double theDisplayCoord[3],
|
||||
double theWorldCoord[3] );
|
||||
|
||||
private: // not copyable
|
||||
IVtkTools_ShapePicker (const IVtkTools_ShapePicker&);
|
||||
|
Reference in New Issue
Block a user