Open3D (C++ API)  0.18.0
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
open3d::visualization::gui::MouseEvent Struct Reference

#include <Events.h>

Public Types

enum  Type {
  MOVE , BUTTON_DOWN , DRAG , BUTTON_UP ,
  WHEEL
}
 

Public Member Functions

bool FromJson (const Json::Value &value)
 
std::string ToString () const
 

Static Public Member Functions

static MouseEvent MakeMoveEvent (const Type type, const int x, const int y, const int modifiers, const int buttons)
 
static MouseEvent MakeButtonEvent (const Type type, const int x, const int y, const int modifiers, const MouseButton button, const int count)
 
static MouseEvent MakeWheelEvent (const Type type, const int x, const int y, const int modifiers, const float dx, const float dy, const bool isTrackpad)
 

Data Fields

Type type
 
int x
 
int y
 
int modifiers
 
union {
   struct {
      int   buttons
 
   }   move
 
   struct {
      MouseButton   button
 
      int   count
 
   }   button
 
   struct {
      float   dx
 
      float   dy
 
      bool   isTrackpad
 
   }   wheel
 
}; 
 

Member Enumeration Documentation

◆ Type

Enumerator
MOVE 
BUTTON_DOWN 
DRAG 
BUTTON_UP 
WHEEL 

Member Function Documentation

◆ FromJson()

bool open3d::visualization::gui::MouseEvent::FromJson ( const Json::Value &  value)

◆ MakeButtonEvent()

MouseEvent open3d::visualization::gui::MouseEvent::MakeButtonEvent ( const Type  type,
const int  x,
const int  y,
const int  modifiers,
const MouseButton  button,
const int  count 
)
static

◆ MakeMoveEvent()

MouseEvent open3d::visualization::gui::MouseEvent::MakeMoveEvent ( const Type  type,
const int  x,
const int  y,
const int  modifiers,
const int  buttons 
)
static

◆ MakeWheelEvent()

MouseEvent open3d::visualization::gui::MouseEvent::MakeWheelEvent ( const Type  type,
const int  x,
const int  y,
const int  modifiers,
const float  dx,
const float  dy,
const bool  isTrackpad 
)
static

◆ ToString()

std::string open3d::visualization::gui::MouseEvent::ToString ( ) const

Field Documentation

◆ 

union { ... }

◆ button [1/2]

MouseButton open3d::visualization::gui::MouseEvent::button

◆  [2/2]

struct { ... } open3d::visualization::gui::MouseEvent::button

◆ buttons

int open3d::visualization::gui::MouseEvent::buttons

◆ count

int open3d::visualization::gui::MouseEvent::count

◆ dx

float open3d::visualization::gui::MouseEvent::dx

◆ dy

float open3d::visualization::gui::MouseEvent::dy

◆ isTrackpad

bool open3d::visualization::gui::MouseEvent::isTrackpad

◆ modifiers

int open3d::visualization::gui::MouseEvent::modifiers

◆ 

struct { ... } open3d::visualization::gui::MouseEvent::move

◆ type

Type open3d::visualization::gui::MouseEvent::type

◆ 

struct { ... } open3d::visualization::gui::MouseEvent::wheel

◆ x

int open3d::visualization::gui::MouseEvent::x

◆ y

int open3d::visualization::gui::MouseEvent::y

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