/** * Pushes the view-dependent transform onto the specified pick context. * @param pc the pick context. */ protected void pickBegin(PickContext pc) { super.pickBegin(pc); Matrix44 transform = computeTransform(pc); pc.pushLocalToWorld(transform); }
/** * Pushes the view-dependent transform onto the specified cull context. * @param cc the cull context. */ protected void cullBegin(CullContext cc) { super.cullBegin(cc); Matrix44 transform = computeTransform(cc); cc.pushLocalToWorld(transform); }
/** * Pushes the view-dependent transform onto the specified draw context. * @param dc the draw context. */ protected void drawBegin(DrawContext dc) { super.drawBegin(dc); Matrix44 transform = computeTransform(dc); dc.pushLocalToWorld(transform); glPushMatrix(); glMultMatrixd(transform.m,0); }