-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
673 additions
and
182 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#region License | ||
/****************************************************************************** | ||
* Copyright 2018-2020 The AutoCore Authors. All Rights Reserved. | ||
* | ||
* Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/lgpl-3.0.html | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*****************************************************************************/ | ||
#endregion | ||
|
||
|
||
using AutoCore.MapToolbox.Autoware; | ||
using UnityEditor; | ||
|
||
namespace AutoCore.MapToolbox.Editor.Autoware | ||
{ | ||
[CustomEditor(typeof(ADASGoArea))] | ||
class ADASGoAreaEditor : BrokenLineRendererEditor<ADASGoLine> | ||
{ | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...Collection/CollectionADASStopLine.cs.meta → Editor/Autoware/ADASGoAreaEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#region License | ||
/****************************************************************************** | ||
* Copyright 2018-2020 The AutoCore Authors. All Rights Reserved. | ||
* | ||
* Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/lgpl-3.0.html | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*****************************************************************************/ | ||
#endregion | ||
|
||
|
||
using AutoCore.MapToolbox.Autoware; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace AutoCore.MapToolbox.Editor.Autoware | ||
{ | ||
[CustomEditor(typeof(CollectionCrossWalk))] | ||
class CollectionCrossWalkEditor : UnityEditor.Editor | ||
{ | ||
public override void OnInspectorGUI() | ||
{ | ||
base.OnInspectorGUI(); | ||
GUI.color = Color.yellow; | ||
if (GUILayout.Button(Const.AddCrossWalk)) | ||
{ | ||
(target as CollectionCrossWalk).AddCrossWalk(SceneView.lastActiveSceneView.pivot); | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ollection/CollectionADASWhiteLine.cs.meta → ...utoware/CollectionCrossWalkEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#region License | ||
/****************************************************************************** | ||
* Copyright 2018-2020 The AutoCore Authors. All Rights Reserved. | ||
* | ||
* Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/lgpl-3.0.html | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*****************************************************************************/ | ||
#endregion | ||
|
||
|
||
using AutoCore.MapToolbox.Autoware; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace AutoCore.MapToolbox.Editor.Autoware | ||
{ | ||
[CustomEditor(typeof(CollectionRoadMark))] | ||
class CollectionRoadMarkEditor : UnityEditor.Editor | ||
{ | ||
public override void OnInspectorGUI() | ||
{ | ||
base.OnInspectorGUI(); | ||
GUI.color = Color.yellow; | ||
if (GUILayout.Button(Const.AddRoadMark)) | ||
{ | ||
(target as CollectionRoadMark).AddRoadMark(SceneView.lastActiveSceneView.pivot); | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#region License | ||
/****************************************************************************** | ||
* Copyright 2018-2020 The AutoCore Authors. All Rights Reserved. | ||
* | ||
* Licensed under the GNU Lesser General Public License, Version 3.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/lgpl-3.0.html | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*****************************************************************************/ | ||
#endregion | ||
|
||
|
||
using System.Linq; | ||
using UnityEngine; | ||
|
||
namespace AutoCore.MapToolbox.Autoware | ||
{ | ||
class CollectionCrossWalk : CollectionADASMapGo<ADASGoCrossWalk> | ||
{ | ||
public override void Csv2Go() | ||
{ | ||
foreach (var item in ADASMapCrossWalk.List) | ||
{ | ||
var slices = new GameObject().AddComponent<ADASGoCrossWalk>(); | ||
slices.transform.SetParent(transform); | ||
slices.CrossWalk = item; | ||
} | ||
foreach (var item in GetComponentsInChildren<ADASGoCrossWalk>()) | ||
{ | ||
item.UpdateBorder(); | ||
item.UpdateRenderer(); | ||
} | ||
} | ||
public override void Go2Csv() | ||
{ | ||
int id = 1; | ||
Dic = GetComponentsInChildren<ADASGoCrossWalk>().ToDictionary(_ => id++); | ||
foreach (var item in GetComponentsInChildren<ADASGoCrossWalk>()) | ||
{ | ||
item.BuildData(); | ||
} | ||
foreach (var item in GetComponentsInChildren<ADASGoCrossWalk>()) | ||
{ | ||
item.BuildDataRef(); | ||
} | ||
} | ||
public void AddCrossWalk(Vector3 position) | ||
{ | ||
position.y = 0; | ||
var crosswalk = new GameObject(typeof(ADASGoCrossWalk).Name).AddComponent<ADASGoCrossWalk>(); | ||
crosswalk.transform.SetParent(transform); | ||
crosswalk.transform.position = position; | ||
#if UNITY_EDITOR | ||
UnityEditor.Selection.activeGameObject = crosswalk.gameObject; | ||
#endif | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Runtime/Autoware/ADASCollection/CollectionCrossWalk.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.