-
Notifications
You must be signed in to change notification settings - Fork 0
How it works
Cédric Vautrain edited this page Feb 3, 2021
·
22 revisions
Every object we populate in OGrEE 3D is an OgreeObject.
Type | Name | Comment |
---|---|---|
string | name | The "short" name of the object |
string | id | Given by server |
string | parentId | The ID of the parent object |
string | category | Must be part of the following list to be recognized |
List<string> | description | |
string | domain | The owner of the object |
Dictrionary<string, string> | attributes | Non standard attributes |
- Some attributes are mandatory to create specific objects, but are non standard.
Name | Comment | tenant | site | building | room | rack | device |
---|---|---|---|---|---|---|---|
color | Hexadecimal code | yes | yes | yes | |||
orientation | See below | yes | yes | yes | yes | ||
posXY | Serialized Vector2 | yes | yes | yes | yes | ||
posXYUnit | See below | yes | yes | yes | yes | ||
posZ | yes | yes | yes | yes | |||
posZUnit | See below | yes | yes | yes | yes | ||
size | Serialized Vector2 | yes | yes | yes | yes | ||
sizeUnit | See below | yes | yes | yes | yes | ||
height | yes | yes | yes | yes | |||
heightUnit | See below | yes | yes | yes | yes | ||
template | yes | yes | yes | ||||
sizeU | Optional if template if defined | yes | |||||
slot | Optional if posU if defined | yes | |||||
posU | Optional if slot if defined | yes |
- Some other attributes arn't mandatory but have an inpact in the objects.
Name | Comment | tenant | site | building | room | rack | device |
---|---|---|---|---|---|---|---|
usableColor | Hexadecimal code | yes | |||||
reservedColor | Hexadecimal code | yes | |||||
technicalColor | Hexadecimal code | yes | |||||
reserved | Serialized custom Vector4 | yes | |||||
technical | Serialized custom Vector4 | yes |
- You can also add any custom attribute in
object.attributes
.
- tenant
- site
- building
- room
- rack
- device
Depending of the object category, the orientation can have specific values.
For a room:
- EN
- NW
- WS
- SE
For a rack:
- front
- rear
- left
- right
For a device:
- front
- rear
- frontflipped
- rearflipped
- mm
- cm
- m
- U
- OU
- tile