#include <TViewerX3D.h>
Inheritance diagram for TViewerX3D:
Definition at line 38 of file TViewerX3D.h.
enum TViewerX3D::EPass [private] |
Definition at line 63 of file TViewerX3D.h.
enum TViewerX3D::EPass [private] |
Definition at line 63 of file TViewerX3D.h.
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] |
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().
Definition at line 650 of file TViewerX3D.cxx.
References kTRUE.
Referenced by TX3DContainer::HandleButton().
Definition at line 520 of file TViewerX3D.cxx.
References x3d_exec_command().
Referenced by G__G__X3D_220_0_8().
Definition at line 570 of file TViewerX3D.cxx.
References x3d_get_position().
Referenced by G__G__X3D_220_0_9().
void TViewerX3D::Iconify | ( | ) | [inline] |
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] |
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] |
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().
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 void TViewerX3D::CloseComposite | ( | ) | [inline, virtual] |
virtual void TViewerX3D::AddCompositeOp | ( | UInt_t | ) | [inline, virtual] |
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] |
void TViewerX3D::Iconify | ( | ) | [inline] |
Definition at line 84 of file TViewerX3D.h.
void TViewerX3D::Show | ( | ) | [inline] |
void TViewerX3D::Close | ( | ) |
void TViewerX3D::Update | ( | ) |
void TViewerX3D::PaintPolyMarker | ( | const TBuffer3D & | buffer | ) | const |
virtual Bool_t TViewerX3D::PreferLocalFrame | ( | ) | const [inline, virtual] |
virtual void TViewerX3D::BeginScene | ( | ) | [virtual] |
Implements TVirtualViewer3D.
virtual Bool_t TViewerX3D::BuildingScene | ( | ) | const [inline, virtual] |
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 void TViewerX3D::CloseComposite | ( | ) | [inline, virtual] |
virtual void TViewerX3D::AddCompositeOp | ( | UInt_t | ) | [inline, virtual] |
TX3DContainer [friend] |
TX3DFrame* TViewerX3D::fMainFrame [private] |
Definition at line 44 of file TViewerX3D.h.
Referenced by CreateViewer(), ProcessFrameMessage(), Show(), TViewerX3D(), and ~TViewerX3D().
TString TViewerX3D::fOption [private] |
TString TViewerX3D::fTitle [private] |
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] |
TGMenuBar* TViewerX3D::fMenuBar [private] |
TGPopupMenu* TViewerX3D::fFileMenu [private] |
TGPopupMenu* TViewerX3D::fHelpMenu [private] |
TGLayoutHints* TViewerX3D::fMenuBarLayout [private] |
TGLayoutHints* TViewerX3D::fMenuBarItemLayout [private] |
TGLayoutHints* TViewerX3D::fMenuBarHelpLayout [private] |
TGLayoutHints* TViewerX3D::fCanvasLayout [private] |
UInt_t TViewerX3D::fWidth [private] |
UInt_t TViewerX3D::fHeight [private] |
Int_t TViewerX3D::fXPos [private] |
Int_t TViewerX3D::fYPos [private] |
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.