Skip to content
Snippets Groups Projects
Commit a49a015d authored by Nicolas Vuaille's avatar Nicolas Vuaille
Browse files

Fix build using VTK_FUTURE_CONST

vtkImplicitFrustumRepresentation calls
`this->Frustum->GetBottomPlane()->GetNormal()`
where `GetNormal` is not const but `GetBottomPlane` is.
Looks hard to make vtkPlane API const-correct, so remove const
from vtkFrustum::GetXXXPlane().

Was introduced in !11575
parent 032df85c
No related branches found
No related tags found
No related merge requests found
......@@ -74,11 +74,11 @@ public:
* @note: Do not attempt to modify ! Use the vertical/horizontal angles and near plane distance to
* parameterize the frustum instead.
*/
VTK_FUTURE_CONST vtkPlane* GetTopPlane() { return this->TopPlane; }
VTK_FUTURE_CONST vtkPlane* GetBottomPlane() { return this->BottomPlane; }
VTK_FUTURE_CONST vtkPlane* GetRightPlane() { return this->RightPlane; }
VTK_FUTURE_CONST vtkPlane* GetLeftPlane() { return this->LeftPlane; }
VTK_FUTURE_CONST vtkPlane* GetNearPlane() { return this->NearPlane; }
vtkPlane* GetTopPlane() { return this->TopPlane; }
vtkPlane* GetBottomPlane() { return this->BottomPlane; }
vtkPlane* GetRightPlane() { return this->RightPlane; }
vtkPlane* GetLeftPlane() { return this->LeftPlane; }
vtkPlane* GetNearPlane() { return this->NearPlane; }
///@}
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment