Add or remove the active cursors from the provided scene.

@param scene The GVRScene.
@param add   <code>true</code> for add, <code>false</code> to remove
488614
private void updateCursorsInScene(GVRScene scene, boolean add) {
        synchronized (mCursors) {
            for (Cursor cursor : mCursors) {
                if (cursor.isActive()) {
                    if (add) {
                        addCursorToScene(cursor);
                    } else {
                        removeCursorFromScene(cursor);
                    }
                }
            }
        }
    }
1058105
@Override
    public final Viewport add(final Scene scene)
    {
        if ((null != scene) && (LienzoCore.IS_CANVAS_SUPPORTED))
        {
            if (false == scene.adopt(this))
            {
                throw new IllegalArgumentException("Scene is already adopted.");
            }
            if (length() > 2)
            {
                throw new IllegalArgumentException("Too many Scene objects is Viewport.");
            }
            final DivElement element = scene.getElement();

            scene.setPixelSize(m_wide, m_high);

            element.getStyle().setPosition(Position.ABSOLUTE);

            element.getStyle().setDisplay(Display.INLINE_BLOCK);

            getElement().appendChild(element);

            super.add(scene);
        }
        return this;
    }
762786
protected void blockAbandoned (SceneBlock block)
    {
        if (_dpanel != null) {
            _dpanel.blockCleared(block);
        }

        blockFinished(block);
    }
1119435
function removeDefaultCamera (sceneEl) {
  var defaultCamera;
  var camera = sceneEl.camera;
  if (!camera) { return; }

  // Remove default camera if present.
  defaultCamera = sceneEl.querySelector('[' + DEFAULT_CAMERA_ATTR + ']');
  if (!defaultCamera) { return; }
  sceneEl.removeChild(defaultCamera);
}
1218442
public void addComponent(Object screenField)
    {
        if (this.getNextConverter() != null)
            this.getNextConverter().addComponent(screenField);
        else
            super.addComponent(screenField);
    }
855852
public void addChildObjectToCamera(final GVRSceneObject child, int camera) {
        switch (camera) {
            case LEFT_CAMERA:
                mLeftCameraRootObject.addChildObject(child);
                break;
            case RIGHT_CAMERA:
                mRightCameraRootObject.addChildObject(child);
                break;
            default:
                mMainCameraRootObject.addChildObject(child);
                break;
        }
    }
950966
public void makePickable(GVRSceneObject sceneObject) {
        try {
            GVRMeshCollider collider = new GVRMeshCollider(sceneObject.getGVRContext(), false);
            sceneObject.attachComponent(collider);
        } catch (Exception e) {
            // Possible that some objects (X3D panel nodes) are without mesh
            Log.e(Log.SUBSYSTEM.INPUT, TAG, "makePickable(): possible that some objects (X3D panel nodes) are without mesh!");
        }
    }
439204
public void add(E edge) {
        if (! edge.added) { 
            edges.add(edge);
            edge.added = true;
            add(edge.getChild());
            add(edge.getParent());
        }
    }
1229301
public void removeFigure(Figure figure) {
		figures.remove(figure);
		figureMap.remove(figure.getData().getAttribute("id"));
	}
921198
@Override
    public final Scene add(final Layer layer)
    {
        if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED))
        {
            layer.removeFromParent();

            layer.setPixelSize(getWidth(), getHeight());

            getElement().appendChild(layer.getElement());

            super.add(layer);

            layer.batch();
        }
        return this;
    }
493063
protected void update(float scale) {
        // Updates only when the plane is in the scene
        GVRSceneObject owner = getOwnerObject();

        if ((owner != null) && isEnabled() && owner.isEnabled())
        {
            convertFromARtoVRSpace(scale);
        }
    }
50827
public void removeChildObjectFromCamera(final GVRSceneObject child,
                                            int camera) {
        switch (camera) {
            case LEFT_CAMERA:
                mLeftCameraRootObject.removeChildObject(child);
                break;
            case RIGHT_CAMERA:
                mRightCameraRootObject.removeChildObject(child);
                break;
            default:
                mMainCameraRootObject.removeChildObject(child);
                break;
        }
    }
103245
def add(self, scene):
        """"""
        if not isinstance(scene, Scene):
            raise TypeError()
        for i, j in enumerate(self.__scenes):
            if j.scene_id == scene.scene_id:
                self.__scenes[i] = scene
                return
        self.__scenes.append(scene)
731211
private void disableTalkBack() {
        GVRSceneObject[] sceneObjects = mGvrContext.getMainScene().getWholeSceneObjects();
        for (GVRSceneObject sceneObject : sceneObjects) {
            if (sceneObject instanceof GVRAccessiblityObject)
                if (((GVRAccessiblityObject) sceneObject).getTalkBack() != null)
                    ((GVRAccessiblityObject) sceneObject).getTalkBack().setActive(false);

        }
    }
1163369
@Override
    public final Scene remove(final Layer layer)
    {
        if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED))
        {
            if (getChildNodes().contains(layer))
            {
                getElement().removeChild(layer.getElement());
            }
            super.remove(layer);
        }
        return this;
    }
592769
def setSceneRect(self, *args):
        
        curr = self.sceneRect()
        
        super(XGanttScene, self).setSceneRect(*args)
        
        if curr != QRectF(*args):
            self._dirty = True
1129925
protected void setComponentCursor (Component comp)
    {
        Cursor c = comp.getCursor();
        if (c != _curCursor) {
            assertComponentCursorCleared();
            _lastComp = comp;
            _oldCursor = comp.isCursorSet() ? c : null;
            comp.setCursor(_curCursor);
        }
    }