Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualizer cleanup #1653

Merged
merged 14 commits into from
Apr 29, 2014
Merged

Visualizer cleanup #1653

merged 14 commits into from
Apr 29, 2014

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Apr 27, 2014

This is some long overdue Visualizer clean up and simplification. After we introduced DataSourceDisplay, a lot of the functions on the visualizers became unnecessary. This removes setDynamicObjectCollection, getDynamicObjectCollection, getScene, and removeAllPrimitives from all visualizers and defines a simple Visualizer base interface for the documentation. I also cleaned up Visualizer related documentation. There are no real functional changes to any of this code; it's just a stepping stone to clean everything up before rewriting/optimizing our older visualizers.

mramato added 8 commits April 14, 2014 21:24
Conflicts:
	Source/DynamicScene/DataSourceDisplay.js
It turns out a `Visualizer` instance only needs `update` and `destroy` functions.  Also start cleaning up other visualizer to conform to the interface and remove uneeded cruft.
Conflicts:
	Apps/CesiumViewer/CesiumViewer.js
	Source/Widgets/Viewer/viewerDragDropMixin.js
* DynamicObject counterpart at the given time.
* @memberof DynamicLabelVisualizer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be DynamicConeVisualizerUsingCustomSensor. Same for destroy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought I caught all of these. Thanks.

mramato added 3 commits April 28, 2014 17:28
Fix DynamicConeVisualizerUsingCustomSensor doc.
Use already obtained local variable in DynamicPointVisualizer.prototype.destroy
Remove unecessary if checks.
1. Put back isDestroyed function.
2. Document Visualizer functions correctly.
@mramato
Copy link
Contributor Author

mramato commented Apr 28, 2014

Ready for another look.

shunter added a commit that referenced this pull request Apr 29, 2014
@shunter shunter merged commit 762fed3 into master Apr 29, 2014
@shunter shunter deleted the visualizer-refactor branch April 29, 2014 14:48
@mramato mramato mentioned this pull request Apr 30, 2014
70 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants