Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reynaldo Gil García
VTK
Commits
5dc51e61
Commit
5dc51e61
authored
6 years ago
by
Sankhesh Jhaveri
Browse files
Options
Downloads
Patches
Plain Diff
Make some orientation marker widget methods virtual
This allows customizations in consumer applications.
parent
cd3ffe5b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Interaction/Widgets/vtkOrientationMarkerWidget.h
+5
-5
5 additions, 5 deletions
Interaction/Widgets/vtkOrientationMarkerWidget.h
with
5 additions
and
5 deletions
Interaction/Widgets/vtkOrientationMarkerWidget.h
+
5
−
5
View file @
5dc51e61
...
...
@@ -174,9 +174,9 @@ protected:
void
*
clientdata
,
void
*
calldata
);
// ProcessEvents() dispatches to these methods.
void
OnLeftButtonDown
();
void
OnLeftButtonUp
();
void
OnMouseMove
();
virtual
void
OnLeftButtonDown
();
virtual
void
OnLeftButtonUp
();
virtual
void
OnMouseMove
();
// observer to update the renderer's camera
vtkOrientationMarkerWidgetObserver
*
Observer
;
...
...
@@ -207,10 +207,10 @@ protected:
// use to determine what state the mouse is over, edge1 p1, etc.
// returns a state from the WidgetState enum above
int
ComputeStateBasedOnPosition
(
int
X
,
int
Y
,
int
*
pos1
,
int
*
pos2
);
virtual
int
ComputeStateBasedOnPosition
(
int
X
,
int
Y
,
int
*
pos1
,
int
*
pos2
);
// set the cursor to the correct shape based on State argument
void
SetCursor
(
int
state
);
virtual
void
SetCursor
(
int
state
);
// adjust the viewport depending on state
void
MoveWidget
(
int
X
,
int
Y
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment