| #include "TQtGLViewerWidget.h" |
TQtGLViewerWidget
class description - source file - inheritance tree (.pdf)
private:
TQtGLViewerWidget(const TQtGLViewerWidget&)
void operator=(const TQtGLViewerWidget&)
protected:
virtual QDomElement domElement(const QString& name, QDomDocument& document) const
virtual void draw()
void drawFooter()
void drawGLLights()
virtual void drawSelectedObject()
virtual void drawWithNames()
virtual void init()
virtual void postDraw()
virtual void postSelection(const QPoint& point)
public:
TQtGLViewerWidget(QWidget* parent = 0, const char* name = "0", const QGLWidget* shareWidget = 0, int f = 0)
TQtGLViewerWidget(TPadOpenGLView* view, const char* title = "OpenGL Viewer", QWidget* parent = 0, int f = 0)
TQtGLViewerWidget(TVirtualPad* pad, const char* title = "OpenGL Viewer", QWidget* parent = 0, int f = 0)
virtual ~TQtGLViewerWidget()
virtual void actionGLView(char option, int count = 1)
virtual void addGLList(unsigned int list, TQtGLViewerWidget::EObjectType type = kSolid)
virtual void clearGLList()
virtual void clearGLList(TQtGLViewerWidget::EObjectType type)
const QFont& footerFont() const
const QString& footerText() const
Float_t FrameAxisScale() const
virtual QString helpString() const
virtual void initFromDOMElement(const QDomElement& element)
Bool_t IsSlicingSelected() const
Bool_t IsSolidSelectable() const
Bool_t IsWiredSelectable() const
virtual void keyPressEvent(QKeyEvent* e)
virtual void removeGLList(unsigned int list)
float RotationAxisAngle(float& x, float& y, float& z) const
virtual void SetBackgroundColor(Color_t color)
virtual void SetBackgroundColor(const TColor* color)
virtual void setDrawLight(bool on = true, int light = 0, float scale = 1.0)
virtual void setFooter(QString& text)
virtual void setFooter(QFont& font)
virtual void SetFrameAxisFactor(Float_t axisScale = 5.0)
virtual void setPadSynchronize(bool on = true)
virtual void setRotationAxisAngle(const float x, const float y, const float z, const float a)
virtual void SetSceneLayout()
virtual void SetSceneLayout(Float_t* minBound, Float_t* maxBound, Color_t color = kBlack)
virtual void setSlicing(Bool_t on = kTRUE)
virtual void SetSolidSelectable(Bool_t on = kTRUE)
virtual void SetWiredSelectable(Bool_t on = kTRUE)
protected:
TPadOpenGLView* fGLView Abstract view pointer.
TVirtualPad* fPad Altranative the current TPad pointer.
Int_t fClipPlane Slicing plane flag;
Bool_t fPadSynch GL Widget view should follow TPad rotation
list<unsigned int> fGLWiredLists The array of the glList to render the wired objects;
list<unsigned int> fGLSolidLists The array of the glList to render the solid objects;
list<unsigned int> fGLSelectingLists The array of the glList to select some objects;
list<unsigned int> fGLSelectedLists The array of the selected objects glList ;
list<TGLAttributiteList*> fGLAttributesLists The array of the glList to set the GL attributes
float fX
float fY
float fZ
float fAngle
TQtGLViewerWidget::GLLIGHT fGLLights[8]
QString fFooterText
QFont fFooterFont
TGLSolidAttribute* fSolidAttributes Define the GL attributes to render the solid objects
TGLWiredAttribute* fWiredAttributes Define the GL attributes to render the wired objects
TGLSelectingAttribute* fSelectingAttributes Define the GL attributes to select the objects.
TGLSelectingAttribute* fSelectedAttributes Define the GL attributes to render the selected objects.
TGLSlicePlaneAttribute* fSlicingAttributes Define the GL attributes to render "slicing" plane.
QString fStateFileName
Bool_t fSolidSelectable flag whether to objects from fGLSolidLists are selectable
Bool_t fWiredSelectable flag whether to objects from fGLWiredLists are selectable
Float_t fFrameAxisFactor the scale of the frame axis ( <0 - no axis at all)
public:
static const TQtGLViewerWidget::EObjectType kWired
static const TQtGLViewerWidget::EObjectType kSolid
static const TQtGLViewerWidget::EObjectType kSelecting
static const TQtGLViewerWidget::EObjectType kSelected
TQtGLViewerWidget
TQtGLViewerWidget specifies window system independent openGL
interface.
This the ROOT GL veiwer implmentation based on
l i b Q G L V i e w e r
Copyright c Gilles Debunne 2002-03
Gilles.Debunne@imag.fr
http://www-imagis.imag.fr/Membres/Gilles.Debunne/CODE/QGLViewer/
Inline Functions
void ~TQtGLViewerWidget()
TQtGLViewerWidget TQtGLViewerWidget(const TQtGLViewerWidget&)
void operator=(const TQtGLViewerWidget&)
void drawFooter()
void drawGLLights()
void init()
QDomElement domElement(const QString& name, QDomDocument& document) const
void draw()
void drawWithNames()
void drawSelectedObject()
void postDraw()
void postSelection(const QPoint& point)
TQtGLViewerWidget TQtGLViewerWidget(QWidget* parent = 0, const char* name = "0", const QGLWidget* shareWidget = 0, int f = 0)
TQtGLViewerWidget TQtGLViewerWidget(TPadOpenGLView* view, const char* title = "OpenGL Viewer", QWidget* parent = 0, int f = 0)
TQtGLViewerWidget TQtGLViewerWidget(TVirtualPad* pad, const char* title = "OpenGL Viewer", QWidget* parent = 0, int f = 0)
QString helpString() const
void keyPressEvent(QKeyEvent* e)
const QString& footerText() const
const QFont& footerFont() const
Bool_t IsWiredSelectable() const
Bool_t IsSolidSelectable() const
Bool_t IsSlicingSelected() const
Float_t FrameAxisScale() const
void actionGLView(char option, int count = 1)
void setDrawLight(bool on = true, int light = 0, float scale = 1.0)
void addGLList(unsigned int list, TQtGLViewerWidget::EObjectType type = kSolid)
void clearGLList()
void clearGLList(TQtGLViewerWidget::EObjectType type)
void initFromDOMElement(const QDomElement& element)
void removeGLList(unsigned int list)
void setFooter(QString& text)
void setFooter(QFont& font)
void setPadSynchronize(bool on = true)
void setRotationAxisAngle(const float x, const float y, const float z, const float a)
float RotationAxisAngle(float& x, float& y, float& z) const
void setSlicing(Bool_t on = kTRUE)
void SetBackgroundColor(Color_t color)
void SetBackgroundColor(const TColor* color)
void SetFrameAxisFactor(Float_t axisScale = 5.0)
void SetSceneLayout()
void SetSceneLayout(Float_t* minBound, Float_t* maxBound, Color_t color = kBlack)
void SetWiredSelectable(Bool_t on = kTRUE)
void SetSolidSelectable(Bool_t on = kTRUE)
Qt/ROOT page -
ROOT page - Class index - Class Hierarchy - Top of the page
- Qt docs
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to QtROOT support, or contact the developers with any questions or problems regarding ROOT.