Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs2::tm2_model Class Reference

#include <model-views.h>

Public Member Functions

void draw_trajectory (bool is_trajectory_button_pressed)
 
void record_trajectory (bool on)
 
void reset_trajectory ()
 
 tm2_model ()
 
void update_model_trajectory (const pose_frame &pose, bool track)
 

Private Member Functions

void add_to_trajectory (tracked_point &p)
 

Private Attributes

bool _trajectory_tracking
 
std::vector< float2boundary
 
colored_cube camera_box { { { f1,colors[0] },{ f2,colors[1] },{ f3,colors[2] },{ f4,colors[3] },{ f5,colors[4] },{ f6,colors[5] } } }
 
std::array< color, 6 > colors
 
face f1 { { v1,v2,v3,v4 } }
 
face f2 { { v2,v8,v6,v3 } }
 
face f3 { { v4,v3,v6,v5 } }
 
face f4 { { v1,v4,v5,v7 } }
 
face f5 { { v7,v8,v6,v5 } }
 
face f6 { { v1,v2,v8,v7 } }
 
const float len_x = 0.1f
 
const float len_y = 0.03f
 
const float len_z = 0.01f
 
std::vector< tracked_pointtrajectory
 
float3 v1 { -len_x / 2, -len_y / 2, len_z / 2 }
 
float3 v2 { len_x / 2, -len_y / 2, len_z / 2 }
 
float3 v3 { len_x / 2, len_y / 2, len_z / 2 }
 
float3 v4 { -len_x / 2, len_y / 2, len_z / 2 }
 
float3 v5 { -len_x / 2, len_y / 2, -len_z / 2 }
 
float3 v6 { len_x / 2, len_y / 2, -len_z / 2 }
 
float3 v7 { -len_x / 2, -len_y / 2, -len_z / 2 }
 
float3 v8 { len_x / 2, -len_y / 2, -len_z / 2 }
 

Detailed Description

Definition at line 488 of file model-views.h.

Constructor & Destructor Documentation

rs2::tm2_model::tm2_model ( )
inline

Definition at line 491 of file model-views.h.

Member Function Documentation

void rs2::tm2_model::add_to_trajectory ( tracked_point p)
private

Definition at line 7082 of file model-views.cpp.

void rs2::tm2_model::draw_trajectory ( bool  is_trajectory_button_pressed)

Definition at line 7047 of file model-views.cpp.

void rs2::tm2_model::record_trajectory ( bool  on)
inline

Definition at line 496 of file model-views.h.

void rs2::tm2_model::reset_trajectory ( )
inline

Definition at line 497 of file model-views.h.

void rs2::tm2_model::update_model_trajectory ( const pose_frame pose,
bool  track 
)

Definition at line 7021 of file model-views.cpp.

Member Data Documentation

bool rs2::tm2_model::_trajectory_tracking
private

Definition at line 541 of file model-views.h.

std::vector<float2> rs2::tm2_model::boundary
private

Definition at line 540 of file model-views.h.

colored_cube rs2::tm2_model::camera_box { { { f1,colors[0] },{ f2,colors[1] },{ f3,colors[2] },{ f4,colors[3] },{ f5,colors[4] },{ f6,colors[5] } } }
private

Definition at line 537 of file model-views.h.

std::array<color, 6> rs2::tm2_model::colors
private
Initial value:
{ {
{ { 0.5f, 0.5f, 0.5f } },
{ { 0.7f, 0.7f, 0.7f } },
{ { 1.0f, 0.7f, 0.7f } },
{ { 0.7f, 0.7f, 0.7f } },
{ { 0.4f, 0.4f, 0.4f } },
{ { 0.7f, 0.7f, 0.7f } }
} }

Definition at line 528 of file model-views.h.

face rs2::tm2_model::f1 { { v1,v2,v3,v4 } }
private

Definition at line 521 of file model-views.h.

face rs2::tm2_model::f2 { { v2,v8,v6,v3 } }
private

Definition at line 522 of file model-views.h.

face rs2::tm2_model::f3 { { v4,v3,v6,v5 } }
private

Definition at line 523 of file model-views.h.

face rs2::tm2_model::f4 { { v1,v4,v5,v7 } }
private

Definition at line 524 of file model-views.h.

face rs2::tm2_model::f5 { { v7,v8,v6,v5 } }
private

Definition at line 525 of file model-views.h.

face rs2::tm2_model::f6 { { v1,v2,v8,v7 } }
private

Definition at line 526 of file model-views.h.

const float rs2::tm2_model::len_x = 0.1f
private

Definition at line 502 of file model-views.h.

const float rs2::tm2_model::len_y = 0.03f
private

Definition at line 503 of file model-views.h.

const float rs2::tm2_model::len_z = 0.01f
private

Definition at line 504 of file model-views.h.

std::vector<tracked_point> rs2::tm2_model::trajectory
private

Definition at line 539 of file model-views.h.

float3 rs2::tm2_model::v1 { -len_x / 2, -len_y / 2, len_z / 2 }
private

Definition at line 513 of file model-views.h.

float3 rs2::tm2_model::v2 { len_x / 2, -len_y / 2, len_z / 2 }
private

Definition at line 514 of file model-views.h.

float3 rs2::tm2_model::v3 { len_x / 2, len_y / 2, len_z / 2 }
private

Definition at line 515 of file model-views.h.

float3 rs2::tm2_model::v4 { -len_x / 2, len_y / 2, len_z / 2 }
private

Definition at line 516 of file model-views.h.

float3 rs2::tm2_model::v5 { -len_x / 2, len_y / 2, -len_z / 2 }
private

Definition at line 517 of file model-views.h.

float3 rs2::tm2_model::v6 { len_x / 2, len_y / 2, -len_z / 2 }
private

Definition at line 518 of file model-views.h.

float3 rs2::tm2_model::v7 { -len_x / 2, -len_y / 2, -len_z / 2 }
private

Definition at line 519 of file model-views.h.

float3 rs2::tm2_model::v8 { len_x / 2, -len_y / 2, -len_z / 2 }
private

Definition at line 520 of file model-views.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41