Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
Public Member Functions | Protected Attributes | List of all members
SR::WorldObject Class Reference

Class representing both real and virtual objects as nodes in the World tree. More...

#include <worldobject.h>

Inheritance diagram for SR::WorldObject:
[legend]
Collaboration diagram for SR::WorldObject:
[legend]

Public Member Functions

 WorldObject (WorldObject *parent)
 
 WorldObject ()
 
cv::Vec3d getRelativePosition ()
 
cv::Vec3d getAbsolutePosition ()
 

Protected Attributes

WorldObjectparent
 
Transformation parentRelation
 
cv::Vec3d relativePosition
 

Detailed Description

Class representing both real and virtual objects as nodes in the World tree.

Constructor & Destructor Documentation

◆ WorldObject() [1/2]

SR::WorldObject::WorldObject ( WorldObject parent)

Construct a WorldObject

Parameters
parentindicates that the object is related to another WorldObject

◆ WorldObject() [2/2]

SR::WorldObject::WorldObject ( )

Construct a root WorldObject to represent an object in the real world that is not dependent on another for it's position

Alternatively, the position of this object may not be relevant Previously Worldobject(nullptr) was used to imply this

Member Function Documentation

◆ getAbsolutePosition()

cv::Vec3d SR::WorldObject::getAbsolutePosition ( )

◆ getRelativePosition()

cv::Vec3d SR::WorldObject::getRelativePosition ( )

Member Data Documentation

◆ parent

WorldObject* SR::WorldObject::parent
protected

◆ parentRelation

Transformation SR::WorldObject::parentRelation
protected

◆ relativePosition

cv::Vec3d SR::WorldObject::relativePosition
protected

Suppressing warning because if we don't want to export everything then solving the underlying problem requires modification of the API Warning Description: 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2' Candidate for deprecation


The documentation for this class was generated from the following file: