Quarter: Update Quarter code

* Removes unused default constructors of the device classes
* Changes several doc strings
This commit is contained in:
wmayer
2024-06-28 12:40:39 +02:00
committed by Chris Hennes
parent 12e8fb1695
commit 2b08586059
21 changed files with 84 additions and 118 deletions

View File

@@ -46,26 +46,20 @@ using namespace SIM::Coin3D::Quarter;
\class SIM::Coin3D::Quarter::InputDevice InputDevice.h Quarter/devices/InputDevice.h
\brief The InputDevice class is the base class for devices such as
the Keyboard and Mouse. It can be subclassed to support other
devices.
keyboard and mouse. It can be subclassed to support other devices.
*/
InputDevice::InputDevice() : quarter(nullptr)
InputDevice::InputDevice(QuarterWidget* quarter) :
quarter(quarter)
{
this->mousepos = SbVec2s(0, 0);
}
InputDevice::InputDevice(QuarterWidget *quarter) : quarter(quarter)
{
this->mousepos = SbVec2s(0, 0);
}
/*!
Sets the mouseposition
Sets the mouse position
\param[in] pos position of mouse in pixelcoordinates
\param[in] pos position of mouse in pixel coordinates
*/
void
InputDevice::setMousePosition(const SbVec2s & pos)
{
@@ -84,10 +78,10 @@ InputDevice::setWindowSize(const SbVec2s & size)
}
/*!
Transforms a qevent into an soevent
Transforms a QEvent into an SoEvent
\param[in,out] soevent the transformed event
\param[in] qevent incoming qevent
\param[in,out] SoEvent the transformed event
\param[in] QEvent incoming QEvent
*/
void
InputDevice::setModifiers(SoEvent * soevent, const QInputEvent * qevent)