------------------------------------------------------------------------------
| 49 | |
| 50 | //------------------------------------------------------------------------------ |
| 51 | void 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 | //------------------------------------------------------------------------------ |
| 85 | vtkSmartPointer<vtkActor> vtk3DCursorRepresentation::vtkInternals::CreateCrossCursor() |
no test coverage detected