The 3D view class.
This package was originally written by Evgueni Tcherniaev from IHEP/Protvino.
The original Fortran implementation was adapted to HIGZ/PAW by Olivier Couet and Evgueni Tcherniaev.
This View class is a subset of the original system. It has been converted to a C++ class by Rene Brun.
TView3D creates a 3-D view in the current pad. In this 3D view Lego and Surface plots can be drawn and also 3D polyline and markers. Most of the time a TView3D is created automatically when a 3D object needs to be painted in a pad (for instance a Lego or a Surface plot).
In some case a TView3D should be explicitly. For instance to paint a 3D simple scene composed of simple objects like polylines and polymarkers. The following macro gives an example:
Several coordinate systems are available:
Public Types | |
enum | { kPerspective = BIT(6) } |
Public Types inherited from TObject | |
enum | { kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 , kBitMask = 0x00ffffff } |
enum | { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) } |
enum | EDeprecatedStatusBits { kObjInCanvas = BIT(3) } |
enum | EStatusBits { kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) , kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13) } |
Public Member Functions | |
TView3D () | |
Default constructor. More... | |
TView3D (Int_t system, const Double_t *rmin, const Double_t *rmax) | |
TView3D constructor. More... | |
virtual | ~TView3D () |
TView3D default destructor. More... | |
virtual void | AdjustScales (TVirtualPad *pad=0) |
Adjust all sides of view in respect of the biggest one. More... | |
virtual void | AxisVertex (Double_t ang, Double_t *av, Int_t &ix1, Int_t &ix2, Int_t &iy1, Int_t &iy2, Int_t &iz1, Int_t &iz2) |
Define axis vertices. More... | |
virtual void | Centered () |
virtual void | Centered3DImages (TVirtualPad *pad=0) |
Move view into the center of the scene. More... | |
virtual void | DefinePerspectiveView () |
Define perspective view. More... | |
virtual void | DefineViewDirection (const Double_t *s, const Double_t *c, Double_t cosphi, Double_t sinphi, Double_t costhe, Double_t sinthe, Double_t cospsi, Double_t sinpsi, Double_t *tnorm, Double_t *tback) |
Define view direction (in spherical coordinates) More... | |
virtual void | DrawOutlineCube (TList *outline, Double_t *rmin, Double_t *rmax) |
Draw the outline of a cube while rotating a 3-d object in the pad. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to one event. More... | |
virtual void | ExecuteRotateView (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to one event. More... | |
virtual void | FindNormal (Double_t x, Double_t y, Double_t z, Double_t &zn) |
Find Z component of NORMAL in normalized coordinates. More... | |
virtual void | FindPhiSectors (Int_t iopt, Int_t &kphi, Double_t *aphi, Int_t &iphi1, Int_t &iphi2) |
Find critical PHI sectors. More... | |
virtual void | FindScope (Double_t *scale, Double_t *center, Int_t &irep) |
Find centre of a MIN-MAX scope and scale factors. More... | |
virtual void | FindThetaSectors (Int_t iopt, Double_t phi, Int_t &kth, Double_t *ath, Int_t &ith1, Int_t &ith2) |
Find critical THETA sectors for given PHI sector. More... | |
virtual void | Front () |
virtual void | FrontView (TVirtualPad *pad=0) |
Set to front view. More... | |
virtual Bool_t | GetAutoRange () |
virtual Int_t | GetDistancetoAxis (Int_t axis, Int_t px, Int_t py, Double_t &ratio) |
Return distance to axis from point px,py. More... | |
virtual Double_t | GetDproj () const |
virtual Double_t | GetDview () const |
virtual Double_t | GetExtent () const |
Get maximum view extent. More... | |
virtual Double_t | GetLatitude () |
virtual Double_t | GetLongitude () |
virtual TSeqCollection * | GetOutline () |
virtual Double_t | GetPsi () |
virtual void | GetRange (Double_t *min, Double_t *max) |
Get Range function. More... | |
virtual void | GetRange (Float_t *min, Float_t *max) |
Get Range function. More... | |
virtual Double_t * | GetRmax () |
virtual Double_t * | GetRmin () |
virtual Int_t | GetSystem () |
virtual Double_t * | GetTback () |
virtual Double_t * | GetTN () |
virtual Double_t * | GetTnorm () |
virtual void | GetWindow (Double_t &u0, Double_t &v0, Double_t &du, Double_t &dv) const |
Get current window extent. More... | |
virtual Double_t | GetWindowHeight () const |
virtual Double_t | GetWindowWidth () const |
virtual Bool_t | IsClippedNDC (Double_t *p) const |
Check if point is clipped in perspective view. More... | |
virtual Bool_t | IsPerspective () const |
virtual Bool_t | IsViewChanged () const |
virtual void | MoveFocus (Double_t *center, Double_t dx, Double_t dy, Double_t dz, Int_t nsteps=10, Double_t dlong=0, Double_t dlat=0, Double_t dpsi=0) |
Move focus to a different box position and extent in nsteps. More... | |
virtual void | MoveViewCommand (Char_t chCode, Int_t count=1) |
virtual void | MoveWindow (Char_t option) |
Move view window : More... | |
virtual void | NDCtoWC (const Double_t *pn, Double_t *pw) |
Transfer point from normalized to world coordinates. More... | |
virtual void | NDCtoWC (const Float_t *pn, Float_t *pw) |
Transfer point from normalized to world coordinates. More... | |
virtual void | NormalWCtoNDC (const Double_t *pw, Double_t *pn) |
Transfer vector of NORMAL from word to normalized coordinates. More... | |
virtual void | NormalWCtoNDC (const Float_t *pw, Float_t *pn) |
Transfer vector of NORMAL from word to normalized coordinates. More... | |
virtual void | PadRange (Int_t rback) |
Set the correct window size for lego and surface plots. More... | |
virtual void | ResizePad () |
Recompute window for perspective view. More... | |
virtual void | RotateView (Double_t phi, Double_t theta, TVirtualPad *pad=0) |
API to rotate view and adjust the pad provided it the current one. More... | |
virtual void | SetAutoRange (Bool_t autorange=kTRUE) |
virtual void | SetAxisNDC (const Double_t *x1, const Double_t *x2, const Double_t *y1, const Double_t *y2, const Double_t *z1, const Double_t *z2) |
Store axis coordinates in the NDC system. More... | |
virtual void | SetDefaultWindow () |
Set default viewing window. More... | |
virtual void | SetDproj (Double_t dproj) |
virtual void | SetDview (Double_t dview) |
virtual void | SetLatitude (Double_t latitude) |
virtual void | SetLongitude (Double_t longitude) |
virtual void | SetOutlineToCube () |
This is a function which creates default outline. More... | |
virtual void | SetParallel () |
Set the parallel option (default). More... | |
virtual void | SetPerspective () |
Set perspective option. More... | |
virtual void | SetPsi (Double_t psi) |
virtual void | SetRange (const Double_t *min, const Double_t *max) |
Set Range function. More... | |
virtual void | SetRange (Double_t x0, Double_t y0, Double_t z0, Double_t x1, Double_t y1, Double_t z1, Int_t flag=0) |
Set 3-D View range. More... | |
virtual void | SetSystem (Int_t system) |
virtual void | SetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep) |
Set view parameters. More... | |
virtual void | SetViewChanged (Bool_t flag=kTRUE) |
virtual void | SetWindow (Double_t u0, Double_t v0, Double_t du, Double_t dv) |
Set viewing window. More... | |
virtual void | ShowAxis () |
virtual void | Side () |
virtual void | SideView (TVirtualPad *pad=0) |
Set to side view. More... | |
virtual void | ToggleRulers (TVirtualPad *pad=0) |
Turn on /off 3D axis. More... | |
virtual void | ToggleZoom (TVirtualPad *pad=0) |
Turn on /off the interactive option to Zoom / Move / Change attributes of 3D axis correspond this view. More... | |
virtual void | Top () |
virtual void | TopView (TVirtualPad *pad=0) |
Set to top view. More... | |
virtual void | UnZoom () |
virtual void | UnzoomView (TVirtualPad *pad=0, Double_t unZoomFactor=1.25) |
unZOOM this view. More... | |
virtual void | WCtoNDC (const Double_t *pw, Double_t *pn) |
Transfer point from world to normalized coordinates. More... | |
virtual void | WCtoNDC (const Float_t *pw, Float_t *pn) |
Transfer point from world to normalized coordinates. More... | |
virtual void | Zoom () |
virtual void | ZoomIn () |
Zoom in. More... | |
virtual void | ZoomMove () |
virtual void | ZoomOut () |
Zoom out. More... | |
virtual void | ZoomView (TVirtualPad *pad=0, Double_t zoomFactor=1.25) |
ZOOM this view. More... | |
Public Member Functions inherited from TView | |
TView () | |
virtual | ~TView ()=default |
virtual void | AdjustScales (TVirtualPad *pad=0)=0 |
virtual void | AxisVertex (Double_t ang, Double_t *av, Int_t &ix1, Int_t &ix2, Int_t &iy1, Int_t &iy2, Int_t &iz1, Int_t &iz2)=0 |
virtual void | Centered ()=0 |
virtual void | Centered3DImages (TVirtualPad *pad=0)=0 |
virtual void | DefinePerspectiveView ()=0 |
virtual void | DefineViewDirection (const Double_t *s, const Double_t *c, Double_t cosphi, Double_t sinphi, Double_t costhe, Double_t sinthe, Double_t cospsi, Double_t sinpsi, Double_t *tnorm, Double_t *tback)=0 |
virtual void | DrawOutlineCube (TList *outline, Double_t *rmin, Double_t *rmax)=0 |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py)=0 |
Execute action corresponding to an event at (px,py). More... | |
virtual void | ExecuteRotateView (Int_t event, Int_t px, Int_t py)=0 |
virtual void | FindNormal (Double_t x, Double_t y, Double_t z, Double_t &zn)=0 |
virtual void | FindPhiSectors (Int_t iopt, Int_t &kphi, Double_t *aphi, Int_t &iphi1, Int_t &iphi2)=0 |
virtual void | FindScope (Double_t *scale, Double_t *center, Int_t &irep)=0 |
virtual void | FindThetaSectors (Int_t iopt, Double_t phi, Int_t &kth, Double_t *ath, Int_t &ith1, Int_t &ith2)=0 |
virtual void | Front ()=0 |
virtual void | FrontView (TVirtualPad *pad=0)=0 |
virtual Bool_t | GetAutoRange ()=0 |
virtual Int_t | GetDistancetoAxis (Int_t axis, Int_t px, Int_t py, Double_t &ratio)=0 |
virtual Double_t | GetDproj () const =0 |
virtual Double_t | GetDview () const =0 |
virtual Double_t | GetExtent () const =0 |
virtual Double_t | GetLatitude ()=0 |
virtual Double_t | GetLongitude ()=0 |
virtual TSeqCollection * | GetOutline ()=0 |
virtual Double_t | GetPsi ()=0 |
virtual void | GetRange (Double_t *min, Double_t *max)=0 |
virtual void | GetRange (Float_t *min, Float_t *max)=0 |
virtual Double_t * | GetRmax ()=0 |
virtual Double_t * | GetRmin ()=0 |
virtual Int_t | GetSystem ()=0 |
virtual Double_t * | GetTback ()=0 |
virtual Double_t * | GetTN ()=0 |
virtual Double_t * | GetTnorm ()=0 |
virtual void | GetWindow (Double_t &u0, Double_t &v0, Double_t &du, Double_t &dv) const =0 |
virtual Double_t | GetWindowHeight () const =0 |
virtual Double_t | GetWindowWidth () const =0 |
virtual Bool_t | IsClippedNDC (Double_t *p) const =0 |
virtual Bool_t | IsPerspective () const =0 |
virtual Bool_t | IsViewChanged () const =0 |
virtual void | MoveFocus (Double_t *center, Double_t dx, Double_t dy, Double_t dz, Int_t nsteps=10, Double_t dlong=0, Double_t dlat=0, Double_t dpsi=0)=0 |
virtual void | MoveViewCommand (Char_t chCode, Int_t count=1)=0 |
virtual void | MoveWindow (Char_t option)=0 |
virtual void | NDCtoWC (const Double_t *pn, Double_t *pw)=0 |
virtual void | NDCtoWC (const Float_t *pn, Float_t *pw)=0 |
virtual void | NormalWCtoNDC (const Double_t *pw, Double_t *pn)=0 |
virtual void | NormalWCtoNDC (const Float_t *pw, Float_t *pn)=0 |
virtual void | PadRange (Int_t rback)=0 |
virtual void | ResizePad ()=0 |
virtual void | RotateView (Double_t phi, Double_t theta, TVirtualPad *pad=0)=0 |
virtual void | SetAutoRange (Bool_t autorange=kTRUE)=0 |
virtual void | SetAxisNDC (const Double_t *x1, const Double_t *x2, const Double_t *y1, const Double_t *y2, const Double_t *z1, const Double_t *z2)=0 |
virtual void | SetDefaultWindow ()=0 |
virtual void | SetDproj (Double_t dproj)=0 |
virtual void | SetDview (Double_t dview)=0 |
virtual void | SetLatitude (Double_t latitude)=0 |
virtual void | SetLongitude (Double_t longitude)=0 |
virtual void | SetOutlineToCube ()=0 |
virtual void | SetParallel ()=0 |
virtual void | SetPerspective ()=0 |
virtual void | SetPsi (Double_t psi)=0 |
virtual void | SetRange (const Double_t *min, const Double_t *max)=0 |
virtual void | SetRange (Double_t x0, Double_t y0, Double_t z0, Double_t x1, Double_t y1, Double_t z1, Int_t flag=0)=0 |
virtual void | SetSystem (Int_t system)=0 |
virtual void | SetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep)=0 |
virtual void | SetViewChanged (Bool_t flag=kTRUE)=0 |
virtual void | SetWindow (Double_t u0, Double_t v0, Double_t du, Double_t dv)=0 |
virtual void | ShowAxis ()=0 |
virtual void | Side ()=0 |
virtual void | SideView (TVirtualPad *pad=0)=0 |
virtual void | ToggleRulers (TVirtualPad *pad=0)=0 |
virtual void | ToggleZoom (TVirtualPad *pad=0)=0 |
virtual void | Top ()=0 |
virtual void | TopView (TVirtualPad *pad=0)=0 |
virtual void | UnZoom ()=0 |
virtual void | UnzoomView (TVirtualPad *pad=0, Double_t unZoomFactor=1.25)=0 |
virtual void | WCtoNDC (const Double_t *pw, Double_t *pn)=0 |
virtual void | WCtoNDC (const Float_t *pw, Float_t *pn)=0 |
virtual void | Zoom ()=0 |
virtual void | ZoomIn ()=0 |
virtual void | ZoomMove ()=0 |
virtual void | ZoomOut ()=0 |
virtual void | ZoomView (TVirtualPad *pad=0, Double_t zoomFactor=1.25)=0 |
Public Member Functions inherited from TObject | |
TObject () | |
TObject constructor. More... | |
TObject (const TObject &object) | |
TObject copy ctor. More... | |
virtual | ~TObject () |
TObject destructor. More... | |
void | AbstractMethod (const char *method) const |
Use this method to implement an "abstract" method that you don't want to leave purely abstract. More... | |
virtual void | AppendPad (Option_t *option="") |
Append graphics object to current pad. More... | |
virtual void | Browse (TBrowser *b) |
Browse object. May be overridden for another default action. More... | |
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. More... | |
virtual const char * | ClassName () const |
Returns name of class to which the object belongs. More... | |
virtual void | Clear (Option_t *="") |
virtual TObject * | Clone (const char *newname="") const |
Make a clone of an object using the Streamer facility. More... | |
virtual Int_t | Compare (const TObject *obj) const |
Compare abstract method. More... | |
virtual void | Copy (TObject &object) const |
Copy this to obj. More... | |
virtual void | Delete (Option_t *option="") |
Delete this object. More... | |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
Computes distance from point (px,py) to the object. More... | |
virtual void | Draw (Option_t *option="") |
Default Draw method for all objects. More... | |
virtual void | DrawClass () const |
Draw class inheritance tree of the class to which this object belongs. More... | |
virtual TObject * | DrawClone (Option_t *option="") const |
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad) . More... | |
virtual void | Dump () const |
Dump contents of object on stdout. More... | |
virtual void | Error (const char *method, const char *msgfmt,...) const |
Issue error message. More... | |
virtual void | Execute (const char *method, const char *params, Int_t *error=0) |
Execute method on this object with the given parameter string, e.g. More... | |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
Execute method on this object with parameters stored in the TObjArray. More... | |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
Execute action corresponding to an event at (px,py). More... | |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
Issue fatal error message. More... | |
virtual TObject * | FindObject (const char *name) const |
Must be redefined in derived classes. More... | |
virtual TObject * | FindObject (const TObject *obj) const |
Must be redefined in derived classes. More... | |
virtual Option_t * | GetDrawOption () const |
Get option used by the graphics system to draw this object. More... | |
virtual const char * | GetIconName () const |
Returns mime type name of object. More... | |
virtual const char * | GetName () const |
Returns name of object. More... | |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
Returns string containing info about the object at position (px,py). More... | |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
Returns title of object. More... | |
virtual UInt_t | GetUniqueID () const |
Return the unique object id. More... | |
virtual Bool_t | HandleTimer (TTimer *timer) |
Execute action in response of a timer timing out. More... | |
virtual ULong_t | Hash () const |
Return hash value for this object. More... | |
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. More... | |
virtual void | Info (const char *method, const char *msgfmt,...) const |
Issue info message. More... | |
virtual Bool_t | InheritsFrom (const char *classname) const |
Returns kTRUE if object inherits from class "classname". More... | |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
Returns kTRUE if object inherits from TClass cl. More... | |
virtual void | Inspect () const |
Dump contents of this object in a graphics canvas. More... | |
void | InvertBit (UInt_t f) |
virtual Bool_t | IsEqual (const TObject *obj) const |
Default equal comparison (objects are equal if they have the same address in memory). More... | |
virtual Bool_t | IsFolder () const |
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More... | |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
The ls function lists the contents of a class on stdout. More... | |
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). More... | |
virtual Bool_t | Notify () |
This method must be overridden to handle object notification. More... | |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
Use this method to declare a method obsolete. More... | |
void | operator delete (void *ptr) |
Operator delete. More... | |
void | operator delete[] (void *ptr) |
Operator delete []. More... | |
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) |
TObject & | operator= (const TObject &rhs) |
TObject assignment operator. More... | |
virtual void | Paint (Option_t *option="") |
This method must be overridden if a class wants to paint itself. More... | |
virtual void | Pop () |
Pop on object drawn in a pad to the top of the display list. More... | |
virtual void | Print (Option_t *option="") const |
This method must be overridden when a class wants to print itself. More... | |
virtual Int_t | Read (const char *name) |
Read contents of object with specified name from the current directory. More... | |
virtual void | RecursiveRemove (TObject *obj) |
Recursively remove this object from a list. More... | |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
Save this object in the file specified by filename. More... | |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
Save a primitive as a C++ statement(s) on output stream "out". More... | |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
Set or unset the user status bits as specified in f. More... | |
virtual void | SetDrawOption (Option_t *option="") |
Set drawing option for object. More... | |
virtual void | SetUniqueID (UInt_t uid) |
Set the unique object id. More... | |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
Issue system error message. More... | |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
virtual void | UseCurrentStyle () |
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More... | |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
Issue warning message. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) |
Write this object to the current directory. More... | |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
Write this object to the current directory. More... | |
Public Member Functions inherited from TAttLine | |
TAttLine () | |
AttLine default constructor. More... | |
TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth) | |
AttLine normal constructor. More... | |
virtual | ~TAttLine () |
AttLine destructor. More... | |
void | Copy (TAttLine &attline) const |
Copy this line attributes to a new TAttLine. More... | |
Int_t | DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
Compute distance from point px,py to a line. More... | |
virtual Color_t | GetLineColor () const |
Return the line color. More... | |
virtual Style_t | GetLineStyle () const |
Return the line style. More... | |
virtual Width_t | GetLineWidth () const |
Return the line width. More... | |
virtual void | Modify () |
Change current line attributes if necessary. More... | |
virtual void | ResetAttLine (Option_t *option="") |
Reset this line attributes to default values. More... | |
virtual void | SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1) |
Save line attributes as C++ statement(s) on output stream out. More... | |
virtual void | SetLineAttributes () |
Invoke the DialogCanvas Line attributes. More... | |
virtual void | SetLineColor (Color_t lcolor) |
Set the line color. More... | |
virtual void | SetLineColorAlpha (Color_t lcolor, Float_t lalpha) |
Set a transparent line color. More... | |
virtual void | SetLineStyle (Style_t lstyle) |
Set the line style. More... | |
virtual void | SetLineWidth (Width_t lwidth) |
Set the line width. More... | |
Static Public Member Functions | |
static void | AdjustPad (TVirtualPad *pad=0) |
Force the current pad to be updated. More... | |
Static Public Member Functions inherited from TView | |
static TView * | CreateView (Int_t system=1, const Double_t *rmin=0, const Double_t *rmax=0) |
Create a concrete default 3-d view via the plug-in manager. More... | |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
Return destructor only flag. More... | |
static Bool_t | GetObjectStat () |
Get status of object stat flag. More... | |
static void | SetDtorOnly (void *obj) |
Set destructor only flag. More... | |
static void | SetObjectStat (Bool_t stat) |
Turn on/off tracking of objects in the TObjectTable. More... | |
Protected Member Functions | |
TView3D (const TView3D &) | |
Set to TRUE after ExecuteRotateView. More... | |
TView3D & | operator= (const TView3D &) |
Assignment operator. More... | |
void | ResetView (Double_t longitude, Double_t latitude, Double_t psi, Int_t &irep) |
Set view direction (in spherical coordinates). More... | |
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). More... | |
void | MakeZombie () |
Protected Attributes | |
Bool_t | fAutoRange |
Bool_t | fChanged |
Bool_t | fDefaultOutline |
Double_t | fDproj |
Double_t | fDview |
Double_t | fLatitude |
Double_t | fLongitude |
TSeqCollection * | fOutline |
Double_t | fPsi |
Double_t | fRmax [3] |
Double_t | fRmin [3] |
Int_t | fSystem |
Double_t | fTB [16] |
Double_t | fTback [16] |
Double_t | fTN [16] |
Double_t | fTnorm [16] |
Double_t | fUpix |
Double_t | fUVcoord [4] |
Double_t | fVpix |
Double_t | fX1 [3] |
Double_t | fX2 [3] |
Double_t | fY1 [3] |
Double_t | fY2 [3] |
Double_t | fZ1 [3] |
Double_t | fZ2 [3] |
Protected Attributes inherited from TAttLine | |
Color_t | fLineColor |
Line color. More... | |
Style_t | fLineStyle |
Line style. More... | |
Width_t | fLineWidth |
Line width. More... | |
#include <TView3D.h>
|
protected |
TView3D::TView3D | ( | ) |
Default constructor.
Definition at line 108 of file TView3D.cxx.
TView3D constructor.
Creates a 3-D view in the current pad rmin[3], rmax[3] are the limits of the object depending on the selected coordinate system
Before drawing a 3-D object in a pad, a 3-D view must be created. Note that a view is automatically created when drawing legos or surfaces.
The coordinate system is selected via system:
Definition at line 152 of file TView3D.cxx.
|
virtual |
TView3D default destructor.
Definition at line 275 of file TView3D.cxx.
|
static |
Force the current pad to be updated.
Definition at line 1538 of file TView3D.cxx.
|
virtual |
Adjust all sides of view in respect of the biggest one.
Implements TView.
Definition at line 1616 of file TView3D.cxx.
|
virtual |
Define axis vertices.
Input:
ANG - angle between X and Y axis (not used anymore)
Output:
Implements TView.
Definition at line 297 of file TView3D.cxx.
|
virtual |
Implements TView.
Definition at line 1929 of file TView3D.cxx.
|
virtual |
Move view into the center of the scene.
Implements TView.
Definition at line 1634 of file TView3D.cxx.
|
virtual |
Define perspective view.
Compute transformation matrix from world coordinates to normalized coordinates (-1 to +1)
Input :
Output :
compute tr+rot to get COV in origin, view vector parallel to -Z axis, up vector parallel to Y.
T12 = Tper*R*Trl
Implements TView.
Definition at line 399 of file TView3D.cxx.
|
virtual |
Define view direction (in spherical coordinates)
Compute transformation matrix from world coordinates to normalized coordinates (-1 to +1)
Input:
Implements TView.
Definition at line 513 of file TView3D.cxx.
Draw the outline of a cube while rotating a 3-d object in the pad.
Implements TView.
Definition at line 619 of file TView3D.cxx.
Execute action corresponding to one event.
Implements TView.
Definition at line 627 of file TView3D.cxx.
Execute action corresponding to one event.
This member function is called when a object is clicked with the locator
If Left button clicked in the object area, while the button is kept down the cube representing the surrounding frame for the corresponding new latitude and longitude position is drawn.
Implements TView.
Definition at line 641 of file TView3D.cxx.
Find Z component of NORMAL in normalized coordinates.
Input:
Output:
Implements TView.
Definition at line 785 of file TView3D.cxx.
|
virtual |
Find critical PHI sectors.
Input:
Output:
Implements TView.
Definition at line 805 of file TView3D.cxx.
Find centre of a MIN-MAX scope and scale factors.
Output:
Implements TView.
Definition at line 932 of file TView3D.cxx.
|
virtual |
Find critical THETA sectors for given PHI sector.
Input:
Output:
Implements TView.
Definition at line 871 of file TView3D.cxx.
|
virtual |
Implements TView.
Definition at line 1930 of file TView3D.cxx.
|
virtual |
|
inlinevirtual |
Return distance to axis from point px,py.
Algorithm:
Implements TView.
Definition at line 970 of file TView3D.cxx.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Check if point is clipped in perspective view.
Implements TView.
Definition at line 1055 of file TView3D.cxx.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Move focus to a different box position and extent in nsteps.
Perform rotation with dlat,dlong,dpsi at each step.
Implements TView.
Definition at line 1682 of file TView3D.cxx.
Implements TView.
Definition at line 1738 of file TView3D.cxx.
Move view window :
Implements TView.
Definition at line 1786 of file TView3D.cxx.
Transfer point from normalized to world coordinates.
Input:
Implements TView.
Definition at line 1084 of file TView3D.cxx.
Transfer point from normalized to world coordinates.
Input:
Implements TView.
Definition at line 1069 of file TView3D.cxx.
Transfer vector of NORMAL from word to normalized coordinates.
Input:
Implements TView.
Definition at line 1127 of file TView3D.cxx.
Transfer vector of NORMAL from word to normalized coordinates.
Input:
Implements TView.
Definition at line 1099 of file TView3D.cxx.
Assignment operator.
Definition at line 234 of file TView3D.cxx.
Set the correct window size for lego and surface plots.
Set the correct window size for lego and surface plots. And draw the background if necessary.
Input parameters:
Implements TView.
Definition at line 1157 of file TView3D.cxx.
|
protected |
Set view direction (in spherical coordinates).
Input
Output:
Errors: error in min-max scope
Definition at line 1436 of file TView3D.cxx.
|
virtual |
Recompute window for perspective view.
Implements TView.
Definition at line 1404 of file TView3D.cxx.
|
virtual |
API to rotate view and adjust the pad provided it the current one.
Implements TView.
Definition at line 1554 of file TView3D.cxx.
|
virtual |
Store axis coordinates in the NDC system.
Implements TView.
Definition at line 1236 of file TView3D.cxx.
|
virtual |
|
virtual |
This is a function which creates default outline.
Implements TView.
Definition at line 1291 of file TView3D.cxx.
|
virtual |
|
virtual |
|
virtual |
Set 3-D View range.
Input:
Implements TView.
Definition at line 1349 of file TView3D.cxx.
|
virtual |
Implements TView.
Definition at line 1931 of file TView3D.cxx.
|
virtual |
Implements TView.
Definition at line 1932 of file TView3D.cxx.
|
virtual |
|
virtual |
|
virtual |
Turn on /off the interactive option to Zoom / Move / Change attributes of 3D axis correspond this view.
Implements TView.
Definition at line 1608 of file TView3D.cxx.
|
virtual |
Implements TView.
Definition at line 1933 of file TView3D.cxx.
|
virtual |
|
virtual |
Implements TView.
Definition at line 1936 of file TView3D.cxx.
|
virtual |
Transfer point from world to normalized coordinates.
Input:
Implements TView.
Definition at line 1510 of file TView3D.cxx.
Transfer point from world to normalized coordinates.
Input:
Implements TView.
Definition at line 1478 of file TView3D.cxx.
|
virtual |
Implements TView.
Definition at line 1935 of file TView3D.cxx.
|
virtual |
|
virtual |
Implements TView.
Definition at line 1934 of file TView3D.cxx.
|
virtual |
|
virtual |
|
protected |