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

The 3D axis painter class.

This class provide up to 3 axes to any 3D ROOT plot and "ZOOM" service. ExecuteEvent() method does provide zooming and moving a projection 3D object within TPad client area. With Zoom mode on the user can access TAxis3D context menu and set /change the attributes of axes all together or separately.

To add the 3D rulers to any 3D view one has to create an instance of this class and Draw it.

TAxis3D rulers;
rulers.Draw();
The 3D axis painter class.
Definition TAxis3D.h:31
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Definition TObject.cxx:280

One can use a static method to create ruler and attach it to the current gPad

TAxis3D::ToggleRulers(); // Brings the 3D axes up
TAxis3D::ToggleRulers(); // next calls remove the rulers from the TPad etc
static TAxis3D * ToggleRulers(TVirtualPad *pad=nullptr)
Turn ON / OFF the "Ruler", TAxis3D object attached to the current pad.
Definition TAxis3D.cxx:738

To activate Zoomer one may call

static TAxis3D * ToggleZoom(TVirtualPad *pad=nullptr)
Turn ON / OFF the "Ruler" and "zoom mode" of the TAxis3D object attached to the current pad (if pad =...
Definition TAxis3D.cxx:766

each time one needs move or zoom the image. Then the user can:

  • move:
  • zoom:

its 3D view with <left-mouse button> press / move. The "Zoom" deactivates itself just the user release the <left-mouse button>

To change attributes of the rulers attached to the current Pad, one may query its pointer first:

TAxis3D *axis = TAxis3D::GetPadAxis(); // Ask axis pointer
if (axis) {
TAxis3D::ToggleRulers() // To pop axes down
axis->SetLabelColor(kBlue); // Paint the axes labels with blue color
axis->SetAxisColor(kRed); // Paint the axes itself with blue color
TAxis3D::ToggleRulers() // To pop axes up
}
@ kRed
Definition Rtypes.h:66
@ kBlue
Definition Rtypes.h:66
static TAxis3D * GetPadAxis(TVirtualPad *pad=nullptr)
Returns the "pad" Axis3D object pointer if any.
Definition TAxis3D.cxx:721
virtual void SetAxisColor(Color_t color=1, Option_t *axis="*")
Set axis color.
Definition TAxis3D.cxx:651
virtual void SetLabelColor(Color_t color=1, Option_t *axis="*")
Set label color.
Definition TAxis3D.cxx:672

The attributes of the created axes are affected by the current style (see TStyle class ) and Set... methods of this class

For example:

@ kYellow
Definition Rtypes.h:66
R__EXTERN TStyle * gStyle
Definition TStyle.h:436
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
Definition TStyle.cxx:1323
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
Definition TStyle.cxx:1393

will draw all axes and labels with yellow color.

Definition at line 31 of file TAxis3D.h.

Public Member Functions

 TAxis3D ()
 Normal constructor.
 
 TAxis3D (const TAxis3D &axis)
 Copy constructor.
 
 TAxis3D (Option_t *option)
 Normal constructor.
 
 ~TAxis3D () override
 
void Browse (TBrowser *b) override
 Add all 3 axes to the TBrowser.
 
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Compute distance from point px,py to a line.
 
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 Execute action corresponding to one event.
 
virtual Color_t GetAxisColor (Option_t *axis="X") const
 Get axis color.
 
virtual void GetCenter (Axis_t *center)
 
virtual Color_t GetLabelColor (Option_t *axis="X") const
 Get label color.
 
virtual Style_t GetLabelFont (Option_t *axis="X") const
 Get label font.
 
virtual Float_t GetLabelOffset (Option_t *axis="X") const
 Get label offset.
 
virtual Float_t GetLabelSize (Option_t *axis="X") const
 Get label size.
 
virtual void GetLowEdge (Axis_t *edge)
 
virtual Int_t GetNdivisions (Option_t *axis="X") const
 Get number of divisions.
 
char * GetObjectInfo (Int_t px, Int_t py) const override
 Dummy method returns the const char * to "axis3d".
 
Option_tGetOption () const override
 
virtual Float_t GetTickLength (Option_t *axis="X") const
 Get tick mark length.
 
virtual Float_t GetTitleOffset (Option_t *axis="X") const
 Get title offset.
 
virtual TAxisGetXaxis ()
 
virtual TAxisGetYaxis ()
 
virtual TAxisGetZaxis ()
 
TClassIsA () const override
 
Bool_t IsFolder () const override
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
void Paint (Option_t *option="") override
 Paint axis over 3D view on the TPad.
 
void PaintAxis (TGaxis *axis, Float_t ang)
 Draw the axis for TView object.
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 Save primitive as a C++ statement(s) on output stream out.
 
virtual void SetAxisColor (Color_t color=1, Option_t *axis="*")
 Set axis color.
 
virtual void SetAxisRange (Double_t xmin, Double_t xmax, Option_t *axis="*")
 Set axis range.
 
virtual void SetLabelColor (Color_t color=1, Option_t *axis="*")
 Set label color.
 
virtual void SetLabelFont (Style_t font=62, Option_t *axis="*")
 Set label font.
 
virtual void SetLabelOffset (Float_t offset=0.005, Option_t *axis="*")
 Set label offset.
 
virtual void SetLabelSize (Float_t size=0.02, Option_t *axis="*")
 Set label size.
 
virtual void SetNdivisions (Int_t n=510, Option_t *axis="*")
 Set number of divisions.
 
virtual void SetOption (Option_t *option=" ")
 
virtual void SetTickLength (Float_t length=0.02, Option_t *axis="*")
 Set tick mark length.
 
virtual void SetTitleOffset (Float_t offset=1, Option_t *axis="*")
 Set title offset.
 
virtual void SetXTitle (const char *title)
 
virtual void SetYTitle (const char *title)
 
virtual void SetZTitle (const char *title)
 
Bool_tStickyZoom ()
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
void UseCurrentStyle () override
 Replace current attributes by current style.
 
Bool_tZoom ()
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
void Copy (TObject &named) const override
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TAxis3DGetPadAxis (TVirtualPad *pad=nullptr)
 Returns the "pad" Axis3D object pointer if any.
 
static Double_tPixeltoXYZ (Double_t px, Double_t py, Double_t *point3D, TView *view=nullptr)
 Convert "screen pixel" coordinates to some center of 3D WC coordinate if view and gPad present.
 
static TAxis3DToggleRulers (TVirtualPad *pad=nullptr)
 Turn ON / OFF the "Ruler", TAxis3D object attached to the current pad.
 
static TAxis3DToggleZoom (TVirtualPad *pad=nullptr)
 Turn ON / OFF the "Ruler" and "zoom mode" of the TAxis3D object attached to the current pad (if pad = 0; gPad is used "by default")
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 

Protected Member Functions

void Copy (TObject &hnew) const override
 Copy axis3d.
 
void InitSet ()
 Initialization.
 
Bool_t SwitchZoom ()
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 

Protected Attributes

TAxis fAxis [3]
 
TString fOption
 
TAxisfSelected
 
Bool_t fStickyZoom
 
Bool_t fZoomMode
 The selected axis to play with.
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

Static Protected Attributes

static const char * fgRulerName = "axis3druler"
 

Private Member Functions

Int_t AxisChoice (Option_t *axis) const
 Return the axis index by its name.
 
void Build ()
 

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 

#include <TAxis3D.h>

Inheritance diagram for TAxis3D:
[legend]

Constructor & Destructor Documentation

◆ TAxis3D() [1/3]

TAxis3D::TAxis3D ( )

Normal constructor.

Definition at line 109 of file TAxis3D.cxx.

◆ TAxis3D() [2/3]

TAxis3D::TAxis3D ( Option_t option)

Normal constructor.

Definition at line 120 of file TAxis3D.cxx.

◆ TAxis3D() [3/3]

TAxis3D::TAxis3D ( const TAxis3D axis)

Copy constructor.

Definition at line 131 of file TAxis3D.cxx.

◆ ~TAxis3D()

TAxis3D::~TAxis3D ( )
inlineoverride

Definition at line 53 of file TAxis3D.h.

Member Function Documentation

◆ AxisChoice()

Int_t TAxis3D::AxisChoice ( Option_t axis) const
private

Return the axis index by its name.

Definition at line 543 of file TAxis3D.cxx.

◆ Browse()

void TAxis3D::Browse ( TBrowser b)
overridevirtual

Add all 3 axes to the TBrowser.

Reimplemented from TObject.

Definition at line 164 of file TAxis3D.cxx.

◆ Build()

void TAxis3D::Build ( )
private

◆ Class()

static TClass * TAxis3D::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TAxis3D::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TAxis3D::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 109 of file TAxis3D.h.

◆ Copy()

void TAxis3D::Copy ( TObject hnew) const
overrideprotectedvirtual

Copy axis3d.

Reimplemented from TObject.

Definition at line 139 of file TAxis3D.cxx.

◆ DeclFileName()

static const char * TAxis3D::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 109 of file TAxis3D.h.

◆ DistancetoPrimitive()

Int_t TAxis3D::DistancetoPrimitive ( Int_t  px,
Int_t  py 
)
overridevirtual

Compute distance from point px,py to a line.

Reimplemented from TObject.

Definition at line 172 of file TAxis3D.cxx.

◆ ExecuteEvent()

void TAxis3D::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
overridevirtual

Execute action corresponding to one event.

This member function is called when an axis is clicked with the locator

Reimplemented from TObject.

Definition at line 190 of file TAxis3D.cxx.

◆ GetAxisColor()

Color_t TAxis3D::GetAxisColor ( Option_t axis = "X") const
virtual

Get axis color.

Definition at line 565 of file TAxis3D.cxx.

◆ GetCenter()

virtual void TAxis3D::GetCenter ( Axis_t center)
inlinevirtual

Definition at line 73 of file TAxis3D.h.

◆ GetLabelColor()

Color_t TAxis3D::GetLabelColor ( Option_t axis = "X") const
virtual

Get label color.

Definition at line 575 of file TAxis3D.cxx.

◆ GetLabelFont()

Style_t TAxis3D::GetLabelFont ( Option_t axis = "X") const
virtual

Get label font.

Definition at line 585 of file TAxis3D.cxx.

◆ GetLabelOffset()

Float_t TAxis3D::GetLabelOffset ( Option_t axis = "X") const
virtual

Get label offset.

Definition at line 595 of file TAxis3D.cxx.

◆ GetLabelSize()

Float_t TAxis3D::GetLabelSize ( Option_t axis = "X") const
virtual

Get label size.

Definition at line 605 of file TAxis3D.cxx.

◆ GetLowEdge()

virtual void TAxis3D::GetLowEdge ( Axis_t edge)
inlinevirtual

Definition at line 75 of file TAxis3D.h.

◆ GetNdivisions()

Int_t TAxis3D::GetNdivisions ( Option_t axis = "X") const
virtual

Get number of divisions.

Definition at line 555 of file TAxis3D.cxx.

◆ GetObjectInfo()

char * TAxis3D::GetObjectInfo ( Int_t  px,
Int_t  py 
) const
overridevirtual

Dummy method returns the const char * to "axis3d".

Reimplemented from TObject.

Definition at line 302 of file TAxis3D.cxx.

◆ GetOption()

Option_t * TAxis3D::GetOption ( ) const
inlineoverridevirtual

Reimplemented from TObject.

Definition at line 79 of file TAxis3D.h.

◆ GetPadAxis()

TAxis3D * TAxis3D::GetPadAxis ( TVirtualPad pad = nullptr)
static

Returns the "pad" Axis3D object pointer if any.

Definition at line 721 of file TAxis3D.cxx.

◆ GetTickLength()

Float_t TAxis3D::GetTickLength ( Option_t axis = "X") const
virtual

Get tick mark length.

Definition at line 615 of file TAxis3D.cxx.

◆ GetTitleOffset()

Float_t TAxis3D::GetTitleOffset ( Option_t axis = "X") const
virtual

Get title offset.

Definition at line 625 of file TAxis3D.cxx.

◆ GetXaxis()

virtual TAxis * TAxis3D::GetXaxis ( )
inlinevirtual

Definition at line 81 of file TAxis3D.h.

◆ GetYaxis()

virtual TAxis * TAxis3D::GetYaxis ( )
inlinevirtual

Definition at line 82 of file TAxis3D.h.

◆ GetZaxis()

virtual TAxis * TAxis3D::GetZaxis ( )
inlinevirtual

Definition at line 83 of file TAxis3D.h.

◆ InitSet()

void TAxis3D::InitSet ( )
protected

Initialization.

Definition at line 149 of file TAxis3D.cxx.

◆ IsA()

TClass * TAxis3D::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 109 of file TAxis3D.h.

◆ IsFolder()

Bool_t TAxis3D::IsFolder ( ) const
inlineoverridevirtual

Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).

