Open3D (C++ API)  0.18.0+252c867
Data Structures | Public Member Functions
open3d::visualization::gui::Label3D Class Reference

#include <Label3D.h>

Data Structures

struct  Impl
 

Public Member Functions

 Label3D (const Eigen::Vector3f &pos, const char *text=nullptr)
 Copies text. More...
 
 ~Label3D ()
 
const char * GetText () const
 
void SetText (const char *text)
 Sets the text of the label (copies text) More...
 
Eigen::Vector3f GetPosition () const
 
void SetPosition (const Eigen::Vector3f &pos)
 
Color GetTextColor () const
 Returns the color with which the text will be drawn. More...
 
void SetTextColor (const Color &color)
 Set the color with which the text will be drawn. More...
 
float GetTextScale () const
 Get the current scale. See not below on meaning of scale. More...
 
void SetTextScale (float scale)
 

Constructor & Destructor Documentation

◆ Label3D()

open3d::visualization::gui::Label3D::Label3D ( const Eigen::Vector3f &  pos,
const char *  text = nullptr 
)
explicit

Copies text.

◆ ~Label3D()

open3d::visualization::gui::Label3D::~Label3D ( )

Member Function Documentation

◆ GetPosition()

Eigen::Vector3f open3d::visualization::gui::Label3D::GetPosition ( ) const

◆ GetText()

const char * open3d::visualization::gui::Label3D::GetText ( ) const

◆ GetTextColor()

Color open3d::visualization::gui::Label3D::GetTextColor ( ) const

Returns the color with which the text will be drawn.

◆ GetTextScale()

float open3d::visualization::gui::Label3D::GetTextScale ( ) const

Get the current scale. See not below on meaning of scale.

◆ SetPosition()

void open3d::visualization::gui::Label3D::SetPosition ( const Eigen::Vector3f &  pos)

◆ SetText()

void open3d::visualization::gui::Label3D::SetText ( const char *  text)

Sets the text of the label (copies text)

◆ SetTextColor()

void open3d::visualization::gui::Label3D::SetTextColor ( const Color color)

Set the color with which the text will be drawn.

◆ SetTextScale()

void open3d::visualization::gui::Label3D::SetTextScale ( float  scale)

Sets the scale factor for the text sprite. It does not change the underlying font size but scales how large it appears. Warning: large scale factors may result in blurry text.


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