Home
last modified time | relevance | path

Searched refs:actor (Results 1 – 25 of 70) sorted by relevance

123

/external/opencv3/modules/viz/src/
Dwidget.cpp96 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); in fromPlyFile() local
97 actor->GetProperty()->SetInterpolationToFlat(); in fromPlyFile()
98 actor->GetProperty()->BackfaceCullingOn(); in fromPlyFile()
99 actor->SetMapper(mapper); in fromPlyFile()
102 WidgetAccessor::setProp(widget, actor); in fromPlyFile()
108 vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this)); in setRenderingProperty() local
109 CV_Assert("Widget type is not supported." && actor); in setRenderingProperty()
113 case POINT_SIZE: actor->GetProperty()->SetPointSize(float(value)); break; in setRenderingProperty()
114 case OPACITY: actor->GetProperty()->SetOpacity(value); break; in setRenderingProperty()
115 case LINE_WIDTH: actor->GetProperty()->SetLineWidth(float(value)); break; in setRenderingProperty()
[all …]
Dclouds.cpp84 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); in WCloud() local
85 actor->GetProperty()->SetInterpolationToFlat(); in WCloud()
86 actor->GetProperty()->BackfaceCullingOn(); in WCloud()
87 actor->SetMapper(mapper); in WCloud()
89 WidgetAccessor::setProp(*this, actor); in WCloud()
124 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); in WPaintedCloud() local
125 actor->GetProperty()->SetInterpolationToFlat(); in WPaintedCloud()
126 actor->GetProperty()->BackfaceCullingOn(); in WPaintedCloud()
127 actor->SetMapper(mapper); in WPaintedCloud()
129 WidgetAccessor::setProp(*this, actor); in WPaintedCloud()
[all …]
Dshapes.cpp63 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); in WLine() local
64 actor->SetMapper(mapper); in WLine()
66 WidgetAccessor::setProp(*this, actor); in WLine()
94 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); in WSphere() local
95 actor->SetMapper(mapper); in WSphere()
97 WidgetAccessor::setProp(*this, actor); in WSphere()
123 vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New(); in WPlane() local
124 actor->SetMapper(mapper); in WPlane()
125 actor->GetProperty()->LightingOff(); in WPlane()
127 WidgetAccessor::setProp(*this, actor); in WPlane()
[all …]
Dvizimpl.cpp201 vtkProp3D *actor = vtkProp3D::SafeDownCast(WidgetAccessor::getProp(widget)); in showWidget() local
202 if (actor) in showWidget()
206 actor->SetUserMatrix(matrix); in showWidget()
207 actor->Modified(); in showWidget()
210 vtkFollower *follower = vtkFollower::SafeDownCast(actor); in showWidget()
249 vtkProp3D *actor = vtkProp3D::SafeDownCast(wam_itr->second); in setWidgetPose() local
250 CV_Assert("Widget is not 3D." && actor); in setWidgetPose()
253 actor->SetUserMatrix(matrix); in setWidgetPose()
254 actor->Modified(); in setWidgetPose()
264 vtkProp3D *actor = vtkProp3D::SafeDownCast(wam_itr->second); in updateWidgetPose() local
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/utils/
DDragAndDrop.java89 if (!target.actor.isAscendantOf(hit)) continue; in addSource()
91 target.actor.stageToLocalCoordinates(tmpVector.set(stageX, stageY)); in addSource()
108 Actor actor = null; in addSource()
109 if (target != null) actor = isValidTarget ? payload.validDragActor : payload.invalidDragActor; in addSource()
110 if (actor == null) actor = payload.dragActor; in addSource()
111 if (actor == null) return; in addSource()
112 if (dragActor != actor) { in addSource()
114 dragActor = actor; in addSource()
115 stage.addActor(actor); in addSource()
118 float actorY = event.getStageY() + dragActorY - actor.getHeight(); in addSource()
[all …]
DActorGestureListener.java36 Actor actor, touchDownTarget; field in ActorGestureListener
50 actor.stageToLocalCoordinates(tmpCoords.set(stageX, stageY)); in ActorGestureListener()
56 actor.stageToLocalCoordinates(tmpCoords.set(stageX, stageY)); in ActorGestureListener()
57 return ActorGestureListener.this.longPress(actor, tmpCoords.x, tmpCoords.y); in ActorGestureListener()
70 actor.stageToLocalCoordinates(tmpCoords.set(stageX, stageY)); in ActorGestureListener()
82 actor.stageToLocalCoordinates(initialPointer1.set(stageInitialPointer1)); in ActorGestureListener()
83 actor.stageToLocalCoordinates(initialPointer2.set(stageInitialPointer2)); in ActorGestureListener()
84 actor.stageToLocalCoordinates(pointer1.set(stagePointer1)); in ActorGestureListener()
85 actor.stageToLocalCoordinates(pointer2.set(stagePointer2)); in ActorGestureListener()
91 actor.stageToLocalCoordinates(amount); in ActorGestureListener()
[all …]
DSelection.java16 private Actor actor; field in Selection
27 public void setActor (Actor actor) { in setActor() argument
28 this.actor = actor; in setActor()
187 if (actor == null) return false; in fireChangeEvent()
190 return actor.fire(changeEvent); in fireChangeEvent()
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/
DGroup.java259 public void addActor (Actor actor) { in addActor() argument
260 if (actor.parent != null) actor.parent.removeActor(actor, false); in addActor()
261 children.add(actor); in addActor()
262 actor.setParent(this); in addActor()
263 actor.setStage(getStage()); in addActor()
269 public void addActorAt (int index, Actor actor) { in addActorAt() argument
270 if (actor.parent != null) actor.parent.removeActor(actor, false); in addActorAt()
272 children.add(actor); in addActorAt()
274 children.insert(index, actor); in addActorAt()
275 actor.setParent(this); in addActorAt()
[all …]
DAction.java28 protected Actor actor; field in Action
55 public void setActor (Actor actor) { in setActor() argument
56 this.actor = actor; in setActor()
57 if (target == null) setTarget(actor); in setActor()
58 if (actor == null) { in setActor()
68 return actor; in getActor()
89 actor = null; in reset()
DStage.java143 Actor actor = hit(tempCoords.x, tempCoords.y, true); in drawDebug() local
144 if (actor == null) return; in drawDebug()
146 if (debugParentUnderMouse && actor.parent != null) actor = actor.parent; in drawDebug()
149 actor.setDebug(true); in drawDebug()
151 while (actor != null) { in drawDebug()
152 if (actor instanceof Table) break; in drawDebug()
153 actor = actor.parent; in drawDebug()
155 if (actor == null) return; in drawDebug()
156 ((Table)actor).debug(debugTableUnderMouse); in drawDebug()
159 if (debugAll && actor instanceof Group) ((Group)actor).debugAll(); in drawDebug()
[all …]
DActor.java308 public boolean isDescendantOf (Actor actor) { in isDescendantOf() argument
309 if (actor == null) throw new IllegalArgumentException("actor cannot be null."); in isDescendantOf()
313 if (parent == actor) return true; in isDescendantOf()
319 public boolean isAscendantOf (Actor actor) { in isAscendantOf() argument
320 if (actor == null) throw new IllegalArgumentException("actor cannot be null."); in isAscendantOf()
322 if (actor == null) return false; in isAscendantOf()
323 if (actor == this) return true; in isAscendantOf()
324 actor = actor.parent; in isAscendantOf()
783 Actor actor = this; in localToAscendantCoordinates() local
784 while (actor != null) { in localToAscendantCoordinates()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DDialog.java87 public void changed (ChangeEvent event, Actor actor) { in initialize()
88 if (!values.containsKey(actor)) return; in initialize()
89 while (actor.getParent() != buttonTable) in initialize()
90 actor = actor.getParent(); in initialize()
91 result(values.get(actor)); in initialize()
98 public void keyboardFocusChanged (FocusEvent event, Actor actor, boolean focused) { in initialize()
102 public void scrollFocusChanged (FocusEvent event, Actor actor, boolean focused) { in initialize()
192 Actor actor = stage.getKeyboardFocus(); in show() local
193 if (actor != null && !actor.isDescendantOf(this)) previousKeyboardFocus = actor; in show()
196 actor = stage.getScrollFocus(); in show()
[all …]
DContainer.java18 private T actor; field in Container
35 public Container (T actor) { in Container() argument
37 setActor(actor); in Container()
105 if (actor == null) return; in layout()
110 float minWidth = this.minWidth.get(actor), minHeight = this.minHeight.get(actor); in layout()
111 float prefWidth = this.prefWidth.get(actor), prefHeight = this.prefHeight.get(actor); in layout()
112 float maxWidth = this.maxWidth.get(actor), maxHeight = this.maxHeight.get(actor); in layout()
149 actor.setBounds(x, y, width, height); in layout()
150 if (actor instanceof Layout) ((Layout)actor).validate(); in layout()
154 public void setActor (T actor) { in setActor() argument
[all …]
DValue.java98 public float get (Actor actor) { in percentWidth()
99 return actor.getWidth() * percent; in percentWidth()
107 public float get (Actor actor) {
108 return actor.getHeight() * percent;
114 static public Value percentWidth (final float percent, final Actor actor) {
115 if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
118 return actor.getWidth() * percent;
124 static public Value percentHeight (final float percent, final Actor actor) {
125 if (actor == null) throw new IllegalArgumentException("actor cannot be null.");
128 return actor.getHeight() * percent;
DTooltip.java96 private void setContainerPosition (Actor actor, float x, float y) { in setContainerPosition() argument
97 this.targetActor = actor; in setContainerPosition()
98 Stage stage = actor.getStage(); in setContainerPosition()
103 …Vector2 point = actor.localToStageCoordinates(tmp.set(x + offsetX, y - offsetY - container.getHeig… in setContainerPosition()
104 if (point.y < dist) point = actor.localToStageCoordinates(tmp.set(x + offsetX, y + offsetY)); in setContainerPosition()
110 point = actor.localToStageCoordinates(tmp.set(actor.getWidth() / 2, actor.getHeight() / 2)); in setContainerPosition()
118 Actor actor = event.getListenerActor(); in enter()
119 if (fromActor != null && fromActor.isDescendantOf(actor)) return; in enter()
120 setContainerPosition(actor, x, y); in enter()
DTree.java73 float low = selection.getLastSelected().actor.getY(); in initialize()
74 float high = node.actor.getY(); in initialize()
85 float rowX = node.actor.getX(); in initialize()
170 Actor actor = node.actor; in computeSize() local
171 if (actor instanceof Layout) { in computeSize()
172 Layout layout = (Layout)actor; in computeSize()
177 rowWidth += actor.getWidth(); in computeSize()
178 node.height = actor.getHeight(); in computeSize()
199 Actor actor = node.actor; in layout() local
203 node.actor.setPosition(x, y); in layout()
[all …]
DCell.java33 Actor actor; field in Cell
53 if (actor != newActor) { in setActor()
54 if (actor != null) actor.remove(); in setActor()
55 actor = newActor; in setActor()
69 return (T)actor; in getActor()
74 return actor != null; in hasActor()
686 return minWidth.get(actor); in getMinWidth()
695 return minHeight.get(actor); in getMinHeight()
704 return prefWidth.get(actor); in getPrefWidth()
713 return prefHeight.get(actor); in getPrefHeight()
[all …]
DWidgetGroup.java47 for (Actor actor : actors) in WidgetGroup()
48 addActor(actor); in WidgetGroup()
84 Actor actor = children.get(i); in setLayoutEnabled() local
85 if (actor instanceof Layout) in setLayoutEnabled()
86 ((Layout)actor).setLayoutEnabled(enabled); in setLayoutEnabled()
87 else if (actor instanceof Group) // in setLayoutEnabled()
88 setLayoutEnabled((Group)actor, enabled); in setLayoutEnabled()
DTable.java194 public <T extends Actor> Cell<T> add (T actor) { in add() argument
196 cell.actor = actor; in add()
243 if (actor != null) addActor(actor); in add()
293 public boolean removeActor (Actor actor) { in removeActor() argument
294 return removeActor(actor, true); in removeActor()
297 public boolean removeActor (Actor actor, boolean unfocus) { in removeActor() argument
298 if (!super.removeActor(actor, unfocus)) return false; in removeActor()
299 Cell cell = getCell(actor); in removeActor()
300 if (cell != null) cell.actor = null; in removeActor()
309 Actor actor = cell.actor; in clearChildren() local
[all …]
DStack.java54 for (Actor actor : actors) in Stack()
55 addActor(actor); in Stack()
96 public void add (Actor actor) { in add() argument
97 addActor(actor); in add()
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/actions/
DLayoutAction.java30 public void setTarget (Actor actor) { in setTarget() argument
31 …if (actor != null && !(actor instanceof Layout)) throw new GdxRuntimeException("Actor must impleme… in setTarget()
32 super.setTarget(actor); in setTarget()
DParallelAction.java70 for (int i = 0, n = actions.size; i < n && actor != null; i++) { in act()
73 if (actor == null) return true; // This action was removed. in act()
95 if (actor != null) action.setActor(actor); in addAction()
98 public void setActor (Actor actor) { in setActor() argument
101 actions.get(i).setActor(actor); in setActor()
102 super.setActor(actor); in setActor()
DDelegateAction.java58 public void setActor (Actor actor) { in setActor() argument
59 if (action != null) action.setActor(actor); in setActor()
60 super.setActor(actor); in setActor()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DStageDebugTest.java66 DebugActor actor = new DebugActor(); in create() local
67 actor.setBounds(300, 140, 50, 100); in create()
68 actor.setOrigin(25, 50); in create()
69 actor.setRotation(-45); in create()
70 actor.setScale(2f); in create()
71 actor.addAction(forever(rotateBy(360, 8f))); in create()
72 group.addActor(actor); in create()
DScene2dTest.java57 final Actor actor = new Actor() { in create() local
65 actor.setBounds(15, 15, 100, 100); in create()
66 actor.setOrigin(50, 50); in create()
67 stage.addActor(actor); in create()
68 actor.addListener(new InputListener() { in create()
111 public boolean longPress (Actor actor, float x, float y) { in create()
152 actor.addAction(forever(sequence(moveBy(50, 0, 2), moveBy(-50, 0, 2), run(new Runnable() { in create()
154 actor.setZIndex(0); in create()

123