Reimplemented from TObject.

Definition at line 84 of file TAxis3D.h.

◆ Paint()

void TAxis3D::Paint ( Option_t option = "")
overridevirtual

Paint axis over 3D view on the TPad.

Reimplemented from TObject.

Definition at line 310 of file TAxis3D.cxx.

◆ PaintAxis()

void TAxis3D::PaintAxis ( TGaxis axis,
Float_t  ang 
)

Draw the axis for TView object.

The original idea belongs:

void THistPainter::PaintLegoAxis(TGaxis *axis, Double_t ang)

Definition at line 323 of file TAxis3D.cxx.

◆ PixeltoXYZ()

Double_t * TAxis3D::PixeltoXYZ ( Double_t  px,
Double_t  py,
Double_t point3D,
TView view = nullptr 
)
static

Convert "screen pixel" coordinates to some center of 3D WC coordinate if view and gPad present.

Definition at line 457 of file TAxis3D.cxx.

◆ SavePrimitive()

void TAxis3D::SavePrimitive ( std::ostream &  out,
Option_t option = "" 
)
overridevirtual

Save primitive as a C++ statement(s) on output stream out.

Reimplemented from TObject.

Definition at line 480 of file TAxis3D.cxx.

◆ SetAxisColor()

void TAxis3D::SetAxisColor ( Color_t  color = 1,
Option_t axis = "*" 
)
virtual

