MCPcopy Create free account
hub / github.com/Kitware/VTK / SpecifiedToDisplay

Method SpecifiedToDisplay

Rendering/Core/vtkTextActor.cxx:889–916  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

887
888//------------------------------------------------------------------------------
889void vtkTextActor::SpecifiedToDisplay(double* pos, vtkViewport* vport, int specified)
890{
891 if (!vport)
892 {
893 return;
894 }
895
896 switch (specified)
897 {
898 case VTK_WORLD:
899 vport->WorldToView(pos[0], pos[1], pos[2]);
900 [[fallthrough]];
901 case VTK_VIEW:
902 vport->ViewToNormalizedViewport(pos[0], pos[1], pos[2]);
903 [[fallthrough]];
904 case VTK_NORMALIZED_VIEWPORT:
905 vport->NormalizedViewportToViewport(pos[0], pos[1]);
906 [[fallthrough]];
907 case VTK_VIEWPORT:
908 vport->ViewportToNormalizedDisplay(pos[0], pos[1]);
909 [[fallthrough]];
910 case VTK_NORMALIZED_DISPLAY:
911 vport->NormalizedDisplayToDisplay(pos[0], pos[1]);
912 [[fallthrough]];
913 case VTK_DISPLAY:
914 break;
915 }
916}
917
918//------------------------------------------------------------------------------
919void vtkTextActor::DisplayToSpecified(double* pos, vtkViewport* vport, int specified)

Callers 1

ComputeRectangleMethod · 0.95

Tested by

no test coverage detected