Text archives Help
- From: abe@sci.utah.edu
- To: rtrt@sci.utah.edu
- Subject: [MANTA] r276 - branches/newPointVector/UserInterface
- Date: Tue, 10 May 2005 13:50:43 -0600 (MDT)
Author: abe
Date: Tue May 10 13:50:43 2005
New Revision: 276
Modified:
branches/newPointVector/UserInterface/XWindowUI.cc
Log:
Change for Transform -> AffineTransform note reordering of operands.
Modified: branches/newPointVector/UserInterface/XWindowUI.cc
==============================================================================
--- branches/newPointVector/UserInterface/XWindowUI.cc (original)
+++ branches/newPointVector/UserInterface/XWindowUI.cc Tue May 10 13:50:43
2005
@@ -495,15 +495,15 @@
ias.rotate_from = projectToSphere(xpos, ypos, trackball_radius);
} else {
Vector to(projectToSphere(xpos, ypos, trackball_radius));
- Transform trans;
- trans.load_identity();
- trans.rotate(to, ias.rotate_from);
+ AffineTransform trans;
+ // trans.initWithIdentity();
+ trans.initWithRotation(ias.rotate_from, to);
ias.rotate_from = to;
Camera* camera = rtrt_interface->getCamera(channel);
rtrt_interface->addTransaction("rotate",
Callback::create(camera,
&Camera::transform,
- trans, Camera::LookAt));
+
trans,
Camera::LookAt));
ias.last_x = mouse_x;
ias.last_y = mouse_y;
}
- [MANTA] r276 - branches/newPointVector/UserInterface, abe, 05/10/2005
Archive powered by MHonArc 2.6.16.