Set axis color.

Definition at line 651 of file TAxis3D.cxx.

◆ SetAxisRange()

void TAxis3D::SetAxisRange ( Double_t  xmin,
Double_t  xmax,
Option_t axis = "*" 
)
virtual

Set axis range.

Definition at line 659 of file TAxis3D.cxx.

◆ SetLabelColor()

void TAxis3D::SetLabelColor ( Color_t  color = 1,
Option_t axis = "*" 
)
virtual

Set label color.

Definition at line 672 of file TAxis3D.cxx.

◆ SetLabelFont()

void TAxis3D::SetLabelFont ( Style_t  font = 62,
Option_t axis = "*" 
)
virtual

Set label font.

Definition at line 680 of file TAxis3D.cxx.

◆ SetLabelOffset()

void TAxis3D::SetLabelOffset ( Float_t  offset = 0.005,
Option_t axis = "*" 
)
virtual

Set label offset.

Definition at line 688 of file TAxis3D.cxx.

◆ SetLabelSize()

void TAxis3D::SetLabelSize ( Float_t  size = 0.02,
Option_t axis = "*" 
)
virtual

Set label size.

Definition at line 696 of file TAxis3D.cxx.

◆ SetNdivisions()

void TAxis3D::SetNdivisions ( Int_t  n = 510,
Option_t axis = "*" 
)
virtual

