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

#include <Task.h>

Data Structures

struct  Impl
 

Public Member Functions

 Task (std::function< void()> f)
 
 Task (const Task &)=delete
 
Taskoperator= (const Task &other)=delete
 
 ~Task ()
 Will call WaitToFinish(), which may block. More...
 
void Run ()
 
bool IsFinished () const
 
void WaitToFinish ()
 

Constructor & Destructor Documentation

◆ Task() [1/2]

open3d::visualization::gui::Task::Task ( std::function< void()>  f)

Runs

Parameters
fin another thread. f may want to call Application::PostToMainThread() to communicate the results.

◆ Task() [2/2]

open3d::visualization::gui::Task::Task ( const Task )
delete

◆ ~Task()

open3d::visualization::gui::Task::~Task ( )

Will call WaitToFinish(), which may block.

Member Function Documentation

◆ IsFinished()

bool open3d::visualization::gui::Task::IsFinished ( ) const

◆ operator=()

Task& open3d::visualization::gui::Task::operator= ( const Task other)
delete

◆ Run()

void open3d::visualization::gui::Task::Run ( )

◆ WaitToFinish()

void open3d::visualization::gui::Task::WaitToFinish ( )

This must be called for all tasks eventually or the process will not exit.


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