TViewerX3D Class Reference

#include <TViewerX3D.h>

Inheritance diagram for TViewerX3D:

TVirtualViewer3D TVirtualViewer3D TObject TObject TObject TObject List of all members.

Public Member Functions

 TViewerX3D (TVirtualPad *pad)
 TViewerX3D (TVirtualPad *pad, Option_t *option, const char *title="X3D Viewer", UInt_t width=800, UInt_t height=600)
 TViewerX3D (TVirtualPad *pad, Option_t *option, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height)
virtual ~TViewerX3D ()
Int_t ExecCommand (Int_t px, Int_t py, char command)
void GetPosition (Float_t &longitude, Float_t &latitude, Float_t &psi)
void Iconify ()
void Show ()
void Close ()
void Update ()
void PaintPolyMarker (const TBuffer3D &buffer) const
virtual Bool_t PreferLocalFrame () const
virtual void BeginScene ()
virtual Bool_t BuildingScene () const
virtual void EndScene ()
virtual Int_t AddObject (const TBuffer3D &buffer, Bool_t *addChildren=0)
virtual Int_t AddObject (UInt_t placedID, const TBuffer3D &buffer, Bool_t *addChildren=0)
virtual Bool_t OpenComposite (const TBuffer3D &, Bool_t *=0)
virtual void CloseComposite ()
virtual void AddCompositeOp (UInt_t)
Bool_t ProcessFrameMessage (Long_t msg, Long_t parm1, Long_t parm2)
 TViewerX3D (TVirtualPad *pad)
 TViewerX3D (TVirtualPad *pad, Option_t *option, const char *title="X3D Viewer", UInt_t width=800, UInt_t height=600)
 TViewerX3D (TVirtualPad *pad, Option_t *option, const char *title, Int_t x, Int_t y, UInt_t width, UInt_t height)
virtual ~TViewerX3D ()
Int_t ExecCommand (Int_t px, Int_t py, char command)
void GetPosition (Float_t &longitude, Float_t &latitude, Float_t &psi)
void Iconify ()
void Show ()
void Close ()
void Update ()
void PaintPolyMarker (const TBuffer3D &buffer) const
virtual Bool_t PreferLocalFrame () const
virtual void BeginScene ()
virtual Bool_t BuildingScene () const
virtual void EndScene ()
virtual Int_t AddObject (const TBuffer3D &buffer, Bool_t *addChildren=0)
virtual Int_t AddObject (UInt_t placedID, const TBuffer3D &buffer, Bool_t *addChildren=0)
virtual Bool_t OpenComposite (const TBuffer3D &, Bool_t *=0)
virtual void CloseComposite ()
virtual void AddCompositeOp (UInt_t)
Bool_t ProcessFrameMessage (Long_t msg, Long_t parm1, Long_t parm2)

Private Types

enum  EPass
enum  EPass

Private Member Functions

void CreateViewer (const char *name)
void InitX3DWindow ()
void DeleteX3DWindow ()
Bool_t HandleContainerButton (Event_t *ev)
void CreateViewer (const char *name)
void InitX3DWindow ()
void DeleteX3DWindow ()
Bool_t HandleContainerButton (Event_t *ev)

Private Attributes

TX3DFramefMainFrame
TString fOption
TString fTitle
Window_t fX3DWin
TGCanvasfCanvas
TX3DContainerfContainer
TGMenuBarfMenuBar
TGPopupMenufFileMenu
TGPopupMenufHelpMenu
TGLayoutHintsfMenuBarLayout
TGLayoutHintsfMenuBarItemLayout
TGLayoutHintsfMenuBarHelpLayout
TGLayoutHintsfCanvasLayout
UInt_t fWidth
UInt_t fHeight
Int_t fXPos
Int_t fYPos
TVirtualPadfPad
Bool_t fBuildingScene
EPass fPass
TX3DFramefMainFrame
TGCanvasfCanvas
TX3DContainerfContainer
TGMenuBarfMenuBar
TGPopupMenufFileMenu
TGPopupMenufHelpMenu
TGLayoutHintsfMenuBarLayout
TGLayoutHintsfMenuBarItemLayout
TGLayoutHintsfMenuBarHelpLayout
TGLayoutHintsfCanvasLayout
TVirtualPadfPad

Static Private Attributes

static Bool_t fgCreated

