Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Txq3dFrame Class Reference

A Txq3dFrame is a Qt Widget used to create a window for three dimensional scientific plotting using OpenGL. More...

#include <Txq3dFrame.h>

Inheritance diagram for Txq3dFrame::

TxqFrame QFrame List of all members.

Public Slots

virtual void setGeometry (int x, int y, int w, int h)
 slot to set the geometry. More...

virtual void setGeometry (const QRect &r)
 Declare the base class setGeometry method in order to prevent compiler warnings. More...

void crossHair (int number)
 slot to select the cross hair option. More...

virtual void writeStatus (double x, double y, double z)
 slot to write the cross hair status. More...

void doOrtho (int number)
 slot to set the projection to Orthographic. More...

void doPerspect (int number)
 slot to set the projection to Perspective. More...

void doDataScale (int number)
 slot to set the scale to data. More...

void doAxesScale (int number)
 slot to set the scale to axes. More...


Signals

virtual void setOptionsSignal ()
 signal emitted whenever the setOptions is invoked for the options dialog. More...


Public Methods

 Txq3dFrame (QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The Txq3dFrame constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods. More...

virtual ~Txq3dFrame ()
 The Txq3dFrame destructor. More...

void addCanvas (Txq3dCanvas *newCanvas)
 Add a canvas to the frame. More...

Txq3dCanvas* getCanvas ()
 Get the canvas pointer @retun the canvas pointer. More...

void writeImage (QString fileName, QString ext)
 Write the pixmap as an image file to a filename given an extension type. More...

virtual void plot ()
 Public method to update the GL canvas. More...


Protected Slots

void applyOptions ()
 slot to get the plot attributes after the Apply or Ok buton has been pressed on the options Dialog. More...

void setOptions ()
 slot to set the options. More...

void doRotation ()
 slot to do the rotation by opening the rotation dialog. More...

void applyRotation ()
 slot to apply the rotation angles. More...

void cancelRotation ()
 slot to cancel the rotation and set to saved values. More...

void doWireFrame (int number)
 slot to do the wire frame rotation. More...

bool copy ()
 copy the selection to the window manager clipboard. More...

void saveAs ()
 slot to save the pixmap. More...

void dumpData ()
 slot to dump the contents of the frame to an ASCII file. More...

void print ()
 slot to print the canvas. More...

void printPreview ()
 slot to preview the print canvas. More...

virtual void zoom (int id)
 slot to zoom the canvas. More...

void invert (int id)
 slot to invert the black and white colors on the canvas. More...


Protected Methods

void createTxq3dCanvas ()
 Create a canvas. More...

virtual void addFileMenuItems ()
 Add to the base File menu. More...

void addEditMenuItems ()
 Add to the base Edit menu. More...

virtual void addWidgets ()
 Adds all the widgets to the layout. More...

void createScaleMenu ()
 Create the scale menu. More...

void createProjectionMenu ()
 Create the projection menu. More...

void resizeEvent (QResizeEvent *event)
 Overload the resizeEvent in order to set the canvas size. More...

void createPlotAttribs ()
 Create the plot attributes and set with default items. More...

void createRotationDlog ()
 Create the rotation dialog. More...

void addViewMenuItems ()
 Add to the base View menu. More...

void addRotationMenuItem ()
 Add the Rotation dialog to the View menu. More...

void addProjectionMenuItem ()
 Add Projection to the View menu. More...

void addScaleMenuItem ()
 Add Scale to the View menu. More...

void addWireFrameMenuItem ()
 Add Wire Frame to the View menu. More...

void addCrossHairMenuItem ()
 Add the cross hair item. More...

void addOptionsMenuItem ()
 Add the Options menu item to View. More...

void addZoomMenuItem ()
 Add the Zoom menu item to View. More...

void addInvertBWMenuItem ()
 Add the Invert B/W colors menu item to View. More...

void createOptionsMenu ()
 Create the Options dialog. More...

void createStatusBar ()
 Create a status bar below the canvas. More...


Protected Attributes

int zoomId
 The zoom number. More...

bool zooming
 The zoom boolean flag set to true if zooming. More...

Txq3dPlotAttribsplot3dAttribs
 The plot attributes. More...

Txq3dOptionsDlogoptionsDlog
 The options dialog. More...

int invertId
 The b/w invert id number. More...

TxqRotateDlogrotateDlog
 The rotation dialog. More...

QPopupMenu* projection
 The projection popup menu. More...

QPopupMenu* scale
 The scale popup menu. More...


Private Attributes

Txq3dCanvas* canvas
 The Txq3dCanvas. More...

bool wireId
 The wire frame id. More...

int orthoId
 The id number for the Ortho projection. More...

int perspectId
 The id number for the Perspective projection. More...

int sDataId
 The id number for the Data scale. More...

int sAxesId
 The id number for the Axis scale. More...

int xRot
 The X saved axis rotation angle. More...

int yRot
 The Y saved axis rotation angle. More...

int zRot
 The Z saved axis rotation angle. More...


Detailed Description

A Txq3dFrame is a Qt Widget used to create a window for three dimensional scientific plotting using OpenGL.

Copyright 1998 - 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq3dFrame.h,v 1.12 2002/01/24 00:06:25 kgl Exp

Definition at line 51 of file Txq3dFrame.h.


Constructor & Destructor Documentation

Txq3dFrame::Txq3dFrame ( QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The Txq3dFrame constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods.

Parameters:
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags.

Txq3dFrame::~Txq3dFrame ( ) [virtual]
 

The Txq3dFrame destructor.


Member Function Documentation

void Txq3dFrame::addCanvas ( Txq3dCanvas * newCanvas )
 

Add a canvas to the frame.

Parameters:
newCanvas   the canvas pointer to add.

void Txq3dFrame::addCrossHairMenuItem ( ) [protected]
 

Add the cross hair item.

void Txq3dFrame::addEditMenuItems ( ) [protected, virtual]
 

Add to the base Edit menu.

Reimplemented from TxqFrame.

void Txq3dFrame::addFileMenuItems ( ) [protected, virtual]
 

Add to the base File menu.

Reimplemented from TxqFrame.

void Txq3dFrame::addInvertBWMenuItem ( ) [protected]
 

Add the Invert B/W colors menu item to View.

void Txq3dFrame::addOptionsMenuItem ( ) [protected]
 

Add the Options menu item to View.

void Txq3dFrame::addProjectionMenuItem ( ) [protected]
 

Add Projection to the View menu.

void Txq3dFrame::addRotationMenuItem ( ) [protected]
 

Add the Rotation dialog to the View menu.

void Txq3dFrame::addScaleMenuItem ( ) [protected]
 

Add Scale to the View menu.

void Txq3dFrame::addViewMenuItems ( ) [protected, virtual]
 

Add to the base View menu.

Reimplemented from TxqFrame.

void Txq3dFrame::addWidgets ( ) [protected, virtual]
 

Adds all the widgets to the layout.

This method is to be used in polish to add any created widgets to the layout manager.

Reimplemented from TxqFrame.

void Txq3dFrame::addWireFrameMenuItem ( ) [protected]
 

Add Wire Frame to the View menu.

void Txq3dFrame::addZoomMenuItem ( ) [protected]
 

Add the Zoom menu item to View.

void Txq3dFrame::applyOptions ( ) [protected, slot]
 

slot to get the plot attributes after the Apply or Ok buton has been pressed on the options Dialog.

void Txq3dFrame::applyRotation ( ) [protected, slot]
 

slot to apply the rotation angles.

void Txq3dFrame::cancelRotation ( ) [protected, slot]
 

slot to cancel the rotation and set to saved values.

bool Txq3dFrame::copy ( ) [protected, virtual, slot]
 

copy the selection to the window manager clipboard.

Reimplemented from TxqFrame.

void Txq3dFrame::createOptionsMenu ( ) [protected]
 

Create the Options dialog.

void Txq3dFrame::createPlotAttribs ( ) [protected]
 

Create the plot attributes and set with default items.

void Txq3dFrame::createProjectionMenu ( ) [protected]
 

Create the projection menu.

void Txq3dFrame::createRotationDlog ( ) [protected]
 

Create the rotation dialog.

void Txq3dFrame::createScaleMenu ( ) [protected]
 

Create the scale menu.

void Txq3dFrame::createStatusBar ( ) [protected]
 

Create a status bar below the canvas.

Reimplemented from TxqFrame.

void Txq3dFrame::createTxq3dCanvas ( ) [protected]
 

Create a canvas.

void Txq3dFrame::crossHair ( int number ) [slot]
 

slot to select the cross hair option.

Parameters:
number   the View id number

void Txq3dFrame::doAxesScale ( int number ) [slot]
 

slot to set the scale to axes.

Parameters:
number   the View menu id number

void Txq3dFrame::doDataScale ( int number ) [slot]
 

slot to set the scale to data.

Parameters:
number   the View menu id number

void Txq3dFrame::doOrtho ( int number ) [slot]
 

slot to set the projection to Orthographic.

Parameters:
number   the View menu id number

void Txq3dFrame::doPerspect ( int number ) [slot]
 

slot to set the projection to Perspective.

Parameters:
number   the View menu id number

void Txq3dFrame::doRotation ( ) [protected, slot]
 

slot to do the rotation by opening the rotation dialog.

void Txq3dFrame::doWireFrame ( int number ) [protected, slot]
 

slot to do the wire frame rotation.

Parameters:
number   the View menu id number

void Txq3dFrame::dumpData ( ) [protected, virtual, slot]
 

slot to dump the contents of the frame to an ASCII file.

Reimplemented from TxqFrame.

Txq3dCanvas * Txq3dFrame::getCanvas ( ) [inline]
 

Get the canvas pointer @retun the canvas pointer.

Definition at line 84 of file Txq3dFrame.h.

void Txq3dFrame::invert ( int id ) [protected, slot]
 

slot to invert the black and white colors on the canvas.

Parameters:
number   the View menu id number

void Txq3dFrame::plot ( ) [inline, virtual]
 

Public method to update the GL canvas.

Definition at line 96 of file Txq3dFrame.h.

void Txq3dFrame::print ( ) [protected, virtual, slot]
 

slot to print the canvas.

Reimplemented from TxqFrame.

void Txq3dFrame::printPreview ( ) [protected, virtual, slot]
 

slot to preview the print canvas.

Reimplemented from TxqFrame.

void Txq3dFrame::resizeEvent ( QResizeEvent * event ) [protected]
 

Overload the resizeEvent in order to set the canvas size.

Parameters:
event   the QRiseEvent pointer

void Txq3dFrame::saveAs ( ) [protected, virtual, slot]
 

slot to save the pixmap.

Reimplemented from TxqFrame.

void Txq3dFrame::setGeometry ( const QRect & r ) [inline, virtual, slot]
 

Declare the base class setGeometry method in order to prevent compiler warnings.

Parameters:
r   the QRect input value holding the size parameters.

Definition at line 254 of file Txq3dFrame.h.

void Txq3dFrame::setGeometry ( int x,
int y,
int w,
int h ) [virtual, slot]
 

slot to set the geometry.

Parameters:
x   the x location of the frame
y   the y location of the frame
w   the width of the frame
h   the height of the frame

void Txq3dFrame::setOptions ( ) [protected, slot]
 

slot to set the options.

void Txq3dFrame::setOptionsSignal ( ) [virtual, signal]
 

signal emitted whenever the setOptions is invoked for the options dialog.

void Txq3dFrame::writeImage ( QString fileName,
QString ext )
 

Write the pixmap as an image file to a filename given an extension type.

Parameters:
fileName   the filename to write the pixmap
ext   the extension type, ie PPM for ppm format image

void Txq3dFrame::writeStatus ( double x,
double y,
double z ) [virtual, slot]
 

slot to write the cross hair status.

Parameters:
x   the value at X
y   the value at Y
Z   the value at Z

void Txq3dFrame::zoom ( int id ) [protected, virtual, slot]
 

slot to zoom the canvas.

Parameters:
number   the View menu id number


Member Data Documentation

Txq3dCanvas * Txq3dFrame::canvas [private]
 

The Txq3dCanvas.

Definition at line 392 of file Txq3dFrame.h.

int Txq3dFrame::invertId [protected]
 

The b/w invert id number.

Definition at line 228 of file Txq3dFrame.h.

Txq3dOptionsDlog * Txq3dFrame::optionsDlog [protected]
 

The options dialog.

Definition at line 223 of file Txq3dFrame.h.

int Txq3dFrame::orthoId [private]
 

The id number for the Ortho projection.

Definition at line 402 of file Txq3dFrame.h.

int Txq3dFrame::perspectId [private]
 

The id number for the Perspective projection.

Definition at line 407 of file Txq3dFrame.h.

Txq3dPlotAttribs * Txq3dFrame::plot3dAttribs [protected]
 

The plot attributes.

Definition at line 218 of file Txq3dFrame.h.

QPopupMenu * Txq3dFrame::projection [protected]
 

The projection popup menu.

Definition at line 380 of file Txq3dFrame.h.

TxqRotateDlog * Txq3dFrame::rotateDlog [protected]
 

The rotation dialog.

Definition at line 375 of file Txq3dFrame.h.

int Txq3dFrame::sAxesId [private]
 

The id number for the Axis scale.

Definition at line 417 of file Txq3dFrame.h.

int Txq3dFrame::sDataId [private]
 

The id number for the Data scale.

Definition at line 412 of file Txq3dFrame.h.

QPopupMenu * Txq3dFrame::scale [protected]
 

The scale popup menu.

Definition at line 385 of file Txq3dFrame.h.

bool Txq3dFrame::wireId [private]
 

The wire frame id.

Definition at line 397 of file Txq3dFrame.h.

int Txq3dFrame::xRot [private]
 

The X saved axis rotation angle.

Definition at line 422 of file Txq3dFrame.h.

int Txq3dFrame::yRot [private]
 

The Y saved axis rotation angle.

Definition at line 427 of file Txq3dFrame.h.

int Txq3dFrame::zRot [private]
 

The Z saved axis rotation angle.

Definition at line 432 of file Txq3dFrame.h.

int Txq3dFrame::zoomId [protected]
 

The zoom number.

Definition at line 207 of file Txq3dFrame.h.

bool Txq3dFrame::zooming [protected]
 

The zoom boolean flag set to true if zooming.

Definition at line 213 of file Txq3dFrame.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.