26 #include <Inventor/events/SoMouseButtonEvent.h>
31 this->setBackgroundColor(SbColor(100 / 255.0f, 100 / 255.0f, 100 / 255.0f));
32 this->setAccumulationBuffer(
false);
33 this->setHeadlight(
true);
34 this->setViewing(
false);
35 this->setDecoration(
false);
38 this->setAntialiasing(
true, 4);
41 this->setTransparencyType(SoGLRenderAction::SORTED_OBJECT_BLEND);
42 this->setFeedbackVisibility(
true);
47 scene3D::MinimapViewer::processSoEvent(
const SoEvent*
const event)
49 const SoType type(event->getTypeId());
53 if (type.isDerivedFrom(SoMouseButtonEvent::getClassTypeId()))
55 SoMouseButtonEvent*
const ev = (SoMouseButtonEvent*)event;
56 const int button = ev->getButton();
59 if (button == SoMouseButtonEvent::BUTTON1)