コード例 #1
0
void PixelToBufferProcessor::handleInteractionEventsChanged() {
    if (handleInteractionEvents_.get()) {
        addInteractionHandler(this);
    } else {
        removeInteractionHandler(this);
    }
}
コード例 #2
0
void PointLightSourceProcessor::handleInteractionEventsChanged() {
    if (interactionEvents_.get() > 0) {
        addInteractionHandler(&lightInteractionHandler_);
    } else {
        removeInteractionHandler(&lightInteractionHandler_);
    }
    lightInteractionHandler_.setHandleEventsOptions(interactionEvents_.get());
}
コード例 #3
0
PointLightSourceProcessor::~PointLightSourceProcessor() {
    removeInteractionHandler(&lightInteractionHandler_);
}