Set number of divisions.

Definition at line 643 of file TAxis3D.cxx.

◆ SetOption()

virtual void TAxis3D::SetOption ( Option_t option = " ")
inlinevirtual

Definition at line 99 of file TAxis3D.h.

◆ SetTickLength()

void TAxis3D::SetTickLength ( Float_t  length = 0.02,
Option_t axis = "*" 
)
virtual

Set tick mark length.

Definition at line 704 of file TAxis3D.cxx.

◆ SetTitleOffset()

void TAxis3D::SetTitleOffset ( Float_t  offset = 1,
Option_t axis = "*" 
)
virtual

Set title offset.

Definition at line 712 of file TAxis3D.cxx.

◆ SetXTitle()

virtual void TAxis3D::SetXTitle ( const char *  title)
inlinevirtual

Definition at line 102 of file TAxis3D.h.

◆ SetYTitle()

virtual void TAxis3D::SetYTitle ( const char *  title)
inlinevirtual

Definition at line 103 of file TAxis3D.h.

◆ SetZTitle()

virtual void TAxis3D::SetZTitle ( const char *  title)
inlinevirtual

Definition at line 104 of file TAxis3D.h.

◆ StickyZoom()

Bool_t & TAxis3D::StickyZoom ( )
inline

Definition at line 60 of file TAxis3D.h.

