raisin::tcp_viewer::RemoteSceneState
struct · #include <rayrai/TcpRemoteSceneState.hpp>
Persistent client-side state mirrored from the remote server.
Public attributes
configNumber
uint32_t configNumberServer scene configuration number from the latest update.
visuals
std::unordered_map<uint64_t, VisualEntry> visualsVisual entries keyed by (object tag << 32) | body index.
visualPtrToKey
std::unordered_map<const raisin::Visuals *, uint64_t> visualPtrToKeyReverse of visuals.
objectNamesByTag
std::unordered_map<uint32_t, std::string> objectNamesByTagObject names by tag.
instanced
std::unordered_map<uint32_t, InstancedEntry> instancedKeyed by object tag.
tcpMeshBatches
std::unordered_map<std::string, TcpMeshBatch> tcpMeshBatchesKeyed by mesh/appearance key.
sensorsByTag
std::unordered_map<uint32_t, std::vector<SensorInfo>> sensorsByTagSensors per parent object tag, indexed by the server's sensor index.
heightmaps
std::unordered_map<uint32_t, HeightmapPlane> heightmapsKeyed by object tag.
deformables
std::unordered_map<uint32_t, DeformableMesh> deformablesKeyed by object tag.
pointClouds
std::unordered_map<uint32_t, RemotePointCloud> pointCloudsRemote point clouds.
contacts
std::vector<ContactSample> contactsContacts from the latest update.
tcpMeshBatchesDirty
bool tcpMeshBatchesDirtyMesh batches must be regrouped.
tcpMeshBatchRegroupCount
size_t tcpMeshBatchRegroupCountRegroup passes since the last scene clear (diagnostics).
selectedInfo
SelectedObjectInfo selectedInfoDetailed state of the selected object.
requestedSelectionTag
uint32_t requestedSelectionTagObject tag sent to the server for detailed state.
serverWorldTime
double serverWorldTimeServer simulation time from the latest update.
serverWorldTimeValid
bool serverWorldTimeValidserverWorldTime has been received.
useLegacyProtocol
bool useLegacyProtocolCleared once the server sends an explicit feature header.
remoteFeatureBits
uint64_t remoteFeatureBitsFeature bits advertised by the server.
serverSupportsSimControl
bool serverSupportsSimControlServer advertised kProtocolFeatureSimControl.
disconnectRequested
bool disconnectRequestedSet when the server is terminating or sent an invalid shape; consumed by the viewer loop.
pendingViewerCommands
std::vector<ViewerCommand> pendingViewerCommandsServer commands not yet executed.