Canvas, an area drawn by another object
Inheritance:
Public Methods
-
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)
- Construct GL viewer widget
-
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)
- Construct GL viewer widget sharing display list with another GL viewer
-
virtual void create()
- Create all of the server-side resources for this window
-
virtual void detach()
- Detach server-side resources
-
FXdouble worldPix() const
- Return size of pixel in world coordinates
-
FXdouble modelPix() const
- Return size of pixel in model coordinates
-
FXGLObject** lasso(FXint x1, FXint y1, FXint x2, FXint y2)
- Return a NULL-terminated list of all objects in the given rectangle, or NULL
-
virtual FXGLObject** select(FXint x, FXint y, FXint w, FXint h)
- Return a NULL-terminated list of all objects in the given rectangle, or NULL
-
virtual FXGLObject* pick(FXint x, FXint y)
- Perform a pick operation, returning the object at the given x,y position, or NULL
-
FXbool setBounds(const FXRange& box)
- Change the model bounding box; this adjusts the viewer
-
FXbool fitToBounds(const FXRange& box)
- Fit viewer to the given bounding box
-
void getViewport(FXViewport& v) const
- Return the viewer's viewport
-
void eyeToScreen(FXint& sx, FXint& sy, FXVec e)
- Translate eye-coordinate to screen coordinate
-
FXVec screenToEye(FXint sx, FXint sy, FXfloat eyez=0.0)
- Translate screen coordinate to eye coordinate at the given depth
-
FXVec screenToTarget(FXint sx, FXint sy)
- Translate screen coordinate to eye coordinate at the target point depth
-
FXVec worldToEye(FXVec w)
- Translate world coordinate to eye coordinate
-
FXfloat worldToEyeZ(FXVec w)
- Translate world coordinate to eye coordinate depth
-
FXVec eyeToWorld(FXVec e)
- Translate eye coordinate to eye coordinate
-
FXVec worldVector(FXint fx, FXint fy, FXint tx, FXint ty)
- Calculate world coordinate vector from screen movement
-
void setMaterial(const FXMaterial &mtl)
- Change default object material setting
-
void getMaterial(FXMaterial &mtl) const
- Return default object material setting
-
void setFieldOfView(FXdouble fv)
- Change camera field of view angle (in degrees)
-
FXdouble getFieldOfView() const
- Return camera field of view angle
-
void setZoom(FXdouble zm)
- Change camera zoom factor
-
FXdouble getZoom() const
- Return camera zoom factor
-
void setDistance(FXdouble ed)
- Change target point distance
-
FXdouble getDistance() const
- Return target point distance
-
void setScale(FXVec s)
- Change unequal model scaling factors
-
FXVec getScale() const
- Return current scaling factors
-
void setOrientation(FXQuat rot)
- Change camera orientation from quaternion
-
FXQuat getOrientation() const
- Return current camera orientation quaternion
-
void setCenter(FXVec cntr)
- Change object center (tranlation)
-
const FXVec& getCenter() const
- Return object center
-
void translate(FXVec vec)
- Translate object center
-
FXbool getBoreVector(FXint sx, FXint sy, FXVec& point, FXVec& dir)
- Return boresight vector
-
FXVec getEyeVector() const
- Return eyesight vector
-
FXVec getEyePosition() const
- Return eye position
-
void setHelpText(const FXString& text)
- Change help text
-
FXString getHelpText() const
- Return help text
-
void setTipText(const FXString& text)
- Change tip text
-
FXString getTipText() const
- Return tip text
-
void setOffset(FXdouble offs)
- Change line offset
-
FXdouble getOffset() const
- Return line offset
-
const FXHMat& getTransform() const
- Return the current transformation matrix
-
const FXHMat& getInvTransform() const
- Return the inverse of the current transformation matrix
-
void setScene(FXGLObject* sc)
- Change the scene, ie.
-
FXGLObject* getScene() const
- Return the current scene object
-
void setSelection(FXGLObject* sel)
- Change selection
-
FXGLObject* getSelection() const
- Return selection
-
void setProjection(FXuint proj)
- Change the projection mode, PERSPECTIVE or PARALLEL
-
FXuint getProjection() const
- Return the projection mode
-
void setViewLock(FXbool lock=TRUE)
- Lock the viewer, ie.
-
FXbool getViewLock() const
- Return viewer lock status
-
void setBackgroundColor(const FXHVec& clr)
- Change window background color
-
FXHVec getBackgroundColor() const
- Return window background color
-
void setAmbientColor(const FXHVec& clr)
- Change global ambient light color
-
FXHVec getAmbientColor() const
- Return global ambient light color
-
FXbool readPixels(FXuchar*& buffer, FXint x, FXint y, FXint w, FXint h)
- Read the pixels off the screen as R,G,B tuples
-
FXbool readFeedback(FXfloat*& buffer, FXint& used, FXint& size, FXint x, FXint y, FXint w, FXint h)
- Read the feedback buffer containing the current scene, returning used and allocated size
-
void setZSortFunc(FXZSortFunc func)
- Change hidden-surface feedback buffer sorting algorithm.
-
FXZSortFunc getZSortFunc() const
- Return hidden surface sorting function
-
void setMaxHits(FXint maxh)
- Change the maximum hits, ie.
-
FXint getMaxHits() const
- Return maximum pickbuffer size
-
FXbool doesTurbo() const
- 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
-
FXbool getTurboMode() const
- Return turbo mode setting
-
void setTurboMode(FXbool turbo=TRUE)
- Set turbo mode
-
void getLight(FXLight& lite) const
- Return light source settings
-
void setLight(const FXLight& lite)
- Change light source settings
-
virtual void save(FXStream& store) const
- Save viewer to a stream
-
virtual void load(FXStream& store)
- Load viewer from a stream
-
virtual ~FXGLViewer()
- Destructor
Public Methods
-
FXbool isShared() const
-
virtual void destroy()
-
virtual FXbool makeCurrent()
-
virtual FXbool makeNonCurrent()
-
virtual FXbool isCurrent() const
-
void* getContext() const
-
virtual void swapBuffers()
Public Methods
-
virtual FXbool canFocus() const
Public Methods
-
FXWindow* getParent() const
-
FXWindow* getOwner() const
-
FXWindow* getShell() const
-
FXWindow* getRoot() const
-
FXWindow* getNext() const
-
FXWindow* getPrev() const
-
FXWindow* getFirst() const
-
FXWindow* getLast() const
-
FXWindow* getFocus() const
-
void setKey(FXuint k)
-
FXuint getKey() const
-
void setTarget(FXObject* t)
-
FXObject* getTarget() const
-
void setSelector(FXSelector sel)
-
FXSelector getSelector() const
-
FXint getX() const
-
FXint getY() const
-
virtual FXint getDefaultWidth()
-
virtual FXint getDefaultHeight()
-
virtual FXint getWidthForHeight(FXint givenheight)
-
virtual FXint getHeightForWidth(FXint givenwidth)
-
void setX(FXint x)
-
void setY(FXint y)
-
void setWidth(FXint w)
-
void setHeight(FXint h)
-
void setLayoutHints(FXuint lout)
-
FXuint getLayoutHints() const
-
FXAccelTable* getAccelTable() const
-
void setAccelTable(FXAccelTable* acceltable)
-
void addHotKey(FXHotKey code)
-
void remHotKey(FXHotKey code)
-
FXbool isShell() const
-
FXbool isChildOf(const FXWindow* window) const
-
FXbool containsChild(const FXWindow* child) const
-
FXWindow* getChildAt(FXint x, FXint y) const
-
FXint numChildren() const
-
FXint indexOfChild(const FXWindow* window) const
-
FXWindow* childAtIndex(FXint index) const
-
static FXWindow* commonAncestor(FXWindow* a, FXWindow* b)
-
void setDefaultCursor(FXCursor* cur)
-
FXCursor* getDefaultCursor() const
-
void setDragCursor(FXCursor* cur)
-
FXCursor* getDragCursor() const
-
FXint getCursorPosition(FXint& x, FXint& y, FXuint& buttons) const
-
FXint setCursorPosition(FXint x, FXint y)
-
FXbool isEnabled() const
-
FXbool isActive() const
-
FXbool hasFocus() const
-
virtual void setFocus()
-
virtual void killFocus()
-
virtual void setDefault(FXbool enable=TRUE)
-
FXbool isDefault() const
-
void setInitial(FXbool enable=TRUE)
-
FXbool isInitial() const
-
virtual void enable()
-
virtual void disable()
-
virtual void raise()
-
virtual void lower()
-
virtual void move(FXint x, FXint y)
-
virtual void resize(FXint w, FXint h)
-
virtual void position(FXint x, FXint y, FXint w, FXint h)
-
virtual void recalc()
-
void forceRefresh()
-
virtual void reparent(FXWindow* newparent)
-
void scroll(FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy)
-
void update(FXint x, FXint y, FXint w, FXint h)
-
void update()
-
void repaint(FXint x, FXint y, FXint w, FXint h)
-
void repaint()
-
void grab()
-
void ungrab()
-
FXbool grabbed() const
-
void grabKeyboard()
-
void ungrabKeyboard()
-
FXbool grabbedKeyboard() const
-
virtual void show()
-
virtual void hide()
-
FXbool shown() const
-
virtual FXbool isComposite() const
-
FXbool underCursor() const
-
FXbool hasSelection() const
-
FXbool acquireSelection(const FXDragType* types, FXuint numtypes)
-
FXbool releaseSelection()
-
FXbool hasClipboard() const
-
FXbool acquireClipboard(const FXDragType* types, FXuint numtypes)
-
FXbool releaseClipboard()
-
void dropEnable()
-
void dropDisable()
-
FXbool isDropEnabled() const
-
FXbool isDragging() const
-
FXbool beginDrag(const FXDragType* types, FXuint numtypes)
-
FXbool handleDrag(FXint x, FXint y, FXDragAction action=DRAG_COPY)
-
FXbool endDrag(FXbool drop=TRUE)
-
FXbool isDropTarget() const
-
void setDragRectangle(FXint x, FXint y, FXint w, FXint h, FXbool wantupdates=TRUE)
-
void clearDragRectangle()
-
void acceptDrop(FXDragAction action=DRAG_ACCEPT)
-
FXDragAction didAccept() const
-
FXbool inquireDNDTypes(FXDNDOrigin origin, FXDragType*& types, FXuint& numtypes)
-
FXbool offeredDNDType(FXDNDOrigin origin, FXDragType type)
-
FXDragAction inquireDNDAction() const
-
FXbool setDNDData(FXDNDOrigin origin, FXDragType type, FXuchar* data, FXuint size)
-
FXbool getDNDData(FXDNDOrigin origin, FXDragType type, FXuchar*& data, FXuint& size)
-
virtual FXbool contains(FXint parentx, FXint parenty) const
-
void translateCoordinatesFrom(FXint& tox, FXint& toy, const FXWindow* fromwindow, FXint fromx, FXint fromy) const
-
void translateCoordinatesTo(FXint& tox, FXint& toy, const FXWindow* towindow, FXint fromx, FXint fromy) const
-
virtual void setBackColor(FXColor clr)
-
FXColor getBackColor() const
-
void linkBefore(FXWindow* sibling)
-
void linkAfter(FXWindow* sibling)
Public Methods
-
FXint getWidth() const
-
FXint getHeight() const
-
FXVisual* getVisual() const
-
void setVisual(FXVisual* vis)
Inherited from FXId:
Public Methods
-
FXApp* getApp() const
-
FXID id() const
-
void setUserData(void* ptr)
-
void* getUserData() const
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
Canvas, an area drawn by another object
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)
- Construct GL viewer widget
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)
- Construct GL viewer widget sharing display list with another GL viewer
virtual void create()
- Create all of the server-side resources for this window
virtual void detach()
- Detach server-side resources
FXdouble worldPix() const
- Return size of pixel in world coordinates
FXdouble modelPix() const
- Return size of pixel in model coordinates
FXGLObject** lasso(FXint x1, FXint y1, FXint x2, FXint y2)
- Return a NULL-terminated list of all objects in the given rectangle, or NULL
virtual FXGLObject** select(FXint x, FXint y, FXint w, FXint h)
- Return a NULL-terminated list of all objects in the given rectangle, or NULL
virtual FXGLObject* pick(FXint x, FXint y)
- Perform a pick operation, returning the object at the given x,y position, or NULL
FXbool setBounds(const FXRange& box)
- Change the model bounding box; this adjusts the viewer
FXbool fitToBounds(const FXRange& box)
- Fit viewer to the given bounding box
void getViewport(FXViewport& v) const
- Return the viewer's viewport
void eyeToScreen(FXint& sx, FXint& sy, FXVec e)
- Translate eye-coordinate to screen coordinate
FXVec screenToEye(FXint sx, FXint sy, FXfloat eyez=0.0)
- Translate screen coordinate to eye coordinate at the given depth
FXVec screenToTarget(FXint sx, FXint sy)
- Translate screen coordinate to eye coordinate at the target point depth
FXVec worldToEye(FXVec w)
- Translate world coordinate to eye coordinate
FXfloat worldToEyeZ(FXVec w)
- Translate world coordinate to eye coordinate depth
FXVec eyeToWorld(FXVec e)
- Translate eye coordinate to eye coordinate
FXVec worldVector(FXint fx, FXint fy, FXint tx, FXint ty)
- Calculate world coordinate vector from screen movement
void setMaterial(const FXMaterial &mtl)
- Change default object material setting
void getMaterial(FXMaterial &mtl) const
- Return default object material setting
void setFieldOfView(FXdouble fv)
- Change camera field of view angle (in degrees)
FXdouble getFieldOfView() const
- Return camera field of view angle
void setZoom(FXdouble zm)
- Change camera zoom factor
FXdouble getZoom() const
- Return camera zoom factor
void setDistance(FXdouble ed)
- Change target point distance
FXdouble getDistance() const
- Return target point distance
void setScale(FXVec s)
- Change unequal model scaling factors
FXVec getScale() const
- Return current scaling factors
void setOrientation(FXQuat rot)
- Change camera orientation from quaternion
FXQuat getOrientation() const
- Return current camera orientation quaternion
void setCenter(FXVec cntr)
- Change object center (tranlation)
const FXVec& getCenter() const
- Return object center
void translate(FXVec vec)
- Translate object center
FXbool getBoreVector(FXint sx, FXint sy, FXVec& point, FXVec& dir)
- Return boresight vector
FXVec getEyeVector() const
- Return eyesight vector
FXVec getEyePosition() const
- Return eye position
void setHelpText(const FXString& text)
- Change help text
FXString getHelpText() const
- Return help text
void setTipText(const FXString& text)
- Change tip text
FXString getTipText() const
- Return tip text
void setOffset(FXdouble offs)
- Change line offset
FXdouble getOffset() const
- Return line offset
const FXHMat& getTransform() const
- Return the current transformation matrix
const FXHMat& getInvTransform() const
- Return the inverse of the current transformation matrix
void setScene(FXGLObject* sc)
- Change the scene, ie. the object being displayed.
FXGLObject* getScene() const
- Return the current scene object
void setSelection(FXGLObject* sel)
- Change selection
FXGLObject* getSelection() const
- Return selection
void setProjection(FXuint proj)
- Change the projection mode, PERSPECTIVE or PARALLEL
FXuint getProjection() const
- Return the projection mode
void setViewLock(FXbool lock=TRUE)
- Lock the viewer, ie. prevent mouse-based viewing operations
FXbool getViewLock() const
- Return viewer lock status
void setBackgroundColor(const FXHVec& clr)
- Change window background color
FXHVec getBackgroundColor() const
- Return window background color
void setAmbientColor(const FXHVec& clr)
- Change global ambient light color
FXHVec getAmbientColor() const
- Return global ambient light color
FXbool readPixels(FXuchar*& buffer, FXint x, FXint y, FXint w, FXint h)
- Read the pixels off the screen as R,G,B tuples
FXbool readFeedback(FXfloat*& buffer, FXint& used, FXint& size, FXint x, FXint y, FXint w, FXint h)
- Read the feedback buffer containing the current scene, returning used and allocated size
void setZSortFunc(FXZSortFunc func)
-
Change hidden-surface feedback buffer sorting algorithm.
This can be used for move/draw printed output depth sorting.
FXZSortFunc getZSortFunc() const
- Return hidden surface sorting function
void setMaxHits(FXint maxh)
-
Change the maximum hits, ie. the maximum size of the pick buffer.
When set to less than or equal to zero, picking is essentially turned off.
FXint getMaxHits() const
- Return maximum pickbuffer size
FXbool doesTurbo() const
-
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
FXbool getTurboMode() const
- Return turbo mode setting
void setTurboMode(FXbool turbo=TRUE)
- Set turbo mode
void getLight(FXLight& lite) const
- Return light source settings
void setLight(const FXLight& lite)
- Change light source settings
virtual void save(FXStream& store) const
- Save viewer to a stream
virtual void load(FXStream& store)
- Load viewer from a stream
virtual ~FXGLViewer()
- Destructor
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.