Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXGLViewer.h>
Inheritance diagram for FX::FXGLViewer:
Public Types | |
enum | { PARALLEL, PERSPECTIVE } |
Public Member Functions | |
virtual long | onDefault (FXObject *, FXSelector, void *) |
FXGLViewer (FXComposite *p, FXGLVisual *vis, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
FXGLViewer (FXComposite *p, FXGLVisual *vis, FXGLViewer *sharegroup, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
virtual void | create () |
virtual void | detach () |
virtual void | layout () |
FXdouble | worldPix () const |
FXdouble | modelPix () const |
FXGLObject ** | lasso (FXint x1, FXint y1, FXint x2, FXint y2) |
virtual FXGLObject ** | select (FXint x, FXint y, FXint w, FXint h) |
virtual FXGLObject * | pick (FXint x, FXint y) |
FXbool | setBounds (const FXRangef &box) |
FXbool | fitToBounds (const FXRangef &box) |
void | getViewport (FXViewport &v) const |
void | eyeToScreen (FXint &sx, FXint &sy, FXVec3f e) |
FXVec3f | screenToEye (FXint sx, FXint sy, FXfloat eyez=0.0) |
FXVec3f | screenToTarget (FXint sx, FXint sy) |
FXVec3f | worldToEye (FXVec3f w) |
FXfloat | worldToEyeZ (FXVec3f w) |
FXVec3f | eyeToWorld (FXVec3f e) |
FXVec3f | worldVector (FXint fx, FXint fy, FXint tx, FXint ty) |
void | setMaterial (const FXMaterial &mtl) |
void | getMaterial (FXMaterial &mtl) const |
void | setFieldOfView (FXdouble fv) |
FXdouble | getFieldOfView () const |
void | setZoom (FXdouble zm) |
FXdouble | getZoom () const |
void | setDistance (FXdouble ed) |
FXdouble | getDistance () const |
void | setScale (FXVec3f s) |
const FXVec3f & | getScale () const |
void | setOrientation (FXQuatf rot) |
const FXQuatf & | getOrientation () const |
void | setCenter (FXVec3f cntr) |
const FXVec3f & | getCenter () const |
void | translate (FXVec3f vec) |
FXbool | getBoreVector (FXint sx, FXint sy, FXVec3f &point, FXVec3f &dir) |
FXVec3f | getEyeVector () const |
FXVec3f | getEyePosition () const |
void | setHelpText (const FXString &text) |
FXString | getHelpText () const |
void | setTipText (const FXString &text) |
FXString | getTipText () const |
const FXMat4f & | getTransform () const |
const FXMat4f & | getInvTransform () const |
void | setScene (FXGLObject *sc) |
FXGLObject * | getScene () const |
void | setSelection (FXGLObject *sel) |
FXGLObject * | getSelection () const |
void | setProjection (FXuint proj) |
FXuint | getProjection () const |
void | setBackgroundColor (const FXVec4f &clr, FXbool bottom=MAYBE) |
const FXVec4f & | getBackgroundColor (FXbool bottom=FALSE) const |
void | setAmbientColor (const FXVec4f &clr) |
const FXVec4f & | getAmbientColor () const |
FXbool | readPixels (FXColor *&buffer, FXint x, FXint y, FXint w, FXint h) |
FXbool | readFeedback (FXfloat *&buffer, FXint &used, FXint &size, FXint x, FXint y, FXint w, FXint h) |
void | setZSortFunc (FXZSortFunc func) |
FXZSortFunc | getZSortFunc () const |
void | setMaxHits (FXint maxh) |
FXint | getMaxHits () const |
FXbool | doesTurbo () const |
FXbool | getTurboMode () const |
void | setTurboMode (FXbool turbo=TRUE) |
void | getLight (FXLight &lite) const |
void | setLight (const FXLight &lite) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXGLViewer () |
Static Public Attributes | |
FXDragType | objectType |
const FXchar | objectTypeName [] |
See also:
|
|
|
Construct GL viewer widget.
|
|
Construct GL viewer widget sharing display list with another GL viewer.
|
|
Destructor.
|
|
Called for unhandled messages.
Reimplemented from FX::FXObject. |
|
Create all of the server-side resources for this window.
Reimplemented from FX::FXGLCanvas. |
|
Detach server-side resources.
Reimplemented from FX::FXGLCanvas. |
|
Perform layout.
Reimplemented from FX::FXWindow. |
|
Return size of pixel in world coordinates.
|
|
Return size of pixel in model coordinates.
|
|
Return a NULL-terminated list of all objects in the given rectangle, or NULL.
|
|
Return a NULL-terminated list of all objects in the given rectangle, or NULL.
|
|
Perform a pick operation, returning the object at the given x,y position, or NULL.
|
|
Change the model bounding box; this adjusts the viewer.
|
|
Fit viewer to the given bounding box.
|
|
Return the viewer's viewport.
|
|
Translate eye-coordinate to screen coordinate.
|
|
Translate screen coordinate to eye coordinate at the given depth.
|
|
Translate screen coordinate to eye coordinate at the target point depth.
|
|
Translate world coordinate to eye coordinate.
|
|
Translate world coordinate to eye coordinate depth.
|
|
Translate eye coordinate to eye coordinate.
|
|
Calculate world coordinate vector from screen movement.
|
|
Change default object material setting.
|
|
Return default object material setting.
|
|
Change camera field of view angle (in degrees).
|
|
Return camera field of view angle.
|
|
Change camera zoom factor.
|
|
Return camera zoom factor.
|
|
Change target point distance.
|
|
Return target point distance.
|
|
Change unequal model scaling factors.
|
|
Return current scaling factors.
|
|
Change camera orientation from quaternion.
|
|
Return current camera orientation quaternion.
|
|
Change object center (tranlation).
|
|
Return object center.
|
|
Translate object center.
|
|
Return boresight vector.
|
|
Return eyesight vector.
|
|
Return eye position.
|
|
Change help text.
|
|
Return help text.
|
|
Change tip text.
|
|
Return tip text.
|
|
Return the current transformation matrix.
|
|
Return the inverse of the current transformation matrix.
|
|
Change the scene, i.e. the object being displayed.
|
|
Return the current scene object.
|
|
Change selection.
|
|
Return selection.
|
|
Change the projection mode, PERSPECTIVE or PARALLEL.
|
|
Return the projection mode.
|
|
Change top or bottom or both background colors.
|
|
Return top or bottom window background color.
|
|
Change global ambient light color.
|
|
Return global ambient light color.
|
|
Read the pixels off the screen as array of FXColor; this array can be directly passed to fxsaveBMP and other image output routines.
|
|
Read the feedback buffer containing the current scene, returning used and allocated size.
|
|
Change hidden-surface feedback buffer sorting algorithm. This can be used for move/draw printed output depth sorting. |
|
Return hidden surface sorting function.
|
|
Change the maximum hits, i.e. the maximum size of the pick buffer. When set to less than or equal to zero, picking is essentially turned off. |
|
Return maximum pickbuffer size.
|
|
When drawing a GL object, if doesTurbo() is true, the object may choose to perform a reduced complexity drawing as the user is interactively manipulating; another update will be done later when the full complexity drawing can be performed again.
|
|
Return turbo mode setting.
|
|
Set turbo mode.
|
|
Return light source settings.
|
|
Change light source settings.
|
|
Save viewer to a stream.
Reimplemented from FX::FXGLCanvas. |
|
Load viewer from a stream.
Reimplemented from FX::FXGLCanvas. |
Copyright © 1997-2004 Jeroen van der Zijp |