-
Notifications
You must be signed in to change notification settings - Fork 7
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
30 changed files
with
822 additions
and
4 deletions.
There are no files selected for viewing
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
1 change: 1 addition & 0 deletions
1
exts/cesium.omniverse/cesium/omniverse/ui/attributes/__init__.py
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
22 changes: 22 additions & 0 deletions
22
exts/cesium.omniverse/cesium/omniverse/ui/attributes/ellipsoid_attributes_widget.py
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,22 @@ | ||
import logging | ||
from omni.kit.property.usd.custom_layout_helper import CustomLayoutFrame, CustomLayoutGroup, CustomLayoutProperty | ||
from omni.kit.property.usd.usd_property_widget import SchemaPropertiesWidget | ||
from cesium.usd.plugins.CesiumUsdSchemas import Ellipsoid as CesiumEllipsoid | ||
|
||
|
||
class CesiumEllipsoidAttributesWidget(SchemaPropertiesWidget): | ||
def __init__(self): | ||
super().__init__("Ellipsoid", CesiumEllipsoid, include_inherited=False) | ||
|
||
self._logger = logging.getLogger(__name__) | ||
|
||
def clean(self): | ||
super().clean() | ||
|
||
def _customize_props_layout(self, props): | ||
frame = CustomLayoutFrame(hide_extra=True) | ||
|
||
with frame: | ||
CustomLayoutProperty("cesium:radii") | ||
|
||
return frame.apply(props) |
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
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,30 @@ | ||
#pragma once | ||
|
||
#include <glm/glm.hpp> | ||
#include <pxr/usd/sdf/path.h> | ||
|
||
namespace CesiumGeospatial { | ||
class Ellipsoid; | ||
} | ||
|
||
namespace cesium::omniverse { | ||
|
||
class Context; | ||
|
||
class OmniEllipsoid { | ||
public: | ||
OmniEllipsoid(Context* pContext, const pxr::SdfPath& path); | ||
~OmniEllipsoid() = default; | ||
OmniEllipsoid(const OmniEllipsoid&) = delete; | ||
OmniEllipsoid& operator=(const OmniEllipsoid&) = delete; | ||
OmniEllipsoid(OmniEllipsoid&&) noexcept = default; | ||
OmniEllipsoid& operator=(OmniEllipsoid&&) noexcept = default; | ||
|
||
[[nodiscard]] const pxr::SdfPath& getPath() const; | ||
[[nodiscard]] CesiumGeospatial::Ellipsoid getEllipsoid() const; | ||
|
||
private: | ||
Context* _pContext; | ||
pxr::SdfPath _path; | ||
}; | ||
} // namespace cesium::omniverse |
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
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
Oops, something went wrong.