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

Definition at line 92 of file TDiamond.cxx.

Public Member Functions

void ApplyChanges (TVirtualPad &parent)
 Apply pixel coordinates changes back to box coordinates.
 
void CalcPixelCoord (const TVirtualPad &parent, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Calculate pixel coordinates.
 
char GetGuideChar () const
 Return character for selecting guide action.
 
TObject * GetObject () const
 
Bool_t IsOpaque (const TVirtualPad &parent) const
 Return selected opaque mode.
 
Bool_t IsResizing () const
 Return true if doing resize.
 
void PaintOutline (TVirtualPad &parent) override
 Paint object outline.
 
Bool_t ProcessMouseMove (const TVirtualPad &parent, Int_t px, Int_t py, Bool_t canX=kTRUE, Bool_t canY=kTRUE, Double_t aspectRatio=0.)
 Process change of moue position during dragging.
 
Bool_t SelectCorner (Int_t px, Int_t py, Bool_t canX=kTRUE, Bool_t canY=kTRUE)
 Select corner or side for the inetarctive action.
 
Bool_t SelectDiamondCorner (Int_t px, Int_t py, Bool_t testInside=kTRUE)
 Select diamond corner - or inside area Returns true if any mode was selected Can be reused for diamond and ellipse.
 
void SetCursor (TVirtualPad &parent, Bool_t is_down) const
 Set cursor for current mode.
 
void SetObject (TObject *obj)
 
 TBoxInteractive (Bool_t bx=kTRUE, Double_t x1=0., Double_t y1=0., Double_t x2=0., Double_t y2=0.)
 Constructor.
 

Public Attributes

Int_t dpx1 = 0
 
Int_t dpy2 = 0
 
Bool_t isBox = kTRUE
 
Double_t newX1 = 0.
 
Double_t newX2 = 0.
 
Double_t newY1 = 0.
 
Double_t newY2 = 0.
 
Double_t oldX1 = 0.
 
Double_t oldX2 = 0.
 
Double_t oldY1 = 0.
 
Double_t oldY2 = 0.
 
Int_t px1 = 0
 
Int_t px2 = 0
 
Int_t py1 = 0
 
Int_t py2 = 0
 

Protected Types

enum  EMode {
  pNone = 0 , pA , pB , pC ,
  pD , pTop , pL , pR ,
  pBot , pINSIDE
}
 

Protected Attributes

enum TBoxInteractive::EMode fMode = pNone
 
TObject * fObject = nullptr
 
Inheritance diagram for TDiamondInteractive:
[legend]

Member Enumeration Documentation

◆ EMode

enum TBoxInteractive::EMode
protectedinherited
Enumerator
pNone 
pA 
pB 
pC 
pD 
pTop 
pL 
pR 
pBot 
pINSIDE 

Definition at line 22 of file TBoxInteractive.h.

Member Function Documentation

◆ ApplyChanges()

void TBoxInteractive::ApplyChanges ( TVirtualPad & parent)
inherited

Apply pixel coordinates changes back to box coordinates.

Definition at line 263 of file TBoxInteractive.cxx.

◆ CalcPixelCoord()

void TBoxInteractive::CalcPixelCoord ( const TVirtualPad & parent,
Double_t x1,
Double_t y1,
Double_t x2,
Double_t y2 )
inherited

Calculate pixel coordinates.

Definition at line 37 of file TBoxInteractive.cxx.

◆ GetGuideChar()

char TBoxInteractive::GetGuideChar ( ) const
inherited

Return character for selecting guide action.

Definition at line 306 of file TBoxInteractive.cxx.

◆ GetObject()

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

Definition at line 82 of file TVirtualPad.h.

◆ IsOpaque()

Bool_t TBoxInteractive::IsOpaque ( const TVirtualPad & parent) const
inherited

Return selected opaque mode.

Definition at line 124 of file TBoxInteractive.cxx.

◆ IsResizing()

Bool_t TBoxInteractive::IsResizing ( ) const
inherited

Return true if doing resize.

Definition at line 116 of file TBoxInteractive.cxx.

◆ PaintOutline()

void TDiamondInteractive::PaintOutline ( TVirtualPad & parent)
inlineoverridevirtual

Paint object outline.

Reimplemented from TBoxInteractive.

Definition at line 96 of file TDiamond.cxx.

◆ ProcessMouseMove()

Bool_t TBoxInteractive::ProcessMouseMove ( const TVirtualPad & parent,
Int_t px,
Int_t py,
Bool_t canX = kTRUE,
Bool_t canY = kTRUE,
Double_t aspectRatio = 0. )
inherited

Process change of moue position during dragging.

Definition at line 132 of file TBoxInteractive.cxx.

◆ SelectCorner()

Bool_t TBoxInteractive::SelectCorner ( Int_t px,
Int_t py,
Bool_t canX = kTRUE,
Bool_t canY = kTRUE )
inherited

Select corner or side for the inetarctive action.

Definition at line 52 of file TBoxInteractive.cxx.

◆ SelectDiamondCorner()

Bool_t TBoxInteractive::SelectDiamondCorner ( Int_t px,
Int_t py,
Bool_t testInside = kTRUE )
inherited

Select diamond corner - or inside area Returns true if any mode was selected Can be reused for diamond and ellipse.

Definition at line 87 of file TBoxInteractive.cxx.

◆ SetCursor()

void TBoxInteractive::SetCursor ( TVirtualPad & parent,
Bool_t is_down ) const
inherited

Set cursor for current mode.

Definition at line 287 of file TBoxInteractive.cxx.

◆ SetObject()

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

Definition at line 81 of file TVirtualPad.h.

◆ TBoxInteractive()

TBoxInteractive::TBoxInteractive ( Bool_t bx = kTRUE,
Double_t x1 = 0.,
Double_t y1 = 0.,
Double_t x2 = 0.,
Double_t y2 = 0. )

Constructor.

Definition at line 30 of file TBoxInteractive.cxx.

Member Data Documentation

◆ dpx1

Int_t TBoxInteractive::dpx1 = 0
inherited

Definition at line 26 of file TBoxInteractive.h.

◆ dpy2

Int_t TBoxInteractive::dpy2 = 0
inherited

Definition at line 26 of file TBoxInteractive.h.

◆ fMode

enum TBoxInteractive::EMode TBoxInteractive::fMode = pNone
protectedinherited

◆ fObject

TObject* TVirtualPad::TInteractive::fObject = nullptr
protectedinherited

Definition at line 77 of file TVirtualPad.h.

◆ isBox

Bool_t TBoxInteractive::isBox = kTRUE
inherited

Definition at line 25 of file TBoxInteractive.h.

◆ newX1

Double_t TBoxInteractive::newX1 = 0.
inherited

Definition at line 28 of file TBoxInteractive.h.

◆ newX2

Double_t TBoxInteractive::newX2 = 0.
inherited

Definition at line 28 of file TBoxInteractive.h.

◆ newY1

Double_t TBoxInteractive::newY1 = 0.
inherited

Definition at line 28 of file TBoxInteractive.h.

◆ newY2

Double_t TBoxInteractive::newY2 = 0.
inherited

Definition at line 28 of file TBoxInteractive.h.

◆ oldX1

Double_t TBoxInteractive::oldX1 = 0.
inherited

Definition at line 27 of file TBoxInteractive.h.

◆ oldX2

Double_t TBoxInteractive::oldX2 = 0.
inherited

Definition at line 27 of file TBoxInteractive.h.

◆ oldY1

Double_t TBoxInteractive::oldY1 = 0.
inherited

Definition at line 27 of file TBoxInteractive.h.

◆ oldY2

Double_t TBoxInteractive::oldY2 = 0.
inherited

Definition at line 27 of file TBoxInteractive.h.

◆ px1

Int_t TBoxInteractive::px1 = 0
inherited

Definition at line 26 of file TBoxInteractive.h.

◆ px2

Int_t TBoxInteractive::px2 = 0
inherited

Definition at line 26 of file TBoxInteractive.h.

◆ py1

Int_t TBoxInteractive::py1 = 0
inherited

Definition at line 26 of file TBoxInteractive.h.

◆ py2

Int_t TBoxInteractive::py2 = 0
inherited

Definition at line 26 of file TBoxInteractive.h.

  • graf2d/graf/src/TDiamond.cxx