Panda3D

Functions
mouseWatcher.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

`#include "mouseWatcher.h"`
`#include "config_tform.h"`
`#include "dataGraphTraverser.h"`
`#include "mouseWatcherParameter.h"`
`#include "mouseAndKeyboard.h"`
`#include "mouseData.h"`
`#include "buttonEventList.h"`
`#include "mouseButton.h"`
`#include "throw_event.h"`
`#include "eventParameter.h"`
`#include "dataNodeTransmit.h"`
`#include "transformState.h"`
`#include "displayRegion.h"`
`#include "stereoDisplayRegion.h"`
`#include "geomVertexWriter.h"`
`#include "geomLinestrips.h"`
`#include "geomPoints.h"`
`#include "dcast.h"`
`#include "indent.h"`
`#include "lightMutexHolder.h"`
`#include "nearly_zero.h"`
`#include <algorithm>`

Go to the source code of this file.

## Functions
| PT (GeomNode) MouseWatcher
| Returns a GeomNode that represents the mouse trail. More...

## Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
  drose

Date
  2002-03-12

Definition in file mouseWatcher.cxx.

## Function Documentation

## ◆ PT()

PT | ( | GeomNode |  | ) |

Returns a GeomNode that represents the mouse trail.

The intent is that you should reparent this GeomNode to Render2D, and then forget about it. The MouseWatcher will continually update the trail node. There is only one trail node, it does not create a new one each time you call get_trail_node.

This is not a particularly beautiful way to render a mouse trail. It is intended more for debugging purposes than for finished applications. Even so, It is suggested that you might want to apply a line thickness and antialias mode to the line — doing so makes it look a lot better.

Definition at line 400 of file mouseWatcher.cxx.