Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
pravdomil committed Apr 14, 2017
1 parent 3059e40 commit a265c86
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NativeTrackpad.mm
Expand Up @@ -16,6 +16,8 @@
Ptr<UserInterface> ui;

void zoom(double magnification) {
// TODO zoom to mouse cursor

auto camera = app->activeViewport()->camera();
camera->isSmoothTransition(false);

Expand All @@ -37,6 +39,8 @@ void zoom(double magnification) {
}

void orbit(double deltaX, double deltaY) {
// TODO true orbit function

Ptr<Camera> camera = app->activeViewport()->camera();
camera->isSmoothTransition(false);

Expand All @@ -63,6 +67,8 @@ void orbit(double deltaX, double deltaY) {
}

double getViewportCameraTargetDistance() {
// TODO this is not true distance

auto camera = app->activeViewport()->camera();
return camera->eye()->distanceTo(camera->target()) + camera->viewExtents();
}
Expand Down Expand Up @@ -101,6 +107,8 @@ void pan(double deltaX, double deltaY) {
}

void install() {
// TODO handle only events to QTCanvas

NSEvent * (^handler)(NSEvent*);
handler = ^NSEvent*(NSEvent* event) {
if(event.modifierFlags & NSEventModifierFlagShift) {
Expand Down

0 comments on commit a265c86

Please sign in to comment.