Friends

class TX3DContainer

Detailed Description

Definition at line 38 of file TViewerX3D.h.


Member Enumeration Documentation

enum TViewerX3D::EPass [private]

Definition at line 63 of file TViewerX3D.h.

enum TViewerX3D::EPass [private]

Definition at line 63 of file TViewerX3D.h.


Constructor & Destructor Documentation

TViewerX3D::TViewerX3D ( TVirtualPad pad  ) 

Referenced by G__G__X3D_220_0_37(), G__G__X3D_220_0_5(), G__G__X3D_220_0_6(), and G__G__X3D_220_0_7().

TViewerX3D::TViewerX3D ( TVirtualPad pad,
Option_t option,
const char *  title = "X3D Viewer",
UInt_t  width = 800,
UInt_t  height = 600 
)

Definition at line 162 of file TViewerX3D.cxx.

References fHeight, fMainFrame, fOption, fTitle, fWidth, fX3DWin, fXPos, fYPos, gClient, and TGClient::GetRoot().

TViewerX3D::TViewerX3D ( TVirtualPad pad,
Option_t option,
const char *  title,
Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
)

Definition at line 183 of file TViewerX3D.cxx.

References fHeight, fMainFrame, fOption, fTitle, fWidth, fX3DWin, fXPos, fYPos, gClient, and TGClient::GetRoot().

TViewerX3D::~TViewerX3D (  )  [virtual]

Definition at line 204 of file TViewerX3D.cxx.

References DeleteX3DWindow(), fCanvas, fCanvasLayout, fContainer, fFileMenu, fgCreated, fHelpMenu, fMainFrame, fMenuBar, fMenuBarHelpLayout, fMenuBarItemLayout, fMenuBarLayout, fPad, and kFALSE.

TViewerX3D::TViewerX3D ( TVirtualPad pad  ) 

TViewerX3D::TViewerX3D ( TVirtualPad pad,
Option_t option,
const char *  title = "X3D Viewer",
UInt_t  width = 800,
UInt_t  height = 600 
)

TViewerX3D::TViewerX3D ( TVirtualPad pad,
Option_t option,
const char *  title,
Int_t  x,
Int_t  y,
UInt_t  width,
UInt_t  height 
)

virtual TViewerX3D::~TViewerX3D (  )  [virtual]


Member Function Documentation

void TViewerX3D::CreateViewer ( const char *  name  )  [private]

Definition at line 238 of file TViewerX3D.cxx.

References TGPopupMenu::AddEntry(), TGCompositeFrame::AddFrame(), TGMenuBar::AddPopup(), TGPopupMenu::AddSeparator(), TGPopupMenu::Associate(), TGPopupMenu::DisableEntry(), fCanvas, fCanvasLayout, fContainer, fFileMenu, fgCreated, fHeight, fHelpMenu, fMainFrame, fMenuBar, fMenuBarHelpLayout, fMenuBarItemLayout, fMenuBarLayout, fWidth, fX3DWin, fXPos, fYPos, TGObject::GetClient(), TGCompositeFrame::GetDefaultSize(), TGFrame::GetHeight(), TGClient::GetRoot(), TGCanvas::GetViewPort(), TGFrame::GetWidth(), InitX3DWindow(), kDoubleBorder, kFileCloseViewer, kFileNewViewer, kFilePrint, kFileSave, kFileSaveAs, kHelpAbout, kHelpOnViewer, kHorizontalFrame, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsRight, kLHintsTop, kMWMDecorAll, kMWMFuncAll, kMWMInputModeless, kSunkenFrame, kTRUE, TGCompositeFrame::MapSubwindows(), TGFrame::MoveResize(), TGFrame::Resize(), TGMainFrame::SetClassHints(), TGCanvas::SetContainer(), TGMainFrame::SetIconName(), TGMainFrame::SetMWMHints(), TGMainFrame::SetWindowName(), TGMainFrame::SetWMPosition(), and TX3DContainer.

Referenced by EndScene().

void TViewerX3D::InitX3DWindow (  )  [private]

Definition at line 314 of file TViewerX3D.cxx.

References TString::Data(), TObject::Error(), fCanvas, fOption, fPad, fX3DWin, TGObject::GetId(), TView::GetLatitude(), TView::GetLongitude(), TView::GetPsi(), TVirtualPad::GetView(), TGCanvas::GetViewPort(), gVirtualX, kPI, TMath::Pi(), x3d_main(), and x3d_set_display().

