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

Method SetNormalToCamera

Interaction/Widgets/vtkCoordinateFrameRepresentation.cxx:1224–1234  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1222
1223//------------------------------------------------------------------------------
1224void vtkCoordinateFrameRepresentation::SetNormalToCamera()
1225{
1226 if (!this->Renderer)
1227 {
1228 return;
1229 }
1230
1231 double normal[3];
1232 this->Renderer->GetActiveCamera()->GetViewPlaneNormal(normal);
1233 this->SetNormal(normal);
1234}
1235
1236//------------------------------------------------------------------------------
1237void vtkCoordinateFrameRepresentation::SetDirection(double x, double y, double z)

Callers 2

SetLockNormalToCameraMethod · 0.95
WidgetInteractionMethod · 0.95

Calls 2

SetNormalMethod · 0.95
GetActiveCameraMethod · 0.80

Tested by

no test coverage detected