Simon Hunt | ef1138d | 2015-02-19 17:14:03 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Open Networking Laboratory |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | ONOS GUI -- Topology Oblique View Module. |
| 19 | Provides functionality to view the topology as two planes (packet & optical) |
| 20 | from an oblique (side-on) perspective. |
| 21 | */ |
| 22 | |
| 23 | (function () { |
| 24 | 'use strict'; |
| 25 | |
| 26 | // injected refs |
| 27 | var $log, fs; |
| 28 | |
| 29 | // api to topoForce |
| 30 | var api; |
| 31 | /* |
| 32 | node() // get ref to D3 selection of nodes |
| 33 | link() // get ref to D3 selection of links |
| 34 | */ |
| 35 | |
| 36 | // internal state |
| 37 | var foo; |
| 38 | |
| 39 | // ========================== |
| 40 | |
Simon Hunt | 96f88c6 | 2015-02-19 17:57:25 -0800 | [diff] [blame^] | 41 | |
| 42 | function toggleOblique() { |
| 43 | $log.log("TOGGLING OBLIQUE VIEW"); |
| 44 | } |
| 45 | |
Simon Hunt | ef1138d | 2015-02-19 17:14:03 -0800 | [diff] [blame] | 46 | // === ----------------------------------------------------- |
| 47 | // === MODULE DEFINITION === |
| 48 | |
| 49 | angular.module('ovTopo') |
| 50 | .factory('TopoObliqueService', |
| 51 | ['$log', 'FnService', |
| 52 | |
| 53 | function (_$log_, _fs_) { |
| 54 | $log = _$log_; |
| 55 | fs = _fs_; |
| 56 | |
| 57 | function initOblique(_api_) { |
| 58 | api = _api_; |
| 59 | } |
| 60 | |
| 61 | function destroyOblique() { } |
| 62 | |
| 63 | return { |
| 64 | initOblique: initOblique, |
Simon Hunt | 96f88c6 | 2015-02-19 17:57:25 -0800 | [diff] [blame^] | 65 | destroyOblique: destroyOblique, |
| 66 | |
| 67 | toggleOblique: toggleOblique |
Simon Hunt | ef1138d | 2015-02-19 17:14:03 -0800 | [diff] [blame] | 68 | }; |
| 69 | }]); |
| 70 | }()); |