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

Method SetDirection

Interaction/Widgets/vtkCoordinateFrameRepresentation.cxx:1237–1247  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1235
1236//------------------------------------------------------------------------------
1237void vtkCoordinateFrameRepresentation::SetDirection(double x, double y, double z)
1238{
1239 double* o = this->GetOrigin();
1240 double newNormal[3];
1241 newNormal[0] = x - o[0];
1242 newNormal[1] = y - o[1];
1243 newNormal[2] = z - o[2];
1244 vtkMath::Normalize(newNormal);
1245 this->SetNormal(newNormal);
1246 this->BuildRepresentation();
1247}
1248
1249//------------------------------------------------------------------------------
1250void vtkCoordinateFrameRepresentation::SetDirection(double point[3])

Callers 2

PickDirectionPointMethod · 0.95
BuildRepresentationMethod · 0.45

Calls 4

SetNormalMethod · 0.95
BuildRepresentationMethod · 0.95
NormalizeFunction · 0.50
GetOriginMethod · 0.45

Tested by

no test coverage detected