Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TTwoPointInteractive Class Reference

Internal class implementing mouse click/move/relase editing Used for many classes like line, arrow, arc, pad, paves, ...

Definition at line 55 of file TCreatePrimitives.cxx.

Public Member Functions

 TTwoPointInteractive (Int_t mode, Double_t x0, Double_t y0, Int_t px0, Int_t py0)
 
TObject * GetObject () const
 
template<typename T , typename... Rest>
T * Make (TPad &parent, Rest &&... rest)
 
template<class T >
void SetCoord (T *obj, Double_t x, Double_t y)
 
void SetObject (TObject *obj)
 

Public Attributes

Int_t fMode = 0
 edit mode when interactive action started
 
TObject * fObject = nullptr
 object created by interactive action, owned by pad
 
Int_t fPX0 = 0
 
Int_t fPY0 = 0
 initial mouse pointer position in pixel coordiantes
 
Double_t fX0 = 0
 
Double_t fY0 = 0
 initial mouse pointer position in user coordiantes
 
Inheritance diagram for TTwoPointInteractive:
[legend]

Constructor & Destructor Documentation

◆ TTwoPointInteractive()

TTwoPointInteractive::TTwoPointInteractive ( Int_t mode,
Double_t x0,
Double_t y0,
Int_t px0,
Int_t py0 )
inline

Definition at line 58 of file TCreatePrimitives.cxx.

Member Function Documentation

◆ GetObject()

TObject * TVirtualPad::TInteractive::GetObject ( ) const
inlineinherited

Definition at line 79 of file TVirtualPad.h.

◆ Make()

template<typename T , typename... Rest>
T * TTwoPointInteractive::Make ( TPad & parent,
Rest &&... rest )
inline

Definition at line 68 of file TCreatePrimitives.cxx.

◆ SetCoord()

template<class T >
void TTwoPointInteractive::SetCoord ( T * obj,
Double_t x,
Double_t y )
inline

Definition at line 86 of file TCreatePrimitives.cxx.

◆ SetObject()

void TVirtualPad::TInteractive::SetObject ( TObject * obj)
inlineinherited

Definition at line 78 of file TVirtualPad.h.

Member Data Documentation

◆ fMode

Int_t TTwoPointInteractive::fMode = 0

edit mode when interactive action started

Definition at line 94 of file TCreatePrimitives.cxx.

◆ fObject

TObject* TTwoPointInteractive::fObject = nullptr

object created by interactive action, owned by pad

Definition at line 97 of file TCreatePrimitives.cxx.

◆ fPX0

Int_t TTwoPointInteractive::fPX0 = 0

Definition at line 96 of file TCreatePrimitives.cxx.

◆ fPY0

Int_t TTwoPointInteractive::fPY0 = 0

initial mouse pointer position in pixel coordiantes

Definition at line 96 of file TCreatePrimitives.cxx.

◆ fX0

Double_t TTwoPointInteractive::fX0 = 0

Definition at line 95 of file TCreatePrimitives.cxx.

◆ fY0

Double_t TTwoPointInteractive::fY0 = 0

initial mouse pointer position in user coordiantes

Definition at line 95 of file TCreatePrimitives.cxx.

  • graf2d/gpad/src/TCreatePrimitives.cxx