Referenced by CreateViewer().

void TViewerX3D::DeleteX3DWindow (  )  [private]

Definition at line 577 of file TViewerX3D.cxx.

References x3d_terminate().

Referenced by ~TViewerX3D().

Bool_t TViewerX3D::HandleContainerButton ( Event_t ev  )  [private]

Definition at line 650 of file TViewerX3D.cxx.

References kTRUE.

Referenced by TX3DContainer::HandleButton().

Int_t TViewerX3D::ExecCommand ( Int_t  px,
Int_t  py,
char  command 
)

Definition at line 520 of file TViewerX3D.cxx.

References x3d_exec_command().

Referenced by G__G__X3D_220_0_8().

void TViewerX3D::GetPosition ( Float_t longitude,
Float_t latitude,
Float_t psi 
)

Definition at line 570 of file TViewerX3D.cxx.

References x3d_get_position().

Referenced by G__G__X3D_220_0_9().

void TViewerX3D::Iconify (  )  [inline]

Definition at line 84 of file TViewerX3D.h.

Referenced by G__G__X3D_220_0_10().

void TViewerX3D::Show (  )  [inline]

Definition at line 85 of file TViewerX3D.h.

References fMainFrame, and TGFrame::MapRaised().

Referenced by EndScene(), and G__G__X3D_220_0_11().

void TViewerX3D::Close (  ) 

Definition at line 228 of file TViewerX3D.cxx.

References fBuildingScene, fPad, and TVirtualPad::ReleaseViewer3D().

Referenced by TX3DFrame::CloseWindow(), EndScene(), and G__G__X3D_220_0_12().

void TViewerX3D::Update (  ) 

Definition at line 586 of file TViewerX3D.cxx.

References x3d_update().

Referenced by G__G__X3D_220_0_13().

void TViewerX3D::PaintPolyMarker ( const TBuffer3D buffer  )  const

Definition at line 462 of file TViewerX3D.cxx.

References buffer, fgCreated, FillX3DBuffer(), fPass, gSize3D, i, j, k, kDraw, kSize, n, _x3d_data_::numPoints, _x3d_data_::numPolys, _x3d_data_::numSegs, _x3d_data_::points, _x3d_data_::polys, and _x3d_data_::segs.

Referenced by AddObject(), and G__G__X3D_220_0_14().

