Open3D (C++ API)  0.11.0
Data Structures | Public Types | Public Member Functions
open3d::visualization::gui::UIImage Class Reference

#include <UIImage.h>

Data Structures

struct  DrawParams
 
struct  Impl
 

Public Types

enum  Scaling { Scaling::NONE, Scaling::ANY, Scaling::ASPECT }
 

Public Member Functions

 UIImage (const char *image_path)
 
 UIImage (visualization::rendering::TextureHandle texture_id, float u0=0.0f, float v0=0.0f, float u1=1.0f, float v1=1.0f)
 
 ~UIImage ()
 
void SetScaling (Scaling scaling)
 
Scaling GetScaling () const
 
Size CalcPreferredSize (const Theme &theme) const
 
DrawParams CalcDrawParams (visualization::rendering::Renderer &renderer, const Rect &frame) const
 

Member Enumeration Documentation

◆ Scaling

Enumerator
NONE 
ANY 

No scaling, fixed size.

ASPECT 

Scales to any size and aspect ratio.

Scales to any size, but fixed aspect ratio (default)

Constructor & Destructor Documentation

◆ UIImage() [1/2]

open3d::visualization::gui::UIImage::UIImage ( const char *  image_path)
explicit

Uses image from the specified path. Each ImageLabel will use one draw call.

◆ UIImage() [2/2]

open3d::visualization::gui::UIImage::UIImage ( visualization::rendering::TextureHandle  texture_id,
float  u0 = 0.0f,
float  v0 = 0.0f,
float  u1 = 1.0f,
float  v1 = 1.0f 
)
explicit

Uses an existing texture, using texture coordinates (u0, v0) to (u1, v1). Does not deallocate texture on destruction. This is useful for using an icon atlas to reduce draw calls.

◆ ~UIImage()

open3d::visualization::gui::UIImage::~UIImage ( )

Member Function Documentation

◆ CalcDrawParams()

UIImage::DrawParams open3d::visualization::gui::UIImage::CalcDrawParams ( visualization::rendering::Renderer renderer,
const Rect frame 
) const

◆ CalcPreferredSize()

Size open3d::visualization::gui::UIImage::CalcPreferredSize ( const Theme theme) const

◆ GetScaling()

UIImage::Scaling open3d::visualization::gui::UIImage::GetScaling ( ) const

◆ SetScaling()

void open3d::visualization::gui::UIImage::SetScaling ( Scaling  scaling)

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