25 #include <Inventor/events/SoMouseButtonEvent.h>
29 this->setBackgroundColor(SbColor(100 / 255.0f, 100 / 255.0f, 100 / 255.0f));
30 this->setAccumulationBuffer(
false);
31 this->setHeadlight(
true);
32 this->setViewing(
false);
33 this->setDecoration(
false);
36 this->setAntialiasing(
true, 4);
39 this->setTransparencyType(SoGLRenderAction::SORTED_OBJECT_BLEND);
40 this->setFeedbackVisibility(
true);
44 SbBool scene3D::MinimapViewer::processSoEvent(
const SoEvent*
const event)
46 const SoType type(event->getTypeId());
50 if (type.isDerivedFrom(SoMouseButtonEvent::getClassTypeId()))
52 SoMouseButtonEvent*
const ev = (SoMouseButtonEvent*) event;
53 const int button = ev->getButton();
56 if (button == SoMouseButtonEvent::BUTTON1)