def draw(self):
     self.dlg = TextDialog(title="CardMode", message="Constructing cube, please wait")
     self.dlg.draw()
     # Force repaint for showing the dialog before the images.
     base.graphicsEngine.renderFrame()
     base.graphicsEngine.renderFrame()
     
     # Let the coordinate construct new cube.
     # NOTE: Should this be self.drawing_area instead of coordinate
     
     if self.coordinate.x is None and self.coordinate.y is None and self.coordinate.z is None:
         # we need to clear all filters!!!
         filterManager.clear(True)
         
         messenger.send(CUBE_MENU_RELOAD_FILTERS)
         self.dlg.Close()
         return
     else:
         self.coordinate.constructCube()
         
         # Draw the cord.
         self.coordinate.draw()
         
         # Reload the filter list
         messenger.send(CUBE_MENU_RELOAD_FILTERS)
         self.dlg.Close()