#include <matrix/vlMath.h>
#include <QtGui/QMenu>
#include <QtGui/QAction>
using namespace makVrv;
using namespace makVrf;
:
DtMenu(de,
"DtGuiLocalCreateObjectMenu")
{
}
{
}
{
QMenu* menu =
new QMenu(QObject::tr(
"Object Demo"), parent);
return menu;
}
: myDe(de)
, myAction(0)
{
}
{
if (!myDe.destructing())
{
}
}
{
if (((
QAction*)sender())->isChecked())
{
{
}
}
{
remove();
}
}
{
{
{
}
}
}
{
{
}
}
{
}
{
}
{
{
}
}
{
std::vector<DtVector> localLocations;
localLocations.push_back(
DtVector(0, 0, 40));
localLocations.push_back(
DtVector(700, 700, 45));
localLocations.push_back(
DtVector(900, 350, 40));
return DtLocalObjectManager::instance(myDe).create(
DtCreateMenu::instance(myDe).nameToType("Route"), localLocations, 1, envData);
}
{
}
{
}
{
{
}
}
{
std::vector<DtVector> localLocations;
localLocations.push_back(
DtVector(100, 1700, 0));
localLocations.push_back(
DtVector(1000, 1700, 0));
localLocations.push_back(
DtVector(1000, 1600, 0));
localLocations.push_back(
DtVector(100, 1600, 0));
envData.
setColor(QColor(122, 122, 122, 122).rgba());
return DtLocalObjectManager::instance(myDe).create(
DtCreateMenu::instance(myDe).nameToType("Area"), localLocations, 1, envData);
}
{
}
{
}
{
{
}
}
{
std::vector<DtVector> localLocations;
localLocations.push_back(
DtVector(1500, 1500, 17.));
return DtLocalObjectManager::instance(myDe).create(
DtCreateMenu::instance(myDe).nameToType("Waypoint"), localLocations, 1, envData);
}
{
}
{
}
{
{
}
}
{
entData.setName("Demo M1A2");
entData.setHeading(DtDeg2Rad(45.0));
entData.setOverlayParent("Object Demo");
return DtLocalObjectManager::instance(myDe).create(entData, -1, true);
}
{
}
{
}
{
{
}
}
{
entData.setName("Demo Airbus");
entData.setHeading(DtDeg2Rad(90.0));
entData.setOverlayParent("Object Demo");
return DtLocalObjectManager::instance(myDe).create(entData, -1, true);
}
, myDe(de)
, myElement(0)
, myAction(0)
{
}
{
if (!myDe.destructing())
{
DtIntervisibilitySignaler::instance(myDe).signal_elementAboutToBeDestroyed.disconnect(
}
}
{
{
}
}
{
{
{
}
}
}
{
{
if (driver)
{
{
}
DtIntervisibilitySignaler::instance(myDe).signal_elementAboutToBeDestroyed.connect(
}
}
{
DtIntervisibilitySignaler::instance(myDe).signal_elementAboutToBeDestroyed.disconnect(
}
}
:
DtMenuItem(
"DtGuiLocalCreateObjectAttachedLine")
, myDe(de)
, myElement(0)
, myAction(0)
{
}
{
}
{
{
}
}
{
{
}
}
{
{
if (driver)
{
if (m1a2 && airbus)
{
{
}
}
}
}
{
}
}
{
{
{
}
}
}