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

Method UpdateCursor

Interaction/Widgets/vtk3DCursorRepresentation.cxx:51–82  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

49
50//------------------------------------------------------------------------------
51void vtk3DCursorRepresentation::vtkInternals::UpdateCursor()
52{
53 if (!this->NeedUpdate)
54 {
55 return;
56 }
57
58 this->NeedUpdate = false;
59
60 switch (this->Parent->GetShape())
61 {
62 case CUSTOM_SHAPE:
63 {
64 if (this->Parent->CustomCursor)
65 {
66 this->Cursor = this->Parent->GetCustomCursor();
67 }
68 break;
69 }
70 case SPHERE_SHAPE:
71 {
72 this->Cursor = this->CreateSphereCursor();
73 break;
74 }
75 case CROSS_SHAPE:
76 default:
77 {
78 this->Cursor = this->CreateCrossCursor();
79 break;
80 }
81 }
82}
83
84//------------------------------------------------------------------------------
85vtkSmartPointer<vtkActor> vtk3DCursorRepresentation::vtkInternals::CreateCrossCursor()

Callers 2

BuildRepresentationMethod · 0.45

Calls 3

CreateSphereCursorMethod · 0.95
CreateCrossCursorMethod · 0.95
GetShapeMethod · 0.45

Tested by

no test coverage detected