Exemplo n.º 1
0
    def __init__(self, pickablepoint, camera):
        """ """
        self.pickablepoint = pickablepoint
        self.camera = camera

        # FIXME: figure out a better way than passing the nodepath in here
        self._dragger_nodepath_handle = pickablepoint.get_p3d_nodepath()
        # this should only be used after the picking event and when the draggers are searched for the nodepath that was picked

        self.position_before_dragging = None
        self.last_frame_drag_pos = None

        DragDropEventManager.__init__(self)

        self.add_on_state_change_function(self.update)
Exemplo n.º 2
0
    def __init__(self, object_for_dragger, camera_gear, panel_geometry,
                 panel_graphics):
        """ """
        self.object_for_dragger = object_for_dragger
        self.camera_gear = camera_gear
        self.panel_graphics = panel_graphics  # object to attach the drawn geometry to

        # # FIXME: figure out a better way than passing the nodepath in here
        self._dragger_nodepath_handle = object_for_dragger.get_p3d_nodepath()
        # # this should only be used after the picking event and when the draggers are searched for the nodepath that was picked

        self.panel_geometry = panel_geometry
        self.current_line = None

        DragDropEventManager.__init__(self)
        self.add_on_state_change_function(self.update)