◆ Streamer()

void TAxis3D::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void TAxis3D::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 109 of file TAxis3D.h.

◆ SwitchZoom()

Bool_t TAxis3D::SwitchZoom ( )
inlineprotected

Definition at line 113 of file TAxis3D.h.

◆ ToggleRulers()

TAxis3D * TAxis3D::ToggleRulers ( TVirtualPad pad = nullptr)
static

Turn ON / OFF the "Ruler", TAxis3D object attached to the current pad.

Definition at line 738 of file TAxis3D.cxx.

◆ ToggleZoom()

TAxis3D * TAxis3D::ToggleZoom ( TVirtualPad pad = nullptr)
static

Turn ON / OFF the "Ruler" and "zoom mode" of the TAxis3D object attached to the current pad (if pad = 0; gPad is used "by default")

User is given a chance to either:

  1. move the center of the 3D scene at the cursor position
  2. zoom view with mouse "drugging" the bounder rectangle with "left" mouse
  3. Change the axis attributes via TContextMenu with "right mouse button click"

Definition at line 766 of file TAxis3D.cxx.

◆ UseCurrentStyle()

void TAxis3D::UseCurrentStyle ( )
overridevirtual

Replace current attributes by current style.

Reimplemented from TObject.

Definition at line 490 of file TAxis3D.cxx.

◆ Zoom()

Bool_t & TAxis3D::Zoom ( )
inline

Definition at line 61 of file TAxis3D.h.

Member Data Documentation

◆ fAxis

TAxis TAxis3D::fAxis[3]
protected

Definition at line 38 of file TAxis3D.h.

◆ fgRulerName

const Char_t * TAxis3D::fgRulerName = "axis3druler"
staticprotected

Definition at line 40 of file TAxis3D.h.

◆ fOption

TString TAxis3D::fOption
protected

Definition at line 39 of file TAxis3D.h.

◆ fSelected

TAxis* TAxis3D::fSelected
protected

Definition at line 41 of file TAxis3D.h.

◆ fStickyZoom

Bool_t TAxis3D::fStickyZoom
protected

Definition at line 43 of file TAxis3D.h.

◆ fZoomMode

Bool_t TAxis3D::fZoomMode
protected

The selected axis to play with.

Definition at line 42 of file TAxis3D.h.

Libraries for TAxis3D:

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