virtual Bool_t TViewerX3D::PreferLocalFrame (  )  const [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 92 of file TViewerX3D.h.

References kFALSE.

void TViewerX3D::BeginScene (  )  [virtual]

Implements TVirtualViewer3D.

Definition at line 338 of file TViewerX3D.cxx.

References fBuildingScene, fgCreated, fPass, gSize3D, kSize, and kTRUE.

virtual Bool_t TViewerX3D::BuildingScene (  )  const [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 94 of file TViewerX3D.h.

References fBuildingScene.

void TViewerX3D::EndScene (  )  [virtual]

Implements TVirtualViewer3D.

Definition at line 356 of file TViewerX3D.cxx.

References AllocateX3DBuffer(), Close(), CreateViewer(), TObject::Error(), fBuildingScene, fgCreated, fPad, fPass, fTitle, gClient, TGClient::GetRoot(), gSize3D, kDraw, kFALSE, kMBIconExclamation, kMBOk, kSize, TVirtualPad::Paint(), retval, and Show().

Int_t TViewerX3D::AddObject ( const TBuffer3D buffer,
Bool_t addChildren = 0 
) [virtual]

Implements TVirtualViewer3D.

Definition at line 392 of file TViewerX3D.cxx.

References buffer, fgCreated, FillX3DBuffer(), fPass, gSize3D, i, TBuffer3D::kCore, kDraw, kFALSE, TBuffer3DTypes::kMarker, TBuffer3D::kNone, TBuffer3D::kRaw, TBuffer3D::kRawSizes, kSize, kTRUE, _x3d_data_::numPoints, _x3d_data_::numPolys, _x3d_data_::numSegs, PaintPolyMarker(), _x3d_data_::points, _x3d_data_::polys, and _x3d_data_::segs.

Referenced by AddObject().

Int_t TViewerX3D::AddObject ( UInt_t  placedID,
const TBuffer3D buffer,
Bool_t addChildren = 0 
) [virtual]

Implements TVirtualViewer3D.

Definition at line 454 of file TViewerX3D.cxx.

References AddObject(), and buffer.

virtual Bool_t TViewerX3D::OpenComposite ( const TBuffer3D ,
Bool_t = 0 
) [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 101 of file TViewerX3D.h.

References kTRUE.

virtual void TViewerX3D::CloseComposite (  )  [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 102 of file TViewerX3D.h.

virtual void TViewerX3D::AddCompositeOp ( UInt_t   )  [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 103 of file TViewerX3D.h.

Bool_t TViewerX3D::ProcessFrameMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
)

Definition at line 595 of file TViewerX3D.cxx.

References fMainFrame, fPad, GET_MSG(), GET_SUBMSG(), TROOT::GetVersion(), gHelpAbout, gHelpX3DViewer, gROOT, kC_COMMAND, kCM_BUTTON, kCM_MENU, kFileCloseViewer, kFileNewViewer, kFilePrint, kFileSave, kFileSaveAs, kHelpAbout, kHelpOnViewer, kTRUE, TRootHelpDialog::Popup(), TGMainFrame::SendCloseMessage(), TRootHelpDialog::SetText(), snprintf, and str.

Referenced by G__G__X3D_220_0_24(), and TX3DFrame::ProcessMessage().

void TViewerX3D::CreateViewer ( const char *  name  )  [private]

void TViewerX3D::InitX3DWindow (  )  [private]

void TViewerX3D::DeleteX3DWindow (  )  [private]

Bool_t TViewerX3D::HandleContainerButton ( Event_t ev  )  [private]

Int_t TViewerX3D::ExecCommand ( Int_t  px,
Int_t  py,
char  command 
)

void TViewerX3D::GetPosition ( Float_t longitude,
Float_t latitude,
Float_t psi 
)

void TViewerX3D::Iconify (  )  [inline]

Definition at line 84 of file TViewerX3D.h.

void TViewerX3D::Show (  )  [inline]

Definition at line 85 of file TViewerX3D.h.

References fMainFrame, and TGFrame::MapRaised().

void TViewerX3D::Close (  ) 

void TViewerX3D::Update (  ) 

void TViewerX3D::PaintPolyMarker ( const TBuffer3D buffer  )  const

virtual Bool_t TViewerX3D::PreferLocalFrame (  )  const [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 92 of file TViewerX3D.h.

References kFALSE.

virtual void TViewerX3D::BeginScene (  )  [virtual]

Implements TVirtualViewer3D.

virtual Bool_t TViewerX3D::BuildingScene (  )  const [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 94 of file TViewerX3D.h.

References fBuildingScene.

virtual void TViewerX3D::EndScene (  )  [virtual]

Implements TVirtualViewer3D.

virtual Int_t TViewerX3D::AddObject ( const TBuffer3D buffer,
Bool_t addChildren = 0 
) [virtual]

Implements TVirtualViewer3D.

virtual Int_t TViewerX3D::AddObject ( UInt_t  placedID,
const TBuffer3D buffer,
Bool_t addChildren = 0 
) [virtual]

Implements TVirtualViewer3D.

virtual Bool_t TViewerX3D::OpenComposite ( const TBuffer3D ,
Bool_t = 0 
) [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 101 of file TViewerX3D.h.

References kTRUE.

virtual void TViewerX3D::CloseComposite (  )  [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 102 of file TViewerX3D.h.

virtual void TViewerX3D::AddCompositeOp ( UInt_t   )  [inline, virtual]

Implements TVirtualViewer3D.

Definition at line 103 of file TViewerX3D.h.

Bool_t TViewerX3D::ProcessFrameMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
)


Friends And Related Function Documentation

TX3DContainer [friend]

Definition at line 41 of file TViewerX3D.h.

Referenced by CreateViewer().


Member Data Documentation

TX3DFrame* TViewerX3D::fMainFrame [private]

Definition at line 44 of file TViewerX3D.h.

Referenced by CreateViewer(), ProcessFrameMessage(), Show(), TViewerX3D(), and ~TViewerX3D().

TString TViewerX3D::fOption [private]

Definition at line 45 of file TViewerX3D.h.

Referenced by InitX3DWindow(), and TViewerX3D().

TString TViewerX3D::fTitle [private]

Definition at line 46 of file TViewerX3D.h.

Referenced by EndScene(), and TViewerX3D().

Window_t TViewerX3D::fX3DWin [private]

Definition at line 47 of file TViewerX3D.h.

Referenced by CreateViewer(), InitX3DWindow(), and TViewerX3D().

TGCanvas* TViewerX3D::fCanvas [private]

Definition at line 48 of file TViewerX3D.h.

Referenced by CreateViewer(), InitX3DWindow(), and ~TViewerX3D().

TX3DContainer* TViewerX3D::fContainer [private]

Definition at line 49 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGMenuBar* TViewerX3D::fMenuBar [private]

Definition at line 50 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGPopupMenu* TViewerX3D::fFileMenu [private]

Definition at line 51 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGPopupMenu* TViewerX3D::fHelpMenu [private]

Definition at line 52 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGLayoutHints* TViewerX3D::fMenuBarLayout [private]

Definition at line 53 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGLayoutHints* TViewerX3D::fMenuBarItemLayout [private]

Definition at line 54 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGLayoutHints* TViewerX3D::fMenuBarHelpLayout [private]

Definition at line 55 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

TGLayoutHints* TViewerX3D::fCanvasLayout [private]

Definition at line 56 of file TViewerX3D.h.

Referenced by CreateViewer(), and ~TViewerX3D().

UInt_t TViewerX3D::fWidth [private]

Definition at line 57 of file TViewerX3D.h.

Referenced by CreateViewer(), and TViewerX3D().

UInt_t TViewerX3D::fHeight [private]

Definition at line 58 of file TViewerX3D.h.

Referenced by CreateViewer(), and TViewerX3D().

Int_t TViewerX3D::fXPos [private]

Definition at line 59 of file TViewerX3D.h.

Referenced by CreateViewer(), and TViewerX3D().

Int_t TViewerX3D::fYPos [private]

Definition at line 60 of file TViewerX3D.h.

Referenced by CreateViewer(), and TViewerX3D().

TVirtualPad* TViewerX3D::fPad [private]

Definition at line 61 of file TViewerX3D.h.

Referenced by Close(), EndScene(), InitX3DWindow(), ProcessFrameMessage(), and ~TViewerX3D().

Bool_t TViewerX3D::fBuildingScene [private]

Definition at line 62 of file TViewerX3D.h.

Referenced by BeginScene(), BuildingScene(), Close(), and EndScene().

EPass TViewerX3D::fPass [private]

Definition at line 64 of file TViewerX3D.h.

Referenced by AddObject(), BeginScene(), EndScene(), and PaintPolyMarker().

static Bool_t TViewerX3D::fgCreated [static, private]

Definition at line 72 of file TViewerX3D.h.

Referenced by AddObject(), BeginScene(), CreateViewer(), EndScene(), PaintPolyMarker(), and ~TViewerX3D().

TX3DFrame* TViewerX3D::fMainFrame [private]

Definition at line 44 of file TViewerX3D.h.

TGCanvas* TViewerX3D::fCanvas [private]

Definition at line 48 of file TViewerX3D.h.

TX3DContainer* TViewerX3D::fContainer [private]

Definition at line 49 of file TViewerX3D.h.

TGMenuBar* TViewerX3D::fMenuBar [private]

Definition at line 50 of file TViewerX3D.h.

TGPopupMenu* TViewerX3D::fFileMenu [private]

Definition at line 51 of file TViewerX3D.h.

TGPopupMenu* TViewerX3D::fHelpMenu [private]

Definition at line 52 of file TViewerX3D.h.

TGLayoutHints* TViewerX3D::fMenuBarLayout [private]

Definition at line 53 of file TViewerX3D.h.

TGLayoutHints* TViewerX3D::fMenuBarItemLayout [private]

Definition at line 54 of file TViewerX3D.h.

TGLayoutHints* TViewerX3D::fMenuBarHelpLayout [private]

Definition at line 55 of file TViewerX3D.h.

TGLayoutHints* TViewerX3D::fCanvasLayout [private]

Definition at line 56 of file TViewerX3D.h.

TVirtualPad* TViewerX3D::fPad [private]

Definition at line 61 of file TViewerX3D.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:48:49 2011 for ROOT_528-00b_version by  doxygen 1.5.1