-
Notifications
You must be signed in to change notification settings - Fork 6
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
unexcellent
committed
Oct 30, 2024
1 parent
1ef7536
commit cf37c17
Showing
2 changed files
with
26 additions
and
1 deletion.
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
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,24 @@ | ||
# Copyright DB InfraGO AG and contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from __future__ import annotations | ||
|
||
from typing import Literal | ||
|
||
from pydantic import BaseModel | ||
|
||
from .frame_interval import JSONFrameInterval | ||
|
||
|
||
class JSONElementDataPointer(BaseModel): | ||
"""A pointer to element data of elements. | ||
It is indexed by 'name', and containing information about the element data type, for example, | ||
bounding box, cuboid, and the frame intervals in which this element_data exists within an | ||
element. That means, these pointers can be used to explore element data dynamic information | ||
within the JSON content. | ||
""" | ||
|
||
attribute_pointers: dict[str, Literal["num", "text", "boolean", "vec"]] | ||
frame_intervals: list[JSONFrameInterval] | ||
type: Literal["bbox", "num", "poly2d", "poly3d", "cuboid", "vec"] |