Skip to content

raisin::tcp_viewer::VisualEntry ​

struct · #include <rayrai/TcpRemoteSceneState.hpp>

State associated with a remote visual object.

Public attributes ​

shape ​

cpp
raisim::Shape::Type shape

Geometry type.

objectTypeRaw ​

cpp
int objectTypeRaw

raisim::ObjectType value of the owning object; -1 for a server-side visual object, 10 for a deformable, -2 while unset.

meshFile ​

cpp
std::string meshFile

Mesh file name as sent by the server.

resourceDir ​

cpp
std::string resourceDir

Directory used to resolve meshFile.

meshPath ​

cpp
std::string meshPath

Resolved local mesh path (empty until resolved).

objectName ​

cpp
std::string objectName

Name of the owning RaiSim object.

name ​

cpp
std::string name

Name of the render visual registered with the viewer.

visual ​

cpp
std::shared_ptr<raisin::Visuals> visual

Render visual; null while hidden or not created.

isCollision ​

cpp
bool isCollision

Collision body (shown only when collision bodies are enabled).

isArticulated ​

cpp
bool isArticulated

Body of an articulated system.

hasState ​

cpp
bool hasState

At least one pose/size/color update has been applied.

localBodyIdx ​

cpp
int32_t localBodyIdx

Body index within the owning object.

preferGrayIfNoTexture ​

cpp
bool preferGrayIfNoTexture

Render untextured meshes in neutral gray when the server color is a fallback.

useMeshFileColor ​

cpp
bool useMeshFileColor

Use the mesh file's own colors (server sent negative alpha).

hidden ​

cpp
bool hidden

Hidden by the server appearance string.

tcpBatchProxy ​

cpp
bool tcpBatchProxy

Drawn through a TcpMeshBatch; the entry's own visual skips the color pass and casts no shadow.

appearanceColorValid ​

cpp
bool appearanceColorValid

cachedAppearanceColor matches cachedAppearance.

cachedAppearance ​

cpp
std::string cachedAppearance

Last decoded appearance string.

cachedAppearanceColor ​

cpp
glm::vec4 cachedAppearanceColor

Color decoded from cachedAppearance.

lastColor ​

cpp
glm::vec4 lastColor

Last explicit RGBA color applied.

lastSize ​

cpp
glm::vec4 lastSize

Last shape size vector as sent by the server.

lastPos ​

cpp
glm::vec3 lastPos

Last world position.

lastQuat ​

cpp
glm::vec4 lastQuat

Orientation in wxyz order (x holds w), as Visuals::setOrientation takes it.

RaiSim — physics for robotics and AI.