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

Method UpdateCachedInformations

Rendering/Annotation/vtkAxisActor2D.cxx:1007–1019  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1005
1006//------------------------------------------------------------------------------
1007void vtkAxisActor2D::UpdateCachedInformations(vtkViewport* viewport)
1008{
1009 int* x = this->PositionCoordinate->GetComputedViewportValue(viewport);
1010 this->LastPosition[0] = x[0];
1011 this->LastPosition[1] = x[1];
1012 x = this->Position2Coordinate->GetComputedViewportValue(viewport);
1013 this->LastPosition2[0] = x[0];
1014 this->LastPosition2[1] = x[1];
1015
1016 int* size = viewport->GetSize();
1017 this->LastSize[0] = size[0];
1018 this->LastSize[1] = size[1];
1019}
1020
1021//------------------------------------------------------------------------------
1022void vtkAxisActor2D::BuildAxis(vtkViewport* viewport)

Callers 1

BuildAxisMethod · 0.95

Calls 2

GetSizeMethod · 0.45

Tested by

no test coverage detected