raisin::tcp_viewer::VisualEntry
struct · #include <rayrai/TcpRemoteSceneState.hpp>
State associated with a remote visual object.
Public attributes
shape
raisim::Shape::Type shapeGeometry type.
objectTypeRaw
int objectTypeRawraisim::ObjectType value of the owning object; -1 for a server-side visual object, 10 for a deformable, -2 while unset.
meshFile
std::string meshFileMesh file name as sent by the server.
resourceDir
std::string resourceDirDirectory used to resolve meshFile.
meshPath
std::string meshPathResolved local mesh path (empty until resolved).
objectName
std::string objectNameName of the owning RaiSim object.
name
std::string nameName of the render visual registered with the viewer.
visual
std::shared_ptr<raisin::Visuals> visualRender visual; null while hidden or not created.
isCollision
bool isCollisionCollision body (shown only when collision bodies are enabled).
isArticulated
bool isArticulatedBody of an articulated system.
hasState
bool hasStateAt least one pose/size/color update has been applied.
localBodyIdx
int32_t localBodyIdxBody index within the owning object.
preferGrayIfNoTexture
bool preferGrayIfNoTextureRender untextured meshes in neutral gray when the server color is a fallback.
useMeshFileColor
bool useMeshFileColorUse the mesh file's own colors (server sent negative alpha).
hidden
bool hiddenHidden by the server appearance string.
tcpBatchProxy
bool tcpBatchProxyDrawn through a TcpMeshBatch; the entry's own visual skips the color pass and casts no shadow.
appearanceColorValid
bool appearanceColorValidcachedAppearanceColor matches cachedAppearance.
cachedAppearance
std::string cachedAppearanceLast decoded appearance string.
cachedAppearanceColor
glm::vec4 cachedAppearanceColorColor decoded from cachedAppearance.
lastColor
glm::vec4 lastColorLast explicit RGBA color applied.
lastSize
glm::vec4 lastSizeLast shape size vector as sent by the server.
lastPos
glm::vec3 lastPosLast world position.
lastQuat
glm::vec4 lastQuatOrientation in wxyz order (x holds w), as Visuals::setOrientation takes it.