Back to index

salome-gui  6.5.0
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Types | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | Friends
GLVIEWER_API Protocol Reference

GLViewer_AspectLine Substitution of Prs2d_AspectLine for OpenGL More...

#include <GLViewer_AspectLine.h>

Inheritance diagram for GLVIEWER_API:
Inheritance graph
[legend]
Collaboration diagram for GLVIEWER_API:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Position { TopLeft, TopRight, BottomLeft, BottomRight }
 Position of compass. More...
enum  CSType { Cartesian, Polar }
 A type of coordinate system. More...
enum  {
  GLText_Center = 0, GLText_Left, GLText_Right, GLText_Top,
  GLText_Bottom
}
 Text position relatively object. More...
enum  SelectionMode { NoSelection, Single, Multiple }
enum  TransformType {
  NoTransform, Reset, FitAll, FitRect,
  FitSelect, Zoom, PanGlobal, Pan,
  Rotate, UserTransform = 100
}
enum  SketchingType { NoSketching, Rect, UserSketching = 100 }
enum  GLSketchingType {
  None, Polyline, Arc, Curve,
  Scribble, Oval, Rectangle
}
 Type of sketcher operation. More...
enum  VectorFileType { POST_SCRIPT, HPGL }
 Type of export vector file. More...
enum  PaperType {
  A1 = 0, A2, A3, A4,
  A5
}
 Type of paper for export to vector format. More...
enum  {
  DumpId, FitAllId, FitRectId, FitSelectId,
  ZoomId, PanId, GlobalPanId, ResetId
}
 Actions ID. More...

Public Slots

void onChangeBgColor ()
 Changes background color.
void onCreateGLMarkers (int number=1000, int size=5)
 Creates set of marker number.
void onCreateGLPolyline (int number=100, int angles=10, int size=100)
 Creates set of polyline number.
void onCreateGLText (QString text="Text", int number=1)
 Creates set of text number.

Signals

void selSelectionCancel ()
void selSelectionDone (bool append, SelectionChangeStatus status)
void selectionChanged (SelectionChangeStatus)
void wheelZoomChange (bool)
 Signal needs for optimum recompute of zoom depending objects Warning: use recompute without update viewer.
void vfDrawExternal (QPainter *)
void vfViewClosing (QCloseEvent *)
void vpKeyEvent (QKeyEvent *)
void vpMouseEvent (QMouseEvent *)
void vpWheelEvent (QWheelEvent *)
void vpDrawExternal (QPainter *)
void contextMenuRequested (QContextMenuEvent *)

Public Member Functions

 GLViewer_AspectLine ()
 A default constructor.
 GLViewer_AspectLine (int theType, float theWidth)
 A conctructor by type and width of line.
 ~GLViewer_AspectLine ()
 A destructor.
void setLineColors (QColor nc=Qt::black, QColor hc=Qt::cyan, QColor sc=Qt::red)
 A function for installing the line colors.
int setLineWidth (const float theWidth)
 A function for installing the line width.
int setLineType (const int theType)
 A function for installing the line type.
void getLineColors (QColor &theNC, QColor &theHC, QColor &theSC) const
 A function for getting line colors information.
float getLineWidth () const
 A function for getting information about line width.
int getLineType () const
 A function for getting information about line type.
QByteArray getByteCopy () const
 A function for coding object to the byte copy.
 GLViewer_MarkerDrawer ()
 ~GLViewer_MarkerDrawer ()
virtual void create (float, float, bool)
 Redefined method.
 GLViewer_PolylineDrawer ()
 ~GLViewer_PolylineDrawer ()
virtual void create (float, float, bool)
 Redefined method.
 GLViewer_TextDrawer ()
 ~GLViewer_TextDrawer ()
virtual void create (float, float, bool)
 Redefined method.
void updateObjects ()
 Updates objects after updating font.
 GLViewer_MarkerSet (int number=1, float size=5.0, const QString &toolTip="GLMarker")
 A constructor.
 ~GLViewer_MarkerSet ()
 A destructor.
virtual void compute ()
virtual GLViewer_DrawercreateDrawer ()
virtual GLboolean highlight (GLfloat x, GLfloat y, GLfloat tol=15.0, GLboolean isCircle=GL_FALSE)
virtual GLboolean unhighlight ()
virtual GLboolean select (GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull=GL_FALSE, GLboolean isCircle=GL_FALSE, GLboolean isShift=GL_FALSE)
virtual GLboolean unselect ()
virtual GLViewer_RectgetUpdateRect ()
virtual void moveObject (float, float, bool fromGroup=false)
virtual QByteArray getByteCopy ()
virtual bool initializeFromByteCopy (QByteArray)
virtual bool translateToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS)
virtual bool translateToHPGL (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aHPGLCS)
void setXCoord (GLfloat *xCoord, int size)
 Sets array of x coords of markers.
void setYCoord (GLfloat *yCoord, int size)
 Sets array of y coords of markers.
GLfloat * getXCoord () const
 Returns x coords.
GLfloat * getYCoord () const
 Returns y coords.
void setNumMarkers (GLint)
 Sets markers number.
GLint getNumMarkers () const
 returns markers number
void setMarkerSize (const float size)
 Sets merker radius.
float getMarkerSize () const
 Returns merker radius.
void exportNumbers (QList< int > &high, QList< int > &unhigh, QList< int > &sel, QList< int > &unsel)
 Export numbers of heghlighted/selected markers.
QList< int > getSelectedElements ()
 Returns selected numbers.
bool addOrRemoveSelected (int index)
 Adds or remove selected number.
void addSelected (const TColStd_SequenceOfInteger &)
 Adds selected numbers.
void setSelected (const TColStd_SequenceOfInteger &)
 Sets selected nembers.
 GLViewer_Polyline (int number=1, float size=5.0, const QString &toolTip="GLPolyline")
 ~GLViewer_Polyline ()
virtual void compute ()
virtual GLViewer_DrawercreateDrawer ()
virtual GLboolean highlight (GLfloat x, GLfloat y, GLfloat tol=15.0, GLboolean isCircle=GL_FALSE)
virtual GLboolean unhighlight ()
virtual GLboolean select (GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull=GL_FALSE, GLboolean isCircle=GL_FALSE, GLboolean isShift=GL_FALSE)
virtual GLboolean unselect ()
virtual GLViewer_RectgetUpdateRect ()
virtual void moveObject (float, float, bool fromGroup=false)
virtual QByteArray getByteCopy ()
virtual bool initializeFromByteCopy (QByteArray)
virtual bool translateToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS)
virtual bool translateToHPGL (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aHPGLCS)
void setXCoord (GLfloat *xCoord, int size)
 Sets array of x coords of points.
void setYCoord (GLfloat *yCoord, int size)
 Sets array of y coords of points.
GLfloat * getXCoord () const
 Returns x coords.
GLfloat * getYCoord () const
 Returns y coords.
void setNumber (GLint)
 SetS number of points.
GLint getNumber () const
 Returns number of points.
void setClosed (GLboolean closed)
 On/off closed status of polyline.
GLboolean isClosed () const
 Checks closed status of polyline.
void setHighSelAll (GLboolean highSelAll)
 On/off highlight as whole object status.
GLboolean isHighSelAll () const
 Checks highlight as whole object status.
void exportNumbers (QList< int > &high, QList< int > &unhigh, QList< int > &sel, QList< int > &unsel)
 Export numbers of highlighted/selected lines.
QList< int > getSelectedElements ()
 Returns numbers of selected lines.
 GLViewer_TextObject (const QString &, float xPos=0, float yPos=0, const QColor &color=QColor(0, 255, 0), const QString &toolTip="GLText")
 ~GLViewer_TextObject ()
virtual void compute ()
virtual GLViewer_DrawercreateDrawer ()
virtual void setDrawer (GLViewer_Drawer *theDrawer)
virtual GLboolean highlight (GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle=GL_FALSE)
virtual GLboolean unhighlight ()
virtual GLboolean select (GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull=GL_FALSE, GLboolean isCircle=GL_FALSE, GLboolean isShift=GL_FALSE)
virtual GLboolean unselect ()
virtual GLViewer_RectgetUpdateRect ()
virtual void moveObject (float, float, bool fromGroup=false)
virtual QByteArray getByteCopy ()
virtual bool initializeFromByteCopy (QByteArray)
virtual bool translateToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS)
virtual bool translateToHPGL (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aHPGLCS)
int getWidth ()
int getHeight ()
void setWidth (int w)
void setHeight (int h)
 GLViewer_Compass (const QColor &color=QColor(0, 255, 0), const int size=60, const Position pos=TopRight, const int WidthTop=20, const int WidthBottom=10, const int HeightTop=25, const int HeightBottom=7)
 A constructor.
 ~GLViewer_Compass ()
 A destructor.
void setCompass (const QColor &color, const int size, const Position pos)
 A function installing main parameters of compass.
void setVisible (const bool vis=true)
 A function installing a visible status.
bool getVisible ()
 Returns visible status.
void setSize (const int size)
 A function installing diameter.
int getSize ()
 Returns diameter.
void setPos (const Position pos)
 A function installing position.
int getPos ()
 Returns position.
void setColor (const QColor &color)
 A function installing color.
QColor getColor ()
 Returns color.
void setArrowWidthTop (const int WidthTop)
 A function installing width of wide part of arrow.
int getArrowWidthTop ()
 Returns width of wide part of arrow.
void setArrowWidthBottom (const int WidthBot)
 A function installing width of base part of arrow.
int getArrowWidthBottom ()
 Returns width of base part of arrow.
void setArrowHeightTop (const int HeightTop)
 A function installing height of arrow header.
int getArrowHeightTop ()
 Returns height of arrow header.
void setArrowHeightBottom (const int HeightBot)
 A function installing height of arrow cut on bottom.
int getArrowHeightBottom ()
 Returns height of arrow cut on bottom.
void setFont (QFont theFont)
 A function installing.
GLViewer_TexFontgetFont ()
 Returns.
 GLViewer_Context (GLViewer_Viewer2d *)
 A constructor.
 ~GLViewer_Context ()
 A desructor.
void setUpdateAll (bool on)
 A function installing update flag in highlighting technology.
bool isUpdateAll () const
 Returns update flag in highlighting technology.
int MoveTo (int x, int y, bool byCircle=FALSE)
 Main interactive method. Trace mouse in viewer window.
int Select (bool Append=FALSE, bool byCircle=FALSE)
 A function selecting already highlighting object by calling object method select.
int SelectByRect (const QRect &theRect, bool Append=FALSE)
 A function selecting objects on scene by rectangle.
void SetHighlightColor (Quantity_NameOfColor aCol)
 A function installing highlight color for all presentation (does not work)
void SetSelectionColor (Quantity_NameOfColor aCol)
 A function installing select color for all presentation (does not work)
Quantity_NameOfColor HighlightColor ()
 Returns highlight color.
Quantity_NameOfColor SelectionColor ()
 Returns select color.
int NbSelected ()
 Returns number of objects in current selection.
void InitSelected ()
 A function set iterator of selected objects on first object.
bool MoreSelected ()
 Retuns true if iterator of selected objects is not set on last object.
bool NextSelected ()
 Increment of iterator of selected objects.
GLViewer_ObjectSelectedObject ()
 Returns object corresponding the current iterator of selected objects.
bool isSelected (GLViewer_Object *theObject)
 Returns true if theObject is selected.
int insertObject (GLViewer_Object *theObject, bool display=false, bool isActive=true)
 Insert new object in context.
bool replaceObject (GLViewer_Object *oldObject, GLViewer_Object *newObject)
 Replacing objects in context.
void updateScales (GLfloat theX, GLfloat theY)
 A function updating scales of all objects in context.
void setTolerance (int tol)
 A function installing tolerance in window pixels for highlghting and selection methods.
const ObjListgetObjects (bool isActive=true)
 Returns list of context objects.
GLViewer_ObjectgetFirstObject ()
 Returns first active object.
void clearHighlighted (bool updateViewer)
 A function clear highlighted object information.
void clearSelected (bool updateViewer)
 A function clear selection object information.
void setSelected (GLViewer_Object *theObject, bool updateViewer)
 A function make theObject as selected object and update viewer if updateViewer = true.
void remSelected (GLViewer_Object *theObject, bool updateViewer)
 A function make theObject as unselected object and update viewer if updateViewer = true.
GLViewer_ObjectgetCurrentObject ()
 Returns highlighted object.
bool currentObjectIsChanged ()
 Returns true if after last MoveTo method calling highlight object is changed.
void eraseObject (GLViewer_Object *theObject, bool updateViewer=true)
 A function installing to theObject invisible status and update viewer if updateViewer = true.
void deleteObject (GLViewer_Object *theObject, bool updateViewer=true)
 A function remove theObject from context and update viewer if updateViewer = true.
bool setActive (GLViewer_Object *theObject)
 A function installing to theObject active status.
bool setInactive (GLViewer_Object *theObject)
 A function installing to theObject inactive status.
 GLViewer_CoordSystem (CSType aType, double X0=0.0, double Y0=0.0, double XUnit=1.0, double YUnit=1.0, double Rotation=0.0)
 A constructor ( by default new system is identical to reference )
void getOrigin (double &x, double &y) const
 Returns the origin in reference system.
void setOrigin (double x, double y)
 A function installing the origin in reference system.
void getUnits (double &x, double &y) const
 Returns units along axes.
void setUnits (double x, double y)
 A function installing units along axes.
double getRotation () const
 Returns rotation angle of axes in reference system.
void setRotation (double rotation)
 A function installing rotation angle of axes in reference system.
CSType getType () const
 Returns type of system.
void setType (CSType type)
 A function installing type of system.
void transform (GLViewer_CoordSystem &aSystem, double &x, double &y)
 Transform the coordinates x, y from current CS to aSystem.
virtual void getStretching (GLViewer_CoordSystem &aSystem, double &theX, double &theY)
 Return how many times line width in aSystem system bigger than in current.
bool operator< (const GLViewer_TexFindId theStruct) const
 Overloaded operator for using struct as MAP key.
 GLViewer_TexFont ()
 A default constructor.
 GLViewer_TexFont (QFont *theFont, int theSeparator=2, bool theIsResizeable=false, GLuint theMinMagFilter=GL_LINEAR)
 A constructor.
 ~GLViewer_TexFont ()
 A destructor.
bool generateTexture ()
 Generating font texture.
void drawString (QString theStr, GLdouble theX=0.0, GLdouble theY=0.0, GLfloat theScale=1.0)
 Drawing string theStr in point with coords theX and theY.
int getSeparator ()
 Returns separator between letters.
void setSeparator (int theSeparator)
 Installing separator between letters.
int getStringWidth (QString theString)
 Returns width of string in pixels.
int getStringHeight ()
 Returns height of string in pixels.
 GLViewer_Drawer ()
 A constructor.
virtual ~GLViewer_Drawer ()
 A destructor.
virtual void create (float xScale, float yScale, bool onlyUpdate)=0
 Main method which drawing object in GLViewer.
virtual void addObject (GLViewer_Object *theObject)
 Adds object to drawer display list.
virtual void clear ()
 Clears drawer display list.
QString getObjectType () const
 Returns object type (needs for dynamic search of right drawer )
int getPriority () const
 Returns object priority.
void setAntialiasing (const bool on)
 The function enables and disables antialiasing in Open GL (for points, lines and polygons).
virtual bool translateToHPGL (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aHPGLCS)
 A function translate object in to HPGL file on disk.
virtual bool translateToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS)
 A function translate object in to PostScript file on disk.
void drawTexture (GLuint texture, GLint size, GLfloat x, GLfloat y)
 Draw square texture.
void drawTexture (GLuint texture, GLint x_size, GLint y_size, GLfloat x, GLfloat y)
 Draw texture.
void drawTexturePart (GLuint texture, GLfloat x_ratio, GLfloat y_ratio, GLfloat x_size, GLfloat y_size, GLfloat x, GLfloat y, GLfloat scale=0)
 Draw texture part.
void drawText (const QString &text, GLfloat xPos, GLfloat yPos, const QColor &color, QFont *aFont, int theSeparator, DisplayTextFormat=DTF_BITMAP)
 Draw text string.
void drawGLText (QString text, float x, float y, int hPosition=GLText_Center, int vPosition=GLText_Center, QColor color=Qt::black, bool smallFont=false)
 Draw text string.
void setFont (const QFont &font)
 Sets a default font to be used by drawGLText method.
QFont font () const
 Returns a default font used by drawGLText method.
void setTextFormat (const DisplayTextFormat format)
 Sets a default text displaying format to be used by drawGLText method.
DisplayTextFormat textFormat () const
 Returns a default text displaying format used by drawGLText method.
void setTextScale (const GLfloat factor)
 Sets a text string displaying scale factor (used only with text format DTF_TEXTURE_SCALABLE)
GLfloat textScale () const
 Returns a text string displaying scale factor.
GLViewer_Rect textRect (const QString &) const
 Returns a rectangle of text (without viewer scale)
 GLViewer_Pnt ()
 GLViewer_Pnt (GLfloat theX, GLfloat theY)
GLfloat x () const
GLfloat y () const
void setX (GLfloat theX)
void setY (GLfloat theY)
void setXY (GLfloat theX, GLfloat theY)
void move (GLfloat theDX, GLfloat theDY)
 GLViewer_Rect ()
 GLViewer_Rect (float theLeft, float theRight, float theTop, float theBottom)
 GLViewer_Rect (QRect theRect)
float left () const
float right () const
float top () const
float bottom () const
float width () const
float height () const
void setLeft (float theLeft)
void setRight (float theRight)
void setTop (float theTop)
void setBottom (float theBottom)
void setCoords (float theLeft, float theRight, float theBottom, float theTop)
QRect toQRect ()
void setIsEmpty (bool on)
 On/off empty status.
bool isEmpty () const
 Checks empty status.
bool isNull () const
 Checks null status.
bool isValid () const
 Checks valid status.
bool contains (GLViewer_Pnt pnt)
 Checks staus of contains point.
void move (const float x, const float y)
 GLViewer_Segment (const GLViewer_Pnt &thePnt1, const GLViewer_Pnt &thePnt2)
 GLViewer_Segment (const GLViewer_Pnt &thePnt, const GLfloat theA, const GLfloat theB, const GLfloat theC)
 Ordinary segment construction.
 ~GLViewer_Segment ()
bool HasIntersection (const GLViewer_Segment &theOther) const
 GLViewer_Poly (const GLViewer_PntList *thePoints)
virtual ~GLViewer_Poly ()
void AddPoint (GLViewer_Pnt &pnt)
 Adds point to polygon.
int Count () const
 Returns number of point.
virtual bool IsIn (const GLViewer_Pnt &thePnt) const
 Returns true if a point lies inside this polygon.
virtual bool IsCovers (const GLViewer_Poly &thePoly) const
 Returns true if a other polygon covers this polygon.
virtual bool IsCovers (const GLViewer_Rect &theRect) const
 Likes the above function.
virtual bool HasIntersection (const GLViewer_Segment &theSegment) const
 GLViewer_Grid ()
 A default constructor.
 GLViewer_Grid (GLfloat width, GLfloat height, GLfloat winW, GLfloat winH, GLfloat xSize, GLfloat ySize, GLfloat xPan, GLfloat yPan, GLfloat xScale, GLfloat yScale)
 A constructor.
 ~GLViewer_Grid ()
void draw ()
 Draws grid.
void setGridColor (GLfloat r, GLfloat g, GLfloat b)
 Sets color of grid in RGB format.
void setAxisColor (GLfloat r, GLfloat g, GLfloat b)
 Sets color of grid axes in RGB format.
void setGridWidth (float)
void setCenterRadius (int)
 Sets Radius of center point( begin coords )
void setSize (float xs, float ys)
 Sets steps along x and y directions.
void setPan (float xp, float yp)
 Sets offset along x and y direction.
bool setZoom (float zoom)
 Sets common scale factor along x and y direction.
void setResize (float winW, float winH, float Zoom)
 Recomputes grid in new size and scale of view.
void getSize (float &, float &) const
void getPan (float &, float &) const
void getScale (float &, float &) const
void setScaleFactor (int)
 Sets step of scale.
int getScaleFactor ()
 GLViewer_Group ()
 ~GLViewer_Group ()
bool isEmpty ()
int count ()
 Returns number ob objects.
int contains (GLViewer_Object *)
 Returns index of position, else -1.
int addObject (GLViewer_Object *)
int removeObject (GLViewer_Object *)
OGList getObjects () const
void dragingObjects (float x, float y, bool once=false)
 Dragging operation.
void updateZoom (GLViewer_Object *sender, float zoom)
 GLViewer_MimeData ()
 ~GLViewer_MimeData ()
bool setObjects (QList< GLViewer_Object * >)
 Translate objects to byte array.
const char * format (int theIndex=0) const
QByteArray encodedData (const char *) const
 GLViewer_Object ()
 A constructor.
virtual ~GLViewer_Object ()
 A destructor.
virtual void compute ()=0
 Main method. Computes all needed information about object for presentation in drawer.
virtual GLViewer_DrawercreateDrawer ()=0
 Creates correspond drawer.
virtual void setDrawer (GLViewer_Drawer *theDrawer)
 Installing already exist drawer with same type.
GLViewer_DrawergetDrawer () const
 Returns current drawer.
virtual GLboolean highlight (GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle=GL_FALSE)=0
 Computes highlight presentation.
virtual GLboolean unhighlight ()=0
 Clears all highlight information.
virtual GLboolean select (GLfloat x, GLfloat y, GLfloat tol, GLViewer_Rect rect, GLboolean isFull=GL_FALSE, GLboolean isCircle=GL_FALSE, GLboolean isShift=GL_FALSE)=0
 Computes select presentation.
virtual GLboolean unselect ()=0
 Clears all select information.
virtual GLboolean isInside (GLViewer_Rect theRect)
 Returns if theRect inside object.
virtual bool portContains (GLViewer_Pnt)
virtual bool startPulling (GLViewer_Pnt)
virtual void pull (GLViewer_Pnt, GLViewer_Object *)
virtual void finishPulling ()
virtual bool isPulling ()
virtual GLViewer_Rect getPullingRect () const
virtual void setRect (GLViewer_Rect *rect)
 Installs object rectangle.
virtual GLViewer_RectgetRect () const
 Returns object rectungle.
virtual GLViewer_RectgetUpdateRect ()=0
 Returns update object rectangle.
virtual void setScale (GLfloat xScale, GLfloat yScale)
 Installs scale factors.
virtual void getScale (GLfloat &xScale, GLfloat &yScale) const
 Returns scale factors.
virtual GLboolean setZoom (GLfloat zoom, bool recompute, bool fromGroup=false)
virtual GLfloat getZoom () const
virtual GLboolean updateZoom (bool zoomIn)
virtual GLboolean isHighlighted () const
 Returns true if object is highlighted.
virtual GLboolean isSelected () const
 Returns true if object is selected.
virtual void setSelected (GLboolean state)
 Installs select status to object.
void setGLText (GLViewer_Text *glText)
 Installs GLText to object.
GLViewer_TextgetGLText () const
 Returns object GLText.
virtual void setAspectLine (GLViewer_AspectLine *aspect)
 Installs acpect line for object presentation.
virtual GLViewer_AspectLinegetAspectLine () const
 Returns acpect line of object presentation.
QString getObjectType () const
 Returns object type.
void setName (QString name)
 Installs object name.
QString getName () const
 Returns object name.
virtual int getPriority () const
 Returns object priority.
virtual void moveObject (float dx, float dy, bool fromGroup=false)=0
 Moves object per by recomputing.
virtual bool finishMove ()
 Finaly recomputing object after moving.
virtual bool getVisible () const
 Returns visible object status.
virtual void setVisible (bool theStatus)
 Installs visible object status.
void setToolTipText (QString str)
 Installs onject tool tip text.
virtual QString getToolTipText ()
 Returns onject tool tip text.
bool isTooTipHTML () const
 Returns true if tool tip contains HTML tags.
void setToolTipFormat (bool isHTML)
 Installs tool tip supporting of HTML tags.
virtual QByteArray getByteCopy ()
 A function for coding object to the byte copy.
virtual bool initializeFromByteCopy (QByteArray)
 A function for decoding object from the byte copy.
virtual bool translateToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS)=0
 A function translate object in to PostScript file on disk.
virtual bool translateToHPGL (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aHPGLCS)=0
 A function translate object in to HPGL file on disk.
SUIT_DataOwnerowner () const
void setOwner (SUIT_DataOwner *owner)
void setGroup (GLViewer_Group *theGroup)
 Adds object to group theGroup.
GLViewer_GroupgetGroup () const
 Returns object group.
virtual GLViewer_ObjectgetOwner ()
virtual bool isSelectable ()
 Returns true if object can be selected.
virtual bool isScalable ()
 GLViewer_Selector (GLViewer_Viewer *)
 ~GLViewer_Selector ()
void lock (bool)
 Sets lock status (enable/disable interavtive)
void setMinRectSize (const QSize &minSize)
virtual void detect (int x, int y)=0
 Highlights in point (x,y)
virtual void undetectAll ()=0
virtual void select (bool append=false)=0
 Selects highlight objects.
virtual void select (const QRect &, bool append=false)=0
 Selects by rect.
virtual void unselectAll ()=0
virtual int numSelected () const =0
virtual void setHilightColor (Quantity_NameOfColor)=0
virtual void setSelectColor (Quantity_NameOfColor)=0
virtual void checkSelection (int, bool, int)=0
 Checks selection state and emits 'selSelectionDone' or 'selSelectionCancel'.
 GLViewer_Selector2d (GLViewer_Viewer2d *, GLViewer_Context *)
 ~GLViewer_Selector2d ()
void setContext (GLViewer_Context *glc)
 Sets context from Viewer2d.
GLViewer_ContextgetContext () const
virtual void setHilightColor (Quantity_NameOfColor)
virtual void setSelectColor (Quantity_NameOfColor)
virtual void detect (int, int)
virtual void undetectAll ()
virtual void select (bool append=false)
virtual void select (const QRect &, bool append=false)
virtual void unselectAll ()
virtual int numSelected () const
virtual void checkSelection (int, bool, int)
 GLViewer_Text (const QString &, float xPos=0.0, float yPos=0.0, const QColor &color=QColor(0, 255, 0))
 GLViewer_Text (const QString &, float xPos, float yPos, const QColor &, QFont theFont, int theSeparator)
 ~GLViewer_Text ()
void setText (const QString &text)
 Sets text.
QString getText () const
 Returns text.
void setPosition (float xPos, float yPos)
 Sets text position.
void getPosition (float &xPos, float &yPos)
 Returns text position.
void setColor (const QColor &color)
 Sets text color.
QColor getColor () const
 Returns text color.
void setFont (const QFont theQFont)
 Sets text font.
QFont getFont () const
 Returns text font.
int getSeparator ()
 Returns text separator.
void setSeparator (int theSep)
 Sets text separator.
int getWidth ()
 Returns text width.
int getHeight ()
 Returns text height.
QByteArray getByteCopy () const
 A function for coding object to the byte copy.
DisplayTextFormat getDisplayTextFormat () const
 Sets text format BITMAP or TEXTURE.
void setTextDisplayFormat (DisplayTextFormat theDTF)
 Returns text format BITMAP or TEXTURE.
 GLViewer_ObjectTip (GLViewer_ViewPort2d *)
 ~GLViewer_ObjectTip ()
virtual bool eventFilter (QObject *, QEvent *)
virtual bool maybeTip (const QPoint &)
void setText (const QString &theText)
QString getText () const
 GLViewer_Viewer (const QString &title)
 ~GLViewer_Viewer ()
virtual void setViewManager (SUIT_ViewManager *theViewManager)
virtual QString getType () const
virtual void contextMenuPopup (QMenu *)
void setSelectionMode (SelectionMode)
SelectionMode getSelectionMode () const
GLViewer_SelectorgetSelector () const
virtual void update (int=0)
void activateTransform (int)
void activateSketching (int)
GLViewer_ViewFramegetActiveView () const
 GLViewer_ViewTransformer (GLViewer_Viewer *, int type)
 ~GLViewer_ViewTransformer ()
int type () const
 Returns transformer type.
virtual void exec ()
virtual bool eventFilter (QObject *, QEvent *)
 GLViewer_ViewSketcher (GLViewer_Viewer *, int type)
 ~GLViewer_ViewSketcher ()
int type () const
 Returns sketcher type.
voiddata () const
 Returns result of sketching.
int buttonState () const
 Returns current state of mouse/sys kbd buttons.
virtual bool eventFilter (QObject *, QEvent *)
 GLViewer_Viewer2d (const QString &title)
 A constructor.
 ~GLViewer_Viewer2d ()
 A destructor.
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *)
 Redefined method.
void addPopupItems (QMenu *)
 Adds item for change background color.
const QList< GLViewer_Drawer * > & getDrawers () const
 Returns all drawers.
GLViewer_ContextgetGLContext () const
 Returns context.
void updateColors (QColor colorH, QColor colorS)
 Updates colors for all drawers (does not work)
void updateBorders (GLViewer_Rect *theRect)
 Updates rect of global scene by adding new rect.
void updateBorders ()
 Recomputes global scene rect.
void updateAll ()
 Redraws all active objects by updating all drawers in all views.
void updateDrawers (GLboolean onlyUpdate, GLfloat scX=0.0, GLfloat scY=0.0)
 Updates all drawers with new scale factor.
void activateDrawers (QList< GLViewer_Object * > &theObjects, bool onlyUpdate, GLboolean swap=GL_FALSE)
 Activates drawers for objects from list.
void activateDrawer (GLViewer_Object *theObject, bool onlyUpdate, GLboolean swap=GL_FALSE)
 Activates drawer for.
void activateAllDrawers (bool onlyUpdate, GLboolean swap=GL_FALSE)
 Updates all drawers with new scale factor.
void transPoint (GLfloat &x, GLfloat &y)
 Translates point (x,y) from global CS to curreent viewer CS.
QRect * getWinObjectRect (GLViewer_Object *theObject)
 Returns object rect in window CS.
GLViewer_Rect getGLVRect (const QRect &) const
 Translates rect in window CS to rect in global CS.
QRect getQRect (const GLViewer_Rect &) const
 Translates rect in global CS to rect in window CS.
virtual void insertHeader (VectorFileType aType, QFile &hFile)
 Inserts common text lines starting file of.
virtual void insertEnding (VectorFileType aType, QFile &hFile)
 Inserts common text lines ending file of.
virtual bool translateTo (VectorFileType aType, QString FileName, PaperType aPType, double mmLeft, double mmRight, double mmTop, double mmBottom)
 Translates current view content to vector file.
void repaintView (GLViewer_ViewFrame *theView=NULL, bool makeCurrent=false)
 Repaints view.
 GLViewer_View2dTransformer (GLViewer_Viewer *, int)
 ~GLViewer_View2dTransformer ()
virtual void exec ()
 GLViewer_ViewFrame (SUIT_Desktop *, GLViewer_Viewer *)
 ~GLViewer_ViewFrame ()
void setViewer (GLViewer_Viewer *)
GLViewer_ViewergetViewer () const
void setViewPort (GLViewer_ViewPort *)
GLViewer_ViewPortgetViewPort () const
void setBackgroundColor (const QColor &)
QColor backgroundColor () const
QSize sizeHint () const
virtual void onUpdate (int)
virtual QString getVisualParameters ()
virtual void setVisualParameters (const QString &parameters)
virtual QImage dumpView ()
QWidget * getViewWidget ()
 GLViewer_ViewManager (SUIT_Study *theStudy, SUIT_Desktop *theDesktop)
virtual ~GLViewer_ViewManager ()
GLViewer_ViewergetGLViewer ()
virtual void contextMenuPopup (QMenu *)
 GLViewer_ViewPort (QWidget *parent)
 ~GLViewer_ViewPort ()
void setSketchingEnabled (bool)
 Activates/deactivates sketching.
bool isSketchingEnabled () const
 Checks active status of sketcher.
void setTransformEnabled (bool)
 Activates/deactivates transformer.
bool isTransformEnabled () const
 Checks active status of transformer.
virtual QColor backgroundColor () const
 Returns background color.
virtual void setBackgroundColor (const QColor &)
 Sets background color.
void redrawPainters ()
 Redraw external pa inters.
virtual void onUpdate ()
 Updates view.
virtual BlockStatus currentBlock ()
 Returns blocking status for current started operations.
 GLViewer_Widget (QWidget *theParent, const char *theName=0)
 A constructor.
 ~GLViewer_Widget ()
 A destructor.
GLViewer_ViewPort2dgetViewPort () const
 Returns parent GLViewer_ViewPort2d.
GLint getWidth () const
 Returns width of OpenGl Window.
GLint getHeight () const
 Returns height of OpenGl Window.
void getScale (GLfloat &xScale, GLfloat &yScale, GLfloat &zScale)
 Returns scales on OpenGL scene along 3 directions.
void setScale (GLfloat xScale, GLfloat yScale, GLfloat zScaleGLfloat)
 A function for installing the scales of OpenGL scene.
void getPan (GLfloat &xPan, GLfloat &yPan, GLfloat &zPan)
 Returns offset parameters of Window in OpenGL global scene.
void setPan (GLfloat xPan, GLfloat yPan, GLfloat zPan)
 A function for installing the offset parameters of Window in OpenGL global scene.
GLfloat getRotationAngle () const
 Returns rotation angle of Window in OpenGL global scene in degree.
void setRotationAngle (GLfloat a)
 A function for installing the rotation angle of Window in OpenGL global scene in degree.
void getRotationStart (GLfloat &rotationStartX, GLfloat &rotationStartY, GLfloat &rotationStartZ)
 Returns start point of curren rotation of Window in OpenGL global scene.
void setRotationStart (GLfloat rotationStartX, GLfloat rotationStartY, GLfloat rotationStartZ)
 A function for installing the start point of curren rotation of Window in OpenGL global scene.
void getRotation (GLfloat &rotationAngle, GLfloat &rotationCenterX, GLfloat &rotationCenterY, GLfloat &rotationCenterZ)
 Returns parameters of current rotation.
void setRotation (GLfloat, GLfloat, GLfloat, GLfloat)
 A function for installing the parameters of current rotation.
void setBackground (QString theFileName)
 A function load picture from file with name theFileName and post it in center of global OpenGL scene.
void addToolTip (QString theTTText, QRect theTTRect)
 A function add the tool tip with text theTTText on theTTRect rect to the widget window.
void removeToolTip ()
 A function remove tool tip form widget window.
virtual void translateBackgroundToPS (QFile &hFile, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPSCS)
 A function translate background of window in to PostScript file on disk.
void exportRepaint ()
 A function repaints OpenGL scene in export mode.

Static Public Member Functions

static GLViewer_AspectLinefromByteCopy (QByteArray)
 A function for decoding object from the byte copy.
static void clearTextBases ()
 Clears all generated fonts.
static void destroyAllTextures ()
 Clears all generated textures.
static GLuint loadTexture (const QString &fileName, GLint *x_size=0, GLint *y_size=0, GLint *t_size=0)
 Loads texture from file.
static void drawRectangle (GLViewer_Rect *theRect, QColor=Qt::black)
 Draw rectangle with predefined color.
static QList< GLViewer_Object * > getObjects (QByteArray, QString theType)
 Gets objects from byte array.
static GLViewer_ObjectgetObject (QByteArray, QString theType)
 Get object from byte array.
static int appendKey ()
 Sets/returns the key for appending selected objects ( SHIFT by default )
static void setAppendKey (int k)
static GLViewer_TextfromByteCopy (QByteArray)
 A function for decoding object from the byte copy.
static QString Type ()
static int accelKey ()
 Sets/returns acceleration key ( CTRL by default )
static void setAccelKey (int k)
static int zoomButton ()
 Sets/returns mouse button used for zooming ( MB1 by default )
static void setZoomButton (int b)
static int panButton ()
 Sets/returns mouse button used for panning ( MB2 by default )
static void setPanButton (int b)
static int panGlobalButton ()
 Sets/returns mouse button used for global pan ( MB1 by default )
static void setPanGlobalButton (int b)
static int fitRectButton ()
 Sets/returns mouse button used for fit area ( MB1 by default )
static void setFitRectButton (int b)
static int sketchButton ()
 Sets/returns mouse button used for sketching ( MB1 by default )
static void setSketchButton (int b)
static int rotateButton ()
 Sets/returns mouse butto which will be used for rotation ( MB1 by default )
static void setRotateButton (int b)
static QCursor * getDefaultCursor ()
static void setDefaultCursor (const QCursor &newCursor)
static QCursor * getRotCursor ()
static void setRotCursor (const QCursor &newCursor)
static QCursor * getSketchCursor ()
static void setSketchCursor (const QCursor &newCursor)

Public Attributes

GLuint myTexFontId
 Texture ID.
int myTexFontWidth
 Texture width.
int myTexFontHeight
 texture height
QString myFontFamily
 Font family description.
bool myIsBold
 Bold parameter.
bool myIsItal
 Italic parameter.
bool myIsUndl
 Underline parameter.
int myPointSize
 Font Size.
int myViewPortId
 View POrt ID.

Static Public Attributes

static QMap
< GLViewer_TexFindId,
GLViewer_TexIdStored > 
TexFontBase
 Map for strorage generated texture fonts.
static QMap
< GLViewer_TexFindId, GLuint > 
BitmapFontCache
 Map for strorage generated bitmaps fonts.

Protected Types

enum  TransformState { Debut, EnTrain, Fin }
enum  SketchState { Debut, EnTrain, Fin }
enum  ViewType { Type2D, Type3D }

Protected Slots

virtual void onKeyEvent (SUIT_ViewWindow *, QKeyEvent *)
virtual void onMouseEvent (SUIT_ViewWindow *, QMouseEvent *)
virtual void onWheelEvent (SUIT_ViewWindow *, QWheelEvent *)
virtual void onSelectionCancel ()
virtual void onSelectionDone (bool add, SelectionChangeStatus status)
virtual void onChangeBgColor ()
void onMouseEvent (SUIT_ViewWindow *, QMouseEvent *)
void onViewPan ()
void onViewZoom ()
void onViewFitAll ()
void onViewFitArea ()
void onViewFitSelect ()
void onViewGlobalPan ()
void onViewRotate ()
void onViewReset ()
void onViewFront ()
void onViewBack ()
void onViewRight ()
void onViewLeft ()
void onViewBottom ()
void onViewTop ()
void onViewTrihedron ()
virtual void onChangeBgColor ()

Protected Member Functions

virtual void toReference (double &x, double &y)
 A function transforms system coords to coords in reference system.
virtual void fromReference (double &x, double &y)
 A function transforms from coords in reference system to system coords.
virtual void drawText (GLViewer_Object *theObject)
 Draw object text.
bool initList ()
 Initialize grid display list.
void timeIsOut ()
virtual void onSketchingStarted ()
virtual void onSketchingFinished ()
virtual void onTransformationStarted ()
virtual void onTransformationFinished ()
virtual void onSelectionModeChanged ()
virtual void unhilightDetected ()
virtual bool eventFilter (QObject *, QEvent *)
virtual GLViewer_ViewTransformercreateTransformer (int)
virtual GLViewer_ViewSketchercreateSketcher (int)
virtual GLViewer_SelectorcreateSelector ()
virtual void startOperations (QMouseEvent *)
virtual bool updateOperations (QMouseEvent *)
virtual void finishOperations (QMouseEvent *)
virtual void startOperations (QWheelEvent *)
virtual void onTransform (TransformState)
void initTransform (bool)
void drawRect (const QRect &theRect)
void endDrawRect ()
virtual void onSketch (SketchState)
void drawRect (const QRect &theRect)
void endDrawRect ()
GLViewer_SelectorcreateSelector ()
 Returns new selector.
GLViewer_ViewTransformercreateTransformer (int type)
 Returns new Transformer with type.
void transformCoordsToPS (double &x, double &y)
 Transforms point (x,y) in Viewer CS to Post Script CS.
void transformCoordsToHPGL (double &x, double &y)
 Transforms point (x,y) in Viewer CS to HPGL CS.
virtual void startOperations (QMouseEvent *)
 Starts any operations on mouse event.
virtual bool updateOperations (QMouseEvent *)
 Updates started operations on mouse event.
virtual void finishOperations (QMouseEvent *)
 Completes started operations on mouse event.
virtual void startOperations (QWheelEvent *)
 Starts any operations on mouse wheel event.
void onTransform (TransformState)
void selectVisualId (ViewType)
virtual QPaintDevice * getPaintDevice ()
virtual void contextMenuEvent (QContextMenuEvent *e)
virtual void paintEvent (QPaintEvent *)
 EVENTS.
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseDoubleClickEvent (QMouseEvent *)
virtual void keyPressEvent (QKeyEvent *)
virtual void keyReleaseEvent (QKeyEvent *)
virtual void wheelEvent (QWheelEvent *)
virtual void reset ()=0
 TO BE REDEFINED.
virtual void pan (int, int)=0
virtual void setCenter (int, int)=0
virtual void zoom (int, int, int, int)=0
virtual void fitRect (const QRect &)=0
virtual void fitSelect ()=0
virtual void fitAll (bool keepScale=false, bool withZ=true)=0
virtual void initializeGL ()
 A function is called before first display of window (create OpenGL scene)
virtual void paintGL ()
 A function is called in earch paint event of window.
virtual void resizeGL (int, int)
 A function is called in earch resize event of window.
virtual void paintEvent (QPaintEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void mouseReleaseEvent (QMouseEvent *)
virtual void enterEvent (QEvent *)
virtual void leaveEvent (QEvent *)

Static Protected Member Functions

static void drawRectangle (GLViewer_Rect *, GLfloat, GLfloat=0, QColor=Qt::black, bool=false, QColor=Qt::white)
 Draw basic primitives: rectangle, contour, polygon, vertex, cross, arrow.
static void drawContour (GLViewer_Rect *, QColor, GLfloat, GLushort, bool)
static void drawContour (const GLViewer_PntList &, QColor, GLfloat)
static void drawPolygon (GLViewer_Rect *, QColor, GLushort, bool)
static void drawPolygon (const GLViewer_PntList &, QColor)
static void drawVertex (GLfloat, GLfloat, QColor)
static void drawCross (GLfloat, GLfloat, QColor)
static void drawArrow (const GLfloat red, const GLfloat green, const GLfloat blue, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLboolean=GL_FALSE)
static void createCursors ()
 STATICS.
static void destroyCursors ()
static QCursor * getHandCursor ()
static void setHandCursor (const QCursor &newCursor)
static QCursor * getPanCursor ()
static void setPanCursor (const QCursor &newCursor)
static QCursor * getPanglCursor ()
static void setPanglCursor (const QCursor &newCursor)
static QCursor * getZoomCursor ()
static void setZoomCursor (const QCursor &newCursor)

Protected Attributes

QColor myNColor
 A normal color.
QColor myHColor
 A highlight color.
QColor mySColor
 A select color.
float myLineWidth
 A line width.
int myLineType
 A line type.
GLint myNumber
GLfloat * myXCoord
GLfloat * myYCoord
GLfloat myMarkerSize
QList< int > myHNumbers
QList< int > myUHNumbers
QList< int > mySelNumbers
QList< int > myCurSelNumbers
QList< int > myUSelNumbers
QList< int > myPrevHNumbers
TColStd_SequenceOfInteger mySelectedIndexes
GLboolean myIsClosed
GLboolean myHighSelAll
GLboolean myHighFlag
bool myHighFlag
int myWidth
int myHeight
QColor myCol
 Compass color.
int mySize
 Compass diameter.
int myPos
 Compass position.
bool myIsVisible
 Compass invisible status.
int myArrowWidthTop
 Width of wide part of arrow.
int myArrowWidthBottom
 Width of base part of arrow.
int myArrowHeightTop
 Height of arrow header.
int myArrowHeightBottom
 Height of arrow cut on bottom.
GLViewer_TexFontmyFont
 Compass font.
bool isGenereted
 Status of generated font.
bool myUpdateAll
 Flag of updating viewer after highlight.
GLViewer_Viewer2dmyGLViewer2d
GLViewer_ObjectmyLastPicked
 Highlighted object.
bool myLastPickedChanged
 = true if after last MoveTo method calling highlight object is changed
ObjList myActiveObjects
 List of active object.
ObjList myInactiveObjects
 List of inactive object.
ObjList mySelectedObjects
 List of selected objects.
int mySelCurIndex
 Selected object iterator.
GLfloat myXhigh
 X coordinate of mouse cursor.
GLfloat myYhigh
 Y coordinate of mouse cursor.
Quantity_NameOfColor myHighlightColor
 Color for highlight.
Quantity_NameOfColor mySelectionColor
 Color for selection.
GLboolean myHFlag
 If = false - moveTo method is not any highlighting.
GLboolean mySFlag
 If = false - select method is not any select.
int myTolerance
 Tolerance in window pixels for highlghting and selection methods.
float myXScale
 X Scale factor.
float myYScale
 Y scale factor.
QList< GLViewer_Object * > myObjects
 List of objects.
GLuint myTextList
 List generated textures.
QString myObjectType
 Type of supporting object.
int myPriority
 Dislay priority.
QFont myFont
 Default font for drawGLText() method.
DisplayTextFormat myTextFormat
 Default text displaying format for drawGLText() method.
GLfloat myTextScale
 Scale factor for text string draw, by default 0.125 (used only with text format DTF_TEXTURE_SCALABLE)
float myLeft
float myRight
float myTop
float myBottom
bool myIsEmpty
GLuint myGridList
GLfloat myGridColor [3]
GLfloat myAxisColor [3]
GLfloat myGridHeight
GLfloat myGridWidth
GLfloat myWinW
GLfloat myWinH
GLfloat myXSize
GLfloat myYSize
GLfloat myXPan
 Window offset along X direction.
GLfloat myYPan
 Window offset along Y direction.
GLfloat myXScale
 X scale factor.
GLfloat myYScale
 Y scale factor.
GLfloat myLineWidth
GLfloat myCenterWidth
GLint myCenterRadius
GLint myScaleFactor
GLboolean myIsUpdate
QString myName
 Object name.
QString myType
 Object type.
GLViewer_RectmyRect
 Object base rect.
GLViewer_RectmyUpdateRect
 Update object rect (after some viewer transformations)
GLViewer_TextmyGLText
 Object GLText.
GLfloat myXGap
 Gap for X direction of rect.
GLfloat myYGap
 Gap for Y direction of rect.
GLfloat myZoom
GLboolean myIsHigh
 Highlight status.
GLboolean myIsSel
 Selectt status.
GLViewer_DrawermyDrawer
 Object drawer.
GLViewer_AspectLinemyAspectLine
 Line aspect for object presentation.
QString myToolTipText
 Objet tool tip text.
bool isToolTipHTML
 HTML object tool tip status.
SUIT_DataOwnermyOwner
GLViewer_GroupmyGroup
 Object Group.
GLViewer_ViewermyViewer
bool myLocked
QSize myMinRectSize
GLViewer_ContextmyGLContext
 Current context.
QString myText
float myXPos
float myYPos
QColor myColor
DisplayTextFormat myDTF
GLViewer_SelectormySelector
SelectionMode mySelMode
GLViewer_ViewSketchermySketcher
GLViewer_ViewTransformermyTransformer
int myType
QCursor mySavedCursor
bool mySavedMouseTrack
QPoint myStart
QPoint myCurr
int myButtonState
int myMajorBtn
QRubberBand * myRectBand
 selection rectangle rubber band
voidmyData
QList< GLViewer_Drawer * > myDrawers
 Map of active drawers.
GLViewer_ViewPortmyVP
bool myEnableSketching
bool myEnableTransform
bool myPaintersRedrawing

Static Protected Attributes

static int panBtn
static int zoomBtn
static int fitRectBtn
static int panGlobalBtn
static int acccelKey
static int sketchBtn
static int rotateBtn

Private Slots

void showTip ()
void keyEvent (QKeyEvent *)
void mouseEvent (QMouseEvent *)
void wheelEvent (QWheelEvent *)

Private Member Functions

void drawMarker (float &x, float &y, float &radius, QColor &color, GLViewer_AspectLine *aspect)
 Draws marker in point (x,y) of.
void init ()
 Initializes font parameters.
void hideTipAndSleep ()
void wakeup (int mseconds=TIP_TIME)
void handleMouseMove (QMouseEvent *)
void handleMousePress (QMouseEvent *)
void handleMouseRelease (QMouseEvent *)
void handleWheel (QWheelEvent *)
bool testRotation (QMouseEvent *)
 Rotation transformation.
void createActions ()
void createToolBar ()
void initialize ()
void cleanup ()
void getBackgroundRectInViewerCS (double &left, double &top, double &right, double &bottom)
 Auxiliary function. Returns rect of window background in viewer coordinate system.

Private Attributes

double myX0
 The coordinates of origin in the reference CS.
double myY0
double myXUnit
 The lengths of axis units in the reference unit.
double myYUnit
double myRotation
 The rotation in radians relative to reference CS.
CSType myType
 In the polar CS myYUnit is ignored, but myXUnit is the unit of polar radius.
int myNbSymbols
 Number of characters in the font texture.
int * myWidths
 Array of letter width.
int * myPositions
 Array of letter positions in texture.
QFont myQFont
 Pointer to base font.
GLuint myTexFont
 Font texture ID.
int mySeparator
 Separator between letters.
bool myIsResizeable
 Flag controlling scalability of this texmapped font.
GLuint myMinMagFilter
 Min/mag filter.
int myFontHeight
 Font height.
int myMaxRowWidth
 Diagnostic information.
GLfloat myX
GLfloat myY
GLViewer_Pnt myPnt1
GLViewer_Pnt myPnt2
GLfloat myA
GLfloat myB
GLfloat myC
GLViewer_PntListmyPoints
OGList myList
 List of objects.
int mySelObjNum
 This number needs for synchranization group with viewport drag methods.
QByteArray myByteArray
GLViewer_ViewPort2dmypViewPort
QTimer * mypTimer
QPoint myPoint
QLabel * mypLabel
GLint myWidth
 width of window
GLint myHeight
 height of window
GLfloat myZScale
 Scale along Z direction.
GLfloat myZPan
 Window offset along Z direction.
GLfloat myRotationStartX
GLfloat myRotationStartY
GLfloat myRotationStartZ
GLfloat myRotationAngle
GLfloat myRotationCenterX
GLfloat myRotationCenterY
GLfloat myRotationCenterZ
GLfloat myRotationAnglePrev
GLboolean myStart
GLViewer_ViewPort2dmyViewPort
bool isLoadBackground
 True if background is loaded.
QString myBackgroundFile
 File name of background image.
GLuint texName
 Texture id of loaded background image.
int myIW
 Width of background image.
int myIH
 Height of background image.
int myBackgroundSize
 Size of background image.
QRect myToolTipRect
bool isExportMode
 Needs for export repaint.

Static Private Attributes

static int apppendKey
static int nCounter
static QCursor * defCursor
static QCursor * panglCursor
static QCursor * handCursor
static QCursor * panCursor
static QCursor * zoomCursor
static QCursor * rotCursor
static QCursor * sketchCursor

Friends

class GLViewer_ViewSketcher
class GLViewer_ViewTransformer

Detailed Description

GLViewer_AspectLine Substitution of Prs2d_AspectLine for OpenGL

GLViewer_Selector Base class for object selection in SUIT-based application

Class GLViewer_Object Base Object for all GLViewer objects.

Class GLViewer_Group Group of GLViewer_Objects for synchronized moving.

Class GLViewer_Grid 2D rectangular grid for GLViewer Grid is adapt cells for current view.

Class GLViewer_Poly Polygon for 2d detection.

Class GLViewer_Segment Segment for 2d detection.

Class GLViewer_Rect Substitution of QRect for OpenGL.

Struct GLViewer_Pnt Substitution of QPoint for OpenGL.

Struct GLViewer_TexFindId Structure for srorage information about texture font.

Struct GLViewer_TexIdStored Structure for store information about texture.

Class GLViewer_Compass Class implement representatiof of compass in one of corner in GLViewer.

Compass it's a some round visual pointer rotated with view window and located in fixed place (in one fixed corner)

If you move one or more objects from group, than all objects from group is moved If group is empty, it must be deleted

Definition at line 43 of file GLViewer_AspectLine.h.


Member Enumeration Documentation

anonymous enum

Text position relatively object.

Enumerator:
GLText_Center 
GLText_Left 
GLText_Right 
GLText_Top 
GLText_Bottom 

Definition at line 192 of file GLViewer_Drawer.h.

anonymous enum

Actions ID.

Enumerator:
DumpId 
FitAllId 
FitRectId 
FitSelectId 
ZoomId 
PanId 
GlobalPanId 
ResetId 

Definition at line 57 of file GLViewer_ViewFrame.h.

A type of coordinate system.

Enumerator:
Cartesian 
Polar 

Definition at line 48 of file GLViewer_CoordSystem.h.

Type of sketcher operation.

Enumerator:
None 
Polyline 
Arc 
Curve 
Scribble 
Oval 
Rectangle 

Definition at line 77 of file GLViewer_Viewer2d.h.

Type of paper for export to vector format.

Enumerator:
A1 
A2 
A3 
A4 
A5 

Definition at line 98 of file GLViewer_Viewer2d.h.

  {
    A1=0,
    A2,
    A3,
    A4,
    A5
  };

Position of compass.

Enumerator:
TopLeft 
TopRight 
BottomLeft 
BottomRight 

Definition at line 51 of file GLViewer_Compass.h.

Enumerator:
NoSelection 
Single 
Multiple 

Definition at line 64 of file GLViewer_Viewer.h.

Enumerator:
NoSketching 
Rect 
UserSketching 

Definition at line 67 of file GLViewer_Viewer.h.

enum GLVIEWER_API::SketchState [protected]
Enumerator:
Debut 
EnTrain 
Fin 

Definition at line 221 of file GLViewer_Viewer.h.

{ Debut, EnTrain, Fin };
enum GLVIEWER_API::TransformState [protected]
Enumerator:
Debut 
EnTrain 
Fin 

Definition at line 172 of file GLViewer_Viewer.h.

{ Debut, EnTrain, Fin };
Enumerator:
NoTransform 
Reset 
FitAll 
FitRect 
FitSelect 
Zoom 
PanGlobal 
Pan 
Rotate 
UserTransform 

Definition at line 65 of file GLViewer_Viewer.h.

Type of export vector file.

Enumerator:
POST_SCRIPT 
HPGL 

Definition at line 88 of file GLViewer_Viewer2d.h.

  {
    POST_SCRIPT,
    HPGL
#ifdef WIN32
    , ENH_METAFILE
#endif
  };
enum GLVIEWER_API::ViewType [protected]
Enumerator:
Type2D 
Type3D 

Definition at line 96 of file GLViewer_ViewPort.h.

{ Type2D, Type3D };

Constructor & Destructor Documentation

A destructor.

A destructor.

A destructor.

A desructor.

A destructor.

virtual GLVIEWER_API::~GLViewer_Drawer ( ) [virtual]

A destructor.

virtual GLVIEWER_API::~GLViewer_Poly ( ) [virtual]
virtual GLVIEWER_API::~GLViewer_Object ( ) [virtual]

A destructor.

A destructor.

virtual GLVIEWER_API::~GLViewer_ViewManager ( ) [virtual]

A destructor.


Member Function Documentation

static int GLVIEWER_API::accelKey ( ) [inline, static]

Sets/returns acceleration key ( CTRL by default )

Definition at line 149 of file GLViewer_Viewer.h.

{ return acccelKey; }
void GLVIEWER_API::activateAllDrawers ( bool  onlyUpdate,
GLboolean  swap = GL_FALSE 
)

Updates all drawers with new scale factor.

void GLVIEWER_API::activateDrawer ( GLViewer_Object theObject,
bool  onlyUpdate,
GLboolean  swap = GL_FALSE 
)

Activates drawer for.

Parameters:
theObject
void GLVIEWER_API::activateDrawers ( QList< GLViewer_Object * > &  theObjects,
bool  onlyUpdate,
GLboolean  swap = GL_FALSE 
)

Activates drawers for objects from list.

Parameters:
theObjectsonly
virtual void GLVIEWER_API::addObject ( GLViewer_Object theObject) [inline, virtual]

Adds object to drawer display list.

Definition at line 230 of file GLViewer_Drawer.h.

{ myObjects.append( theObject ); }
bool GLVIEWER_API::addOrRemoveSelected ( int  index)

Adds or remove selected number.

Adds point to polygon.

Definition at line 173 of file GLViewer_Geom.h.

{ myPoints->append( pnt ); }

Adds item for change background color.

void GLVIEWER_API::addSelected ( const TColStd_SequenceOfInteger &  )

Adds selected numbers.

void GLVIEWER_API::addToolTip ( QString  theTTText,
QRect  theTTRect 
)

A function add the tool tip with text theTTText on theTTRect rect to the widget window.

static int GLVIEWER_API::appendKey ( ) [inline, static]

Sets/returns the key for appending selected objects ( SHIFT by default )

Definition at line 77 of file GLViewer_Selector.h.

{ return apppendKey; }
virtual QColor GLVIEWER_API::backgroundColor ( ) const [virtual]

Returns background color.

float GLVIEWER_API::bottom ( ) const [inline]

Definition at line 81 of file GLViewer_Geom.h.

{ return myBottom; }

Here is the caller graph for this function:

int GLVIEWER_API::buttonState ( ) const [inline]

Returns current state of mouse/sys kbd buttons.

Definition at line 212 of file GLViewer_Viewer.h.

{ return myButtonState; }
virtual void GLVIEWER_API::checkSelection ( int  ,
bool  ,
int   
) [virtual]
virtual void GLVIEWER_API::checkSelection ( int  ,
bool  ,
int   
) [pure virtual]

Checks selection state and emits 'selSelectionDone' or 'selSelectionCancel'.

Should be called by after non-interactive selection.

void GLVIEWER_API::cleanup ( ) [private]
virtual void GLVIEWER_API::clear ( ) [inline, virtual]

Clears drawer display list.

Definition at line 232 of file GLViewer_Drawer.h.

{ myObjects.clear(); }
void GLVIEWER_API::clearHighlighted ( bool  updateViewer)

A function clear highlighted object information.

void GLVIEWER_API::clearSelected ( bool  updateViewer)

A function clear selection object information.

static void GLVIEWER_API::clearTextBases ( ) [static]

Clears all generated fonts.

virtual void GLVIEWER_API::compute ( ) [virtual]
virtual void GLVIEWER_API::compute ( ) [pure virtual]

Main method. Computes all needed information about object for presentation in drawer.

virtual void GLVIEWER_API::compute ( ) [virtual]
virtual void GLVIEWER_API::compute ( ) [virtual]

Returns index of position, else -1.

bool GLVIEWER_API::contains ( GLViewer_Pnt  pnt) [inline]

Checks staus of contains point.

Definition at line 110 of file GLViewer_Geom.h.

                                           { return ( pnt.x() > left() &&
                                                      pnt.x() < right() &&
                                                      pnt.y() > bottom() &&
                                                      pnt.y() < top() ); }

Here is the call graph for this function:

virtual void GLVIEWER_API::contextMenuEvent ( QContextMenuEvent *  e) [protected, virtual]
virtual void GLVIEWER_API::contextMenuPopup ( QMenu *  ) [virtual]
virtual void GLVIEWER_API::contextMenuPopup ( QMenu *  ) [virtual]
void GLVIEWER_API::contextMenuRequested ( QContextMenuEvent *  ) [signal]

Returns number ob objects.

int GLVIEWER_API::Count ( ) const [inline]

Returns number of point.

Definition at line 176 of file GLViewer_Geom.h.

{ return myPoints->count(); }
virtual void GLVIEWER_API::create ( float  ,
float  ,
bool   
) [virtual]

Redefined method.

virtual void GLVIEWER_API::create ( float  ,
float  ,
bool   
) [virtual]

Redefined method.

virtual void GLVIEWER_API::create ( float  ,
float  ,
bool   
) [virtual]

Redefined method.

virtual void GLVIEWER_API::create ( float  xScale,
float  yScale,
bool  onlyUpdate 
) [pure virtual]

Main method which drawing object in GLViewer.

static void GLVIEWER_API::createCursors ( ) [static, protected]

STATICS.

virtual GLViewer_Drawer* GLVIEWER_API::createDrawer ( ) [pure virtual]

Creates correspond drawer.

virtual GLViewer_Selector* GLVIEWER_API::createSelector ( ) [protected, virtual]

Returns new selector.

virtual GLViewer_ViewSketcher* GLVIEWER_API::createSketcher ( int  ) [protected, virtual]
virtual GLViewer_ViewTransformer* GLVIEWER_API::createTransformer ( int  ) [protected, virtual]

Returns new Transformer with type.

Parameters:
type

Redefined method.

virtual BlockStatus GLVIEWER_API::currentBlock ( ) [inline, virtual]

Returns blocking status for current started operations.

Definition at line 93 of file GLViewer_ViewPort.h.

{ return BS_NoBlock; }

Returns true if after last MoveTo method calling highlight object is changed.

Definition at line 148 of file GLViewer_Context.h.

{ return myLastPickedChanged; }
void* GLVIEWER_API::data ( ) const [inline]

Returns result of sketching.

Definition at line 209 of file GLViewer_Viewer.h.

{ return myData; }
void GLVIEWER_API::deleteObject ( GLViewer_Object theObject,
bool  updateViewer = true 
)

A function remove theObject from context and update viewer if updateViewer = true.

Clears all generated textures.

static void GLVIEWER_API::destroyCursors ( ) [static, protected]
virtual void GLVIEWER_API::detect ( int  x,
int  y 
) [pure virtual]

Highlights in point (x,y)

virtual void GLVIEWER_API::detect ( int  ,
int   
) [virtual]
void GLVIEWER_API::dragingObjects ( float  x,
float  y,
bool  once = false 
)

Dragging operation.

Once = true, if this operation calls only one time for all object

Draws grid.

static void GLVIEWER_API::drawArrow ( const GLfloat  red,
const GLfloat  green,
const GLfloat  blue,
GLfloat  ,
GLfloat  ,
GLfloat  ,
GLfloat  ,
GLfloat  ,
GLfloat  ,
GLfloat  ,
GLboolean  = GL_FALSE 
) [static, protected]
static void GLVIEWER_API::drawContour ( GLViewer_Rect ,
QColor  ,
GLfloat  ,
GLushort  ,
bool   
) [static, protected]
static void GLVIEWER_API::drawContour ( const GLViewer_PntList ,
QColor  ,
GLfloat   
) [static, protected]
static void GLVIEWER_API::drawCross ( GLfloat  ,
GLfloat  ,
QColor   
) [static, protected]
void GLVIEWER_API::drawGLText ( QString  text,
float  x,
float  y,
int  hPosition = GLText_Center,
int  vPosition = GLText_Center,
QColor  color = Qt::black,
bool  smallFont = false 
)

Draw text string.

Parameters:
text- the text string
x- x coord
y- y coord
hPosition- horizontal alignment
vPosition- vertical alignment
color- text color
smallFont- font format
void GLVIEWER_API::drawMarker ( float &  x,
float &  y,
float &  radius,
QColor &  color,
GLViewer_AspectLine aspect 
) [private]

Draws marker in point (x,y) of.

Parameters:
radiuswith
colorand
aspect
static void GLVIEWER_API::drawPolygon ( GLViewer_Rect ,
QColor  ,
GLushort  ,
bool   
) [static, protected]
static void GLVIEWER_API::drawPolygon ( const GLViewer_PntList ,
QColor   
) [static, protected]
void GLVIEWER_API::drawRect ( const QRect &  theRect) [protected]
void GLVIEWER_API::drawRect ( const QRect &  theRect) [protected]
static void GLVIEWER_API::drawRectangle ( GLViewer_Rect theRect,
QColor  = Qt::black 
) [static]

Draw rectangle with predefined color.

static void GLVIEWER_API::drawRectangle ( GLViewer_Rect ,
GLfloat  ,
GLfloat  = 0,
QColor  = Qt::black,
bool  = false,
QColor  = Qt::white 
) [static, protected]

Draw basic primitives: rectangle, contour, polygon, vertex, cross, arrow.

void GLVIEWER_API::drawString ( QString  theStr,
GLdouble  theX = 0.0,
GLdouble  theY = 0.0,
GLfloat  theScale = 1.0 
)

Drawing string theStr in point with coords theX and theY.

void GLVIEWER_API::drawText ( const QString &  text,
GLfloat  xPos,
GLfloat  yPos,
const QColor &  color,
QFont *  aFont,
int  theSeparator,
DisplayTextFormat  = DTF_BITMAP 
)

Draw text string.

Parameters:
text- the text string
xPos- x coord
yPos- y coord
color- text color
aFont- base font of text
theSeparator- letter separator
DisplayTextFormat- text format
virtual void GLVIEWER_API::drawText ( GLViewer_Object theObject) [protected, virtual]

Draw object text.

void GLVIEWER_API::drawTexture ( GLuint  texture,
GLint  size,
GLfloat  x,
GLfloat  y 
)

Draw square texture.

Parameters:
texture- the texture ID
size- the size of square texture
x- x coord
y- y coord
void GLVIEWER_API::drawTexture ( GLuint  texture,
GLint  x_size,
GLint  y_size,
GLfloat  x,
GLfloat  y 
)

Draw texture.

Parameters:
texture- the texture ID
x_size- the horizontal size of texture
y_size- the vertical size of texture
x- x coord
y- y coord
void GLVIEWER_API::drawTexturePart ( GLuint  texture,
GLfloat  x_ratio,
GLfloat  y_ratio,
GLfloat  x_size,
GLfloat  y_size,
GLfloat  x,
GLfloat  y,
GLfloat  scale = 0 
)

Draw texture part.

Parameters:
texture- the texture ID
x_ratio- the horizontal ratio of texture part
y_ratio- the vertical ratio of texture part
x_size- the horizontal size of texture
y_size- the vertical size of texture
x- x coord
y- y coord
scale- common scale factor ( if = 0, use drawer scales )
static void GLVIEWER_API::drawVertex ( GLfloat  ,
GLfloat  ,
QColor   
) [static, protected]
virtual QImage GLVIEWER_API::dumpView ( ) [virtual]
QByteArray GLVIEWER_API::encodedData ( const char *  ) const
virtual void GLVIEWER_API::enterEvent ( QEvent *  ) [protected, virtual]
void GLVIEWER_API::eraseObject ( GLViewer_Object theObject,
bool  updateViewer = true 
)

A function installing to theObject invisible status and update viewer if updateViewer = true.

virtual bool GLVIEWER_API::eventFilter ( QObject ,
QEvent *   
) [virtual]
virtual bool GLVIEWER_API::eventFilter ( QObject ,
QEvent *   
) [protected, virtual]
virtual bool GLVIEWER_API::eventFilter ( QObject ,
QEvent *   
) [virtual]
virtual bool GLVIEWER_API::eventFilter ( QObject ,
QEvent *   
) [virtual]
virtual void GLVIEWER_API::exec ( ) [virtual]
virtual void GLVIEWER_API::exec ( ) [virtual]
void GLVIEWER_API::exportNumbers ( QList< int > &  high,
QList< int > &  unhigh,
QList< int > &  sel,
QList< int > &  unsel 
)

Export numbers of heghlighted/selected markers.

void GLVIEWER_API::exportNumbers ( QList< int > &  high,
QList< int > &  unhigh,
QList< int > &  sel,
QList< int > &  unsel 
)

Export numbers of highlighted/selected lines.

A function repaints OpenGL scene in export mode.

virtual bool GLVIEWER_API::finishMove ( ) [inline, virtual]

Finaly recomputing object after moving.

Definition at line 186 of file GLViewer_Object.h.

{ return true; }
virtual void GLVIEWER_API::finishOperations ( QMouseEvent *  ) [inline, protected, virtual]

Definition at line 112 of file GLViewer_Viewer.h.

{}
virtual void GLVIEWER_API::finishOperations ( QMouseEvent *  ) [protected, virtual]

Completes started operations on mouse event.

virtual void GLVIEWER_API::finishPulling ( ) [inline, virtual]
Warning:
It is for ouv

Definition at line 122 of file GLViewer_Object.h.

{}
virtual void GLVIEWER_API::fitAll ( bool  keepScale = false,
bool  withZ = true 
) [protected, pure virtual]
virtual void GLVIEWER_API::fitRect ( const QRect &  ) [protected, pure virtual]
static int GLVIEWER_API::fitRectButton ( ) [inline, static]

Sets/returns mouse button used for fit area ( MB1 by default )

Definition at line 165 of file GLViewer_Viewer.h.

{ return fitRectBtn; }
virtual void GLVIEWER_API::fitSelect ( ) [protected, pure virtual]
QFont GLVIEWER_API::font ( ) const [inline]

Returns a default font used by drawGLText method.

Definition at line 377 of file GLViewer_Drawer.h.

{ return myFont; }

Here is the caller graph for this function:

const char* GLVIEWER_API::format ( int  theIndex = 0) const

Here is the caller graph for this function:

static GLViewer_Text* GLVIEWER_API::fromByteCopy ( QByteArray  ) [static]

A function for decoding object from the byte copy.

A function is used for copy-past technollogy in past method

static GLViewer_AspectLine* GLVIEWER_API::fromByteCopy ( QByteArray  ) [static]

A function for decoding object from the byte copy.

A function is used for copy-past technollogy in past method

virtual void GLVIEWER_API::fromReference ( double &  x,
double &  y 
) [protected, virtual]

A function transforms from coords in reference system to system coords.

Generating font texture.

Returns height of arrow cut on bottom.

Definition at line 119 of file GLViewer_Compass.h.

Returns height of arrow header.

Definition at line 114 of file GLViewer_Compass.h.

{return myArrowHeightTop;};

Returns width of base part of arrow.

Definition at line 109 of file GLViewer_Compass.h.

{return myArrowWidthBottom;};

Returns width of wide part of arrow.

Definition at line 104 of file GLViewer_Compass.h.

{ return myArrowWidthTop; }
virtual GLViewer_AspectLine* GLVIEWER_API::getAspectLine ( ) const [inline, virtual]

Returns acpect line of object presentation.

Definition at line 164 of file GLViewer_Object.h.

{ return myAspectLine; }
void GLVIEWER_API::getBackgroundRectInViewerCS ( double &  left,
double &  top,
double &  right,
double &  bottom 
) [private]

Auxiliary function. Returns rect of window background in viewer coordinate system.

virtual QByteArray GLVIEWER_API::getByteCopy ( ) [virtual]
QByteArray GLVIEWER_API::getByteCopy ( ) const

A function for coding object to the byte copy.

A function is used for copy-past technollogy in copy method

QByteArray GLVIEWER_API::getByteCopy ( ) const

A function for coding object to the byte copy.

A function is used for copy-past technollogy in copy method

virtual QByteArray GLVIEWER_API::getByteCopy ( ) [virtual]
virtual QByteArray GLVIEWER_API::getByteCopy ( ) [virtual]

A function for coding object to the byte copy.

A function is used for copy-past technollogy in copy method

virtual QByteArray GLVIEWER_API::getByteCopy ( ) [virtual]
QColor GLVIEWER_API::getColor ( ) const [inline]

Returns text color.

Definition at line 71 of file GLViewer_Text.h.

{ return myColor; }
QColor GLVIEWER_API::getColor ( ) [inline]

Returns color.

Definition at line 99 of file GLViewer_Compass.h.

{ return myCol; }

Definition at line 56 of file GLViewer_Selector2d.h.

{ return myGLContext; }

Returns highlighted object.

Definition at line 146 of file GLViewer_Context.h.

{ return myLastPicked; }
static QCursor* GLVIEWER_API::getDefaultCursor ( ) [inline, static]

Definition at line 115 of file GLViewer_ViewPort.h.

{ return defCursor; }

Sets text format BITMAP or TEXTURE.

Definition at line 97 of file GLViewer_Text.h.

{ return myDTF; }

Returns current drawer.

Definition at line 76 of file GLViewer_Object.h.

{ return myDrawer; }
const QList<GLViewer_Drawer*>& GLVIEWER_API::getDrawers ( ) const [inline]

Returns all drawers.

Definition at line 124 of file GLViewer_Viewer2d.h.

{ return myDrawers; }

Returns first active object.

Definition at line 134 of file GLViewer_Context.h.

{ return *( myActiveObjects.begin() ); }
QFont GLVIEWER_API::getFont ( ) const [inline]

Returns text font.

Definition at line 76 of file GLViewer_Text.h.

{ return myQFont; }

Returns.

Returns context.

Definition at line 127 of file GLViewer_Viewer2d.h.

{ return myGLContext; }

Returns object GLText.

Definition at line 159 of file GLViewer_Object.h.

{ return myGLText; }

Definition at line 43 of file GLViewer_ViewManager.h.

{ return (GLViewer_Viewer*) myViewModel; }

Here is the call graph for this function:

GLViewer_Rect GLVIEWER_API::getGLVRect ( const QRect &  ) const

Translates rect in window CS to rect in global CS.

Returns object group.

static QCursor* GLVIEWER_API::getHandCursor ( ) [inline, static, protected]

Definition at line 105 of file GLViewer_ViewPort.h.

{ return handCursor; }
GLint GLVIEWER_API::getHeight ( ) const [inline]

Returns height of OpenGl Window.

Definition at line 62 of file GLViewer_Widget.h.

{ return myHeight; }

Returns text height.

int GLVIEWER_API::getHeight ( ) [inline]

Definition at line 242 of file GLViewer_BaseObjects.h.

{ return myWidth; }
void GLVIEWER_API::getLineColors ( QColor &  theNC,
QColor &  theHC,
QColor &  theSC 
) const

A function for getting line colors information.

Parameters:
theNCis normal color
theHCis highlight color
theSCis select color
int GLVIEWER_API::getLineType ( ) const [inline]

A function for getting information about line type.

Definition at line 90 of file GLViewer_AspectLine.h.

{ return myLineType; };
float GLVIEWER_API::getLineWidth ( ) const [inline]

A function for getting information about line width.

Definition at line 88 of file GLViewer_AspectLine.h.

{ return myLineWidth; };
float GLVIEWER_API::getMarkerSize ( ) const [inline]

Returns merker radius.

Definition at line 93 of file GLViewer_BaseObjects.h.

{ return myMarkerSize; }
QString GLVIEWER_API::getName ( ) const [inline]

Returns object name.

Definition at line 173 of file GLViewer_Object.h.

{ return myName; } 
GLint GLVIEWER_API::getNumber ( ) const [inline]

Returns number of points.

Definition at line 168 of file GLViewer_BaseObjects.h.

{ return myNumber; };
GLint GLVIEWER_API::getNumMarkers ( ) const [inline]

returns markers number

Definition at line 89 of file GLViewer_BaseObjects.h.

{ return myNumber; };
static GLViewer_Object* GLVIEWER_API::getObject ( QByteArray  ,
QString  theType 
) [static]

Get object from byte array.

static QList<GLViewer_Object*> GLVIEWER_API::getObjects ( QByteArray  ,
QString  theType 
) [static]

Gets objects from byte array.

OGList GLVIEWER_API::getObjects ( ) const [inline]

Definition at line 63 of file GLViewer_Group.h.

{ return myList; }
const ObjList& GLVIEWER_API::getObjects ( bool  isActive = true) [inline]

Returns list of context objects.

Returns:
active objects if isActive = true, else inactive objects

Definition at line 130 of file GLViewer_Context.h.

                        { return isActive ? myActiveObjects : myInactiveObjects; }
QString GLVIEWER_API::getObjectType ( ) const [inline]

Returns object type.

Needs for GLViewer_Drawer

Definition at line 168 of file GLViewer_Object.h.

{ return myType; } 
QString GLVIEWER_API::getObjectType ( ) const [inline]

Returns object type (needs for dynamic search of right drawer )

Definition at line 235 of file GLViewer_Drawer.h.

{ return myObjectType; }
void GLVIEWER_API::getOrigin ( double &  x,
double &  y 
) const

Returns the origin in reference system.

virtual GLViewer_Object* GLVIEWER_API::getOwner ( ) [inline, virtual]
Warning:
It is for ouv

Definition at line 247 of file GLViewer_Object.h.

{ return this; }
virtual QPaintDevice* GLVIEWER_API::getPaintDevice ( ) [inline, protected, virtual]

Definition at line 99 of file GLViewer_ViewPort.h.

{ return this; }
void GLVIEWER_API::getPan ( GLfloat &  xPan,
GLfloat &  yPan,
GLfloat &  zPan 
)

Returns offset parameters of Window in OpenGL global scene.

void GLVIEWER_API::getPan ( float &  ,
float &   
) const
static QCursor* GLVIEWER_API::getPanCursor ( ) [inline, static, protected]

Definition at line 107 of file GLViewer_ViewPort.h.

{ return panCursor; }
static QCursor* GLVIEWER_API::getPanglCursor ( ) [inline, static, protected]

Definition at line 109 of file GLViewer_ViewPort.h.

{ return panglCursor; }
int GLVIEWER_API::getPos ( ) [inline]

Returns position.

Definition at line 94 of file GLViewer_Compass.h.

{ return myPos; }
void GLVIEWER_API::getPosition ( float &  xPos,
float &  yPos 
) [inline]

Returns text position.

Definition at line 66 of file GLViewer_Text.h.

{ xPos = myXPos; yPos = myYPos; }
virtual int GLVIEWER_API::getPriority ( ) const [virtual]

Returns object priority.

int GLVIEWER_API::getPriority ( ) const [inline]

Returns object priority.

Definition at line 238 of file GLViewer_Drawer.h.

{ return myPriority; }
virtual GLViewer_Rect GLVIEWER_API::getPullingRect ( ) const [inline, virtual]
Warning:
It is for ouv

Definition at line 126 of file GLViewer_Object.h.

                                                   { return GLViewer_Rect(
                                myRect->left(), myRect->right(), myRect->top(), myRect->bottom() ); }

Here is the call graph for this function:

QRect GLVIEWER_API::getQRect ( const GLViewer_Rect ) const

Translates rect in global CS to rect in window CS.

virtual GLViewer_Rect* GLVIEWER_API::getRect ( ) const [inline, virtual]

Returns object rectungle.

Definition at line 132 of file GLViewer_Object.h.

{ return myRect; }
double GLVIEWER_API::getRotation ( ) const

Returns rotation angle of axes in reference system.

void GLVIEWER_API::getRotation ( GLfloat &  rotationAngle,
GLfloat &  rotationCenterX,
GLfloat &  rotationCenterY,
GLfloat &  rotationCenterZ 
)

Returns parameters of current rotation.

GLfloat GLVIEWER_API::getRotationAngle ( ) const [inline]

Returns rotation angle of Window in OpenGL global scene in degree.

Only in 2D

Definition at line 81 of file GLViewer_Widget.h.

{ return myRotationAnglePrev; }
void GLVIEWER_API::getRotationStart ( GLfloat &  rotationStartX,
GLfloat &  rotationStartY,
GLfloat &  rotationStartZ 
)

Returns start point of curren rotation of Window in OpenGL global scene.

static QCursor* GLVIEWER_API::getRotCursor ( ) [inline, static]

Definition at line 117 of file GLViewer_ViewPort.h.

{ return rotCursor; }
void GLVIEWER_API::getScale ( GLfloat &  xScale,
GLfloat &  yScale,
GLfloat &  zScale 
)

Returns scales on OpenGL scene along 3 directions.

in 2d scene zScale = 1.0

void GLVIEWER_API::getScale ( float &  ,
float &   
) const
virtual void GLVIEWER_API::getScale ( GLfloat &  xScale,
GLfloat &  yScale 
) const [inline, virtual]

Returns scale factors.

Definition at line 140 of file GLViewer_Object.h.

{ xScale = myXScale; yScale = myYScale;}
QList<int> GLVIEWER_API::getSelectedElements ( ) [inline]

Returns selected numbers.

Definition at line 100 of file GLViewer_BaseObjects.h.

{ return mySelNumbers; }
QList<int> GLVIEWER_API::getSelectedElements ( ) [inline]

Returns numbers of selected lines.

Definition at line 185 of file GLViewer_BaseObjects.h.

{ return mySelNumbers; }
int GLVIEWER_API::getSeparator ( ) [inline]

Returns text separator.

Definition at line 79 of file GLViewer_Text.h.

{ return mySeparator; }
int GLVIEWER_API::getSeparator ( ) [inline]

Returns separator between letters.

Definition at line 135 of file GLViewer_Drawer.h.

{ return mySeparator; }
void GLVIEWER_API::getSize ( float &  ,
float &   
) const
int GLVIEWER_API::getSize ( ) [inline]

Returns diameter.

Definition at line 89 of file GLViewer_Compass.h.

{ return mySize; }
static QCursor* GLVIEWER_API::getSketchCursor ( ) [inline, static]

Definition at line 119 of file GLViewer_ViewPort.h.

{ return sketchCursor; }
virtual void GLVIEWER_API::getStretching ( GLViewer_CoordSystem aSystem,
double &  theX,
double &  theY 
) [virtual]

Return how many times line width in aSystem system bigger than in current.

Returns height of string in pixels.

int GLVIEWER_API::getStringWidth ( QString  theString)

Returns width of string in pixels.

QString GLVIEWER_API::getText ( ) const [inline]

Definition at line 60 of file GLViewer_ToolTip.h.

{ return myText; }
QString GLVIEWER_API::getText ( ) const [inline]

Returns text.

Definition at line 61 of file GLViewer_Text.h.

{ return myText; }
virtual QString GLVIEWER_API::getToolTipText ( ) [inline, virtual]

Returns onject tool tip text.

Definition at line 196 of file GLViewer_Object.h.

{ return myToolTipText; }
virtual QString GLVIEWER_API::getType ( ) const [inline, virtual]

Definition at line 75 of file GLViewer_Viewer.h.

{ return Type(); }

Here is the call graph for this function:

Returns type of system.

void GLVIEWER_API::getUnits ( double &  x,
double &  y 
) const

Returns units along axes.

virtual GLViewer_Rect* GLVIEWER_API::getUpdateRect ( ) [pure virtual]

Returns update object rectangle.

Does not equal getRect() if object have a persistence to some viewer transformations

Returns parent GLViewer_ViewPort2d.

ViewPort2d because this class is not use for 3D Viewer

Definition at line 58 of file GLViewer_Widget.h.

{ return myViewPort; }

Here is the caller graph for this function:

QWidget* GLVIEWER_API::getViewWidget ( ) [inline]

Definition at line 92 of file GLViewer_ViewFrame.h.

{ return ( QWidget* )getViewPort(); };

Here is the call graph for this function:

bool GLVIEWER_API::getVisible ( ) [inline]

Returns visible status.

Definition at line 84 of file GLViewer_Compass.h.

{ return myIsVisible; };
virtual bool GLVIEWER_API::getVisible ( ) const [inline, virtual]

Returns visible object status.

Definition at line 189 of file GLViewer_Object.h.

{ return myIsVisible; }
virtual QString GLVIEWER_API::getVisualParameters ( ) [virtual]
GLint GLVIEWER_API::getWidth ( ) const [inline]

Returns width of OpenGl Window.

Definition at line 60 of file GLViewer_Widget.h.

{ return myWidth; }

Returns text width.

int GLVIEWER_API::getWidth ( ) [inline]

Definition at line 241 of file GLViewer_BaseObjects.h.

{ return myWidth; }

Returns object rect in window CS.

GLfloat* GLVIEWER_API::getXCoord ( ) const [inline]

Returns x coords.

Definition at line 82 of file GLViewer_BaseObjects.h.

{ return myXCoord; }
GLfloat* GLVIEWER_API::getXCoord ( ) const [inline]

Returns x coords.

Definition at line 161 of file GLViewer_BaseObjects.h.

{ return myXCoord; }
GLfloat* GLVIEWER_API::getYCoord ( ) const [inline]

Returns y coords.

Definition at line 84 of file GLViewer_BaseObjects.h.

{ return myYCoord; }
GLfloat* GLVIEWER_API::getYCoord ( ) const [inline]

Returns y coords.

Definition at line 163 of file GLViewer_BaseObjects.h.

{ return myYCoord; }
virtual GLfloat GLVIEWER_API::getZoom ( ) const [inline, virtual]
Warning:
It is for ouv

Definition at line 145 of file GLViewer_Object.h.

{ return myZoom; }
static QCursor* GLVIEWER_API::getZoomCursor ( ) [inline, static, protected]

Definition at line 111 of file GLViewer_ViewPort.h.

{ return zoomCursor; }

A default constructor.

GLVIEWER_API::GLViewer_AspectLine ( int  theType,
float  theWidth 
)

A conctructor by type and width of line.

Parameters:
theTypeequals 0 for normal line and 1 for strip line
theWidthis a width of new line
GLVIEWER_API::GLViewer_Compass ( const QColor &  color = QColor(0, 255, 0),
const int  size = 60,
const Position  pos = TopRight,
const int  WidthTop = 20,
const int  WidthBottom = 10,
const int  HeightTop = 25,
const int  HeightBottom = 7 
)

A constructor.

Parameters:
color- a color of compass
size- a diameter of compass
pos- a position
WidthTop- width of wide part of arrow
WidthBottom- width of base part of arrow
HeightTop- height of arrow header
HeightBottom- height of arrow cut on bottom

A constructor.

GLVIEWER_API::GLViewer_CoordSystem ( CSType  aType,
double  X0 = 0.0,
double  Y0 = 0.0,
double  XUnit = 1.0,
double  YUnit = 1.0,
double  Rotation = 0.0 
)

A constructor ( by default new system is identical to reference )

A constructor.

A default constructor.

GLVIEWER_API::GLViewer_Grid ( GLfloat  width,
GLfloat  height,
GLfloat  winW,
GLfloat  winH,
GLfloat  xSize,
GLfloat  ySize,
GLfloat  xPan,
GLfloat  yPan,
GLfloat  xScale,
GLfloat  yScale 
)

A constructor.

GLVIEWER_API::GLViewer_MarkerSet ( int  number = 1,
float  size = 5.0,
const QString &  toolTip = "GLMarker" 
)

A constructor.

Definition at line 48 of file GLViewer_MimeData.h.

:QMimeData(){};

A constructor.

Definition at line 47 of file GLViewer_Geom.h.

: myX( 0. ), myY( 0. ) {};
GLVIEWER_API::GLViewer_Pnt ( GLfloat  theX,
GLfloat  theY 
) [inline]

Definition at line 48 of file GLViewer_Geom.h.

: myX( theX ), myY( theY ) {}
GLVIEWER_API::GLViewer_Polyline ( int  number = 1,
float  size = 5.0,
const QString &  toolTip = "GLPolyline" 
)

Definition at line 71 of file GLViewer_Geom.h.

: myLeft(0.0), myRight(0.0), myTop(0.0), myBottom(0.0){}

Here is the caller graph for this function:

GLVIEWER_API::GLViewer_Rect ( float  theLeft,
float  theRight,
float  theTop,
float  theBottom 
) [inline]

Definition at line 72 of file GLViewer_Geom.h.

    : myLeft(theLeft), myRight(theRight), myTop(theTop), myBottom(theBottom) {}
GLVIEWER_API::GLViewer_Rect ( QRect  theRect) [inline]

Definition at line 74 of file GLViewer_Geom.h.

                                 {
    myLeft = ( float )theRect.left(); myRight = ( float )theRect.right();
    myTop = ( float )theRect.top(); myBottom = ( float )theRect.bottom(); }
GLVIEWER_API::GLViewer_Segment ( const GLViewer_Pnt thePnt1,
const GLViewer_Pnt thePnt2 
)
GLVIEWER_API::GLViewer_Segment ( const GLViewer_Pnt thePnt,
const GLfloat  theA,
const GLfloat  theB,
const GLfloat  theC 
)

Ordinary segment construction.

Construction of a ray with given equation Ax + By + C = 0

A default constructor.

GLVIEWER_API::GLViewer_TexFont ( QFont *  theFont,
int  theSeparator = 2,
bool  theIsResizeable = false,
GLuint  theMinMagFilter = GL_LINEAR 
)

A constructor.

GLVIEWER_API::GLViewer_Text ( const QString &  ,
float  xPos = 0.0,
float  yPos = 0.0,
const QColor &  color = QColor(0, 255, 0) 
)
GLVIEWER_API::GLViewer_Text ( const QString &  ,
float  xPos,
float  yPos,
const QColor &  ,
QFont  theFont,
int  theSeparator 
)
GLVIEWER_API::GLViewer_TextObject ( const QString &  ,
float  xPos = 0,
float  yPos = 0,
const QColor &  color = QColor(0, 255, 0),
const QString &  toolTip = "GLText" 
)
GLVIEWER_API::GLViewer_Viewer ( const QString &  title)

Here is the caller graph for this function:

GLVIEWER_API::GLViewer_Viewer2d ( const QString &  title)

A constructor.

GLVIEWER_API::GLViewer_ViewManager ( SUIT_Study theStudy,
SUIT_Desktop theDesktop 
)
GLVIEWER_API::GLViewer_ViewPort ( QWidget *  parent)
GLVIEWER_API::GLViewer_Widget ( QWidget *  theParent,
const char *  theName = 0 
)

A constructor.

Parameters using for QOGLWidget as is

void GLVIEWER_API::handleMouseMove ( QMouseEvent *  ) [private]
void GLVIEWER_API::handleMousePress ( QMouseEvent *  ) [private]
void GLVIEWER_API::handleMouseRelease ( QMouseEvent *  ) [private]
void GLVIEWER_API::handleWheel ( QWheelEvent *  ) [private]
bool GLVIEWER_API::HasIntersection ( const GLViewer_Segment theOther) const
virtual bool GLVIEWER_API::HasIntersection ( const GLViewer_Segment theSegment) const [virtual]
float GLVIEWER_API::height ( ) const [inline]

Definition at line 84 of file GLViewer_Geom.h.

{ return fabs( myTop - myBottom ); }
virtual GLboolean GLVIEWER_API::highlight ( GLfloat  x,
GLfloat  y,
GLfloat  tol = 15.0,
GLboolean  isCircle = GL_FALSE 
) [virtual]
virtual GLboolean GLVIEWER_API::highlight ( GLfloat  x,
GLfloat  y,
GLfloat  tol,
GLboolean  isCircle = GL_FALSE 
) [pure virtual]

Computes highlight presentation.

Parameters:
x- x coord
y- y coord
tol- tolerance of detecting
isCircle- = true if sensitive area of detection is round
virtual GLboolean GLVIEWER_API::highlight ( GLfloat  x,
GLfloat  y,
GLfloat  tol = 15.0,
GLboolean  isCircle = GL_FALSE 
) [virtual]
virtual GLboolean GLVIEWER_API::highlight ( GLfloat  x,
GLfloat  y,
GLfloat  tol,
GLboolean  isCircle = GL_FALSE 
) [virtual]
Quantity_NameOfColor GLVIEWER_API::HighlightColor ( ) [inline]

Returns highlight color.

Definition at line 91 of file GLViewer_Context.h.

{ return myHighlightColor; }
void GLVIEWER_API::init ( ) [private]

Initializes font parameters.

virtual bool GLVIEWER_API::initializeFromByteCopy ( QByteArray  ) [virtual]
virtual bool GLVIEWER_API::initializeFromByteCopy ( QByteArray  ) [virtual]
virtual bool GLVIEWER_API::initializeFromByteCopy ( QByteArray  ) [virtual]

A function for decoding object from the byte copy.

A function is used for copy-past technollogy in past method

virtual bool GLVIEWER_API::initializeFromByteCopy ( QByteArray  ) [virtual]
virtual void GLVIEWER_API::initializeGL ( ) [protected, virtual]

A function is called before first display of window (create OpenGL scene)

bool GLVIEWER_API::initList ( ) [protected]

Initialize grid display list.

A function set iterator of selected objects on first object.

void GLVIEWER_API::initTransform ( bool  ) [protected]
virtual void GLVIEWER_API::insertEnding ( VectorFileType  aType,
QFile &  hFile 
) [virtual]

Inserts common text lines ending file of.

Parameters:
aType
virtual void GLVIEWER_API::insertHeader ( VectorFileType  aType,
QFile &  hFile 
) [virtual]

Inserts common text lines starting file of.

Parameters:
aType
int GLVIEWER_API::insertObject ( GLViewer_Object theObject,
bool  display = false,
bool  isActive = true 
)

Insert new object in context.

Parameters:
theObject- inserting object
display- true if needs display object immediatly after inserting, else false
isActive- true if needs inserting object in active list
GLboolean GLVIEWER_API::isClosed ( ) const [inline]

Checks closed status of polyline.

Definition at line 173 of file GLViewer_BaseObjects.h.

{ return myIsClosed; }
virtual bool GLVIEWER_API::IsCovers ( const GLViewer_Poly thePoly) const [virtual]

Returns true if a other polygon covers this polygon.

virtual bool GLVIEWER_API::IsCovers ( const GLViewer_Rect theRect) const [virtual]

Likes the above function.

bool GLVIEWER_API::isEmpty ( ) const [inline]

Checks empty status.

Definition at line 102 of file GLViewer_Geom.h.

{ return myIsEmpty; }
virtual GLboolean GLVIEWER_API::isHighlighted ( ) const [inline, virtual]

Returns true if object is highlighted.

Definition at line 150 of file GLViewer_Object.h.

{ return myIsHigh; }
GLboolean GLVIEWER_API::isHighSelAll ( ) const [inline]

Checks highlight as whole object status.

Definition at line 178 of file GLViewer_BaseObjects.h.

{ return myHighSelAll; }
virtual bool GLVIEWER_API::IsIn ( const GLViewer_Pnt thePnt) const [virtual]

Returns true if a point lies inside this polygon.

virtual GLboolean GLVIEWER_API::isInside ( GLViewer_Rect  theRect) [virtual]

Returns if theRect inside object.

bool GLVIEWER_API::isNull ( ) const [inline]

Checks null status.

Definition at line 105 of file GLViewer_Geom.h.

{ return myLeft == 0.0 && myRight == 0.0 && myBottom == 0.0 && myTop == 0.0; }
virtual bool GLVIEWER_API::isPulling ( ) [inline, virtual]
Warning:
It is for ouv

Definition at line 124 of file GLViewer_Object.h.

{ return false; }
virtual bool GLVIEWER_API::isScalable ( ) [inline, virtual]
Warning:
It is for ouv

Definition at line 252 of file GLViewer_Object.h.

{ return true; }
virtual bool GLVIEWER_API::isSelectable ( ) [inline, virtual]

Returns true if object can be selected.

Definition at line 250 of file GLViewer_Object.h.

{ return true; }

Returns true if theObject is selected.

virtual GLboolean GLVIEWER_API::isSelected ( ) const [inline, virtual]

Returns true if object is selected.

Definition at line 152 of file GLViewer_Object.h.

{ return myIsSel; }

Checks active status of sketcher.

bool GLVIEWER_API::isTooTipHTML ( ) const [inline]

Returns true if tool tip contains HTML tags.

Definition at line 199 of file GLViewer_Object.h.

{ return isToolTipHTML; }

Checks active status of transformer.

bool GLVIEWER_API::isUpdateAll ( ) const [inline]

Returns update flag in highlighting technology.

Definition at line 64 of file GLViewer_Context.h.

{ return myUpdateAll; }
bool GLVIEWER_API::isValid ( ) const [inline]

Checks valid status.

Definition at line 107 of file GLViewer_Geom.h.

{ return ( myLeft < myRight && myBottom < myTop ); }
void GLVIEWER_API::keyEvent ( QKeyEvent *  ) [private, slot]
virtual void GLVIEWER_API::keyPressEvent ( QKeyEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::keyReleaseEvent ( QKeyEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::leaveEvent ( QEvent *  ) [protected, virtual]
float GLVIEWER_API::left ( ) const [inline]

Definition at line 78 of file GLViewer_Geom.h.

{ return myLeft; }

Here is the caller graph for this function:

static GLuint GLVIEWER_API::loadTexture ( const QString &  fileName,
GLint *  x_size = 0,
GLint *  y_size = 0,
GLint *  t_size = 0 
) [static]

Loads texture from file.

Parameters:
fileName- the name of texture file
x_size- the horizontal size of picture ( less or equal texture horizontal size )
y_size- the vertical size of picture ( less or equal texture vertical size )
t_size- the size of texture ( texture vertical size equals texture horizontal size )

Sets lock status (enable/disable interavtive)

virtual bool GLVIEWER_API::maybeTip ( const QPoint &  ) [virtual]

Retuns true if iterator of selected objects is not set on last object.

virtual void GLVIEWER_API::mouseDoubleClickEvent ( QMouseEvent *  ) [protected, virtual]
void GLVIEWER_API::mouseEvent ( QMouseEvent *  ) [private, slot]
virtual void GLVIEWER_API::mouseMoveEvent ( QMouseEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::mouseMoveEvent ( QMouseEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::mousePressEvent ( QMouseEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::mousePressEvent ( QMouseEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::mouseReleaseEvent ( QMouseEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::mouseReleaseEvent ( QMouseEvent *  ) [protected, virtual]
void GLVIEWER_API::move ( GLfloat  theDX,
GLfloat  theDY 
) [inline]

Definition at line 55 of file GLViewer_Geom.h.

{ myX += theDX; myY += theDY; }
void GLVIEWER_API::move ( const float  x,
const float  y 
) [inline]

Definition at line 115 of file GLViewer_Geom.h.

                  {
                    myLeft   += x;
                    myRight  += x;
                    myTop    += y;
                    myBottom += y;
                  }

Here is the call graph for this function:

virtual void GLVIEWER_API::moveObject ( float  ,
float  ,
bool  fromGroup = false 
) [virtual]
virtual void GLVIEWER_API::moveObject ( float  ,
float  ,
bool  fromGroup = false 
) [virtual]
virtual void GLVIEWER_API::moveObject ( float  dx,
float  dy,
bool  fromGroup = false 
) [pure virtual]

Moves object per by recomputing.

Parameters:
dx- moving along X coord
dy- moving along Y coord
fromGroup- = true if this method called from group
virtual void GLVIEWER_API::moveObject ( float  ,
float  ,
bool  fromGroup = false 
) [virtual]
int GLVIEWER_API::MoveTo ( int  x,
int  y,
bool  byCircle = FALSE 
)

Main interactive method. Trace mouse in viewer window.

Parameters:
x- X coord of mouse cursor
y- Y coord of mouse cursor byCircle - true if needs round sensitive area around mouse cursor, else rectangle *function search object rectangle which intersect with sensitive area and call object highlight method

Returns number of objects in current selection.

Increment of iterator of selected objects.

virtual int GLVIEWER_API::numSelected ( ) const [pure virtual]
virtual int GLVIEWER_API::numSelected ( ) const [virtual]
virtual void GLVIEWER_API::onChangeBgColor ( ) [protected, virtual, slot]
virtual void GLVIEWER_API::onChangeBgColor ( ) [protected, virtual, slot]

Changes background color.

void GLVIEWER_API::onCreateGLMarkers ( int  number = 1000,
int  size = 5 
) [slot]

Creates set of marker number.

Parameters:
numberand radius =
size
void GLVIEWER_API::onCreateGLPolyline ( int  number = 100,
int  angles = 10,
int  size = 100 
) [slot]

Creates set of polyline number.

Parameters:
number,numberof angles =
anglesand diameter =
size
void GLVIEWER_API::onCreateGLText ( QString  text = "Text",
int  number = 1 
) [slot]

Creates set of text number.

Parameters:
numberand with text =
text
virtual void GLVIEWER_API::onKeyEvent ( SUIT_ViewWindow ,
QKeyEvent *   
) [protected, virtual, slot]
virtual void GLVIEWER_API::onMouseEvent ( SUIT_ViewWindow ,
QMouseEvent *   
) [protected, virtual, slot]
void GLVIEWER_API::onMouseEvent ( SUIT_ViewWindow ,
QMouseEvent *   
) [protected, slot]
virtual void GLVIEWER_API::onSelectionCancel ( ) [protected, virtual, slot]
virtual void GLVIEWER_API::onSelectionDone ( bool  add,
SelectionChangeStatus  status 
) [protected, virtual, slot]
virtual void GLVIEWER_API::onSelectionModeChanged ( ) [protected, virtual]
virtual void GLVIEWER_API::onSketch ( SketchState  ) [protected, virtual]
virtual void GLVIEWER_API::onSketchingFinished ( ) [protected, virtual]
virtual void GLVIEWER_API::onSketchingStarted ( ) [protected, virtual]
virtual void GLVIEWER_API::onTransform ( TransformState  ) [protected, virtual]
virtual void GLVIEWER_API::onTransformationFinished ( ) [protected, virtual]
virtual void GLVIEWER_API::onTransformationStarted ( ) [protected, virtual]
virtual void GLVIEWER_API::onUpdate ( int  ) [virtual]
virtual void GLVIEWER_API::onUpdate ( ) [virtual]

Updates view.

void GLVIEWER_API::onViewBack ( ) [inline, protected, slot]

Definition at line 104 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewBottom ( ) [inline, protected, slot]

Definition at line 107 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewFitAll ( ) [protected, slot]
void GLVIEWER_API::onViewFitArea ( ) [protected, slot]
void GLVIEWER_API::onViewFitSelect ( ) [protected, slot]
void GLVIEWER_API::onViewFront ( ) [inline, protected, slot]

Definition at line 103 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewGlobalPan ( ) [protected, slot]
void GLVIEWER_API::onViewLeft ( ) [inline, protected, slot]

Definition at line 106 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewPan ( ) [protected, slot]
void GLVIEWER_API::onViewReset ( ) [protected, slot]
void GLVIEWER_API::onViewRight ( ) [inline, protected, slot]

Definition at line 105 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewRotate ( ) [protected, slot]
void GLVIEWER_API::onViewTop ( ) [inline, protected, slot]

Definition at line 108 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewTrihedron ( ) [inline, protected, slot]

Definition at line 109 of file GLViewer_ViewFrame.h.

{};
void GLVIEWER_API::onViewZoom ( ) [protected, slot]
virtual void GLVIEWER_API::onWheelEvent ( SUIT_ViewWindow ,
QWheelEvent *   
) [protected, virtual, slot]
bool GLVIEWER_API::operator< ( const GLViewer_TexFindId  theStruct) const [inline]

Overloaded operator for using struct as MAP key.

Definition at line 85 of file GLViewer_Drawer.h.

  { 
    if ( myViewPortId != theStruct.myViewPortId )
      return myViewPortId < theStruct.myViewPortId;
    else if ( myPointSize != theStruct.myPointSize )
      return myPointSize < theStruct.myPointSize;
    else if ( myIsBold != theStruct.myIsBold )
      return myIsBold < theStruct.myIsBold;
    else if ( myIsItal != theStruct.myIsItal )
      return myIsItal < theStruct.myIsItal;
    else if ( myIsUndl != theStruct.myIsUndl )
      return myIsUndl < theStruct.myIsUndl;
    else
      return myFontFamily < theStruct.myFontFamily;
  }
SUIT_DataOwner* GLVIEWER_API::owner ( ) const [inline]
Warning:
It is for ouv

Definition at line 237 of file GLViewer_Object.h.

{ return myOwner; }

Here is the caller graph for this function:

virtual void GLVIEWER_API::paintEvent ( QPaintEvent *  ) [protected, virtual]

EVENTS.

virtual void GLVIEWER_API::paintEvent ( QPaintEvent *  ) [protected, virtual]
virtual void GLVIEWER_API::paintGL ( ) [protected, virtual]

A function is called in earch paint event of window.

virtual void GLVIEWER_API::pan ( int  ,
int   
) [protected, pure virtual]
static int GLVIEWER_API::panButton ( ) [inline, static]

Sets/returns mouse button used for panning ( MB2 by default )

Definition at line 157 of file GLViewer_Viewer.h.

{ return panBtn; }
static int GLVIEWER_API::panGlobalButton ( ) [inline, static]

Sets/returns mouse button used for global pan ( MB1 by default )

Definition at line 161 of file GLViewer_Viewer.h.

{ return panGlobalBtn; }
virtual bool GLVIEWER_API::portContains ( GLViewer_Pnt  ) [inline, virtual]
Warning:
It is for ouv

Definition at line 116 of file GLViewer_Object.h.

{ return false; }
virtual void GLVIEWER_API::pull ( GLViewer_Pnt  ,
GLViewer_Object  
) [inline, virtual]
Warning:
It is for ouv

Definition at line 120 of file GLViewer_Object.h.

{}

Redraw external pa inters.

A function remove tool tip form widget window.

void GLVIEWER_API::remSelected ( GLViewer_Object theObject,
bool  updateViewer 
)

A function make theObject as unselected object and update viewer if updateViewer = true.

void GLVIEWER_API::repaintView ( GLViewer_ViewFrame theView = NULL,
bool  makeCurrent = false 
)

Repaints view.

Parameters:
theView.If
theView= NULL repaints all views.
bool GLVIEWER_API::replaceObject ( GLViewer_Object oldObject,
GLViewer_Object newObject 
)

Replacing objects in context.

Function search active and incative objects

virtual void GLVIEWER_API::reset ( ) [protected, pure virtual]

TO BE REDEFINED.

virtual void GLVIEWER_API::resizeGL ( int  ,
int   
) [protected, virtual]

A function is called in earch resize event of window.

float GLVIEWER_API::right ( ) const [inline]

Definition at line 79 of file GLViewer_Geom.h.

{ return myRight; }

Here is the caller graph for this function:

static int GLVIEWER_API::rotateButton ( ) [inline, static]

Sets/returns mouse butto which will be used for rotation ( MB1 by default )

Definition at line 242 of file GLViewer_Viewer2d.h.

{ return rotateBtn; }
virtual GLboolean GLVIEWER_API::select ( GLfloat  x,
GLfloat  y,
GLfloat  tol,
GLViewer_Rect  rect,
GLboolean  isFull = GL_FALSE,
GLboolean  isCircle = GL_FALSE,
GLboolean  isShift = GL_FALSE 
) [virtual]
virtual void GLVIEWER_API::select ( bool  append = false) [pure virtual]

Selects highlight objects.

virtual void GLVIEWER_API::select ( bool  append = false) [virtual]
virtual void GLVIEWER_API::select ( const QRect &  ,
bool  append = false 
) [pure virtual]

Selects by rect.

virtual void GLVIEWER_API::select ( const QRect &  ,
bool  append = false 
) [virtual]
int GLVIEWER_API::Select ( bool  Append = FALSE,
bool  byCircle = FALSE 
)

A function selecting already highlighting object by calling object method select.

Parameters:
Append- true if new selection will be append to existing selection, false - another
byCircle- true if needs round selection area in complex object
virtual GLboolean GLVIEWER_API::select ( GLfloat  x,
GLfloat  y,
GLfloat  tol,
GLViewer_Rect  rect,
GLboolean  isFull = GL_FALSE,
GLboolean  isCircle = GL_FALSE,
GLboolean  isShift = GL_FALSE 
) [pure virtual]

Computes select presentation.

Parameters:
x- x coord
y- y coord
tol- tolerance of detecting
rect- Non empty for rectangle selection
isFull- = true if
isCircle- = true if sensitive area of detection is round
isShift- = true if selection exec with append option
virtual GLboolean GLVIEWER_API::select ( GLfloat  x,
GLfloat  y,
GLfloat  tol,
GLViewer_Rect  rect,
GLboolean  isFull = GL_FALSE,
GLboolean  isCircle = GL_FALSE,
GLboolean  isShift = GL_FALSE 
) [virtual]
virtual GLboolean GLVIEWER_API::select ( GLfloat  x,
GLfloat  y,
GLfloat  tol,
GLViewer_Rect  rect,
GLboolean  isFull = GL_FALSE,
GLboolean  isCircle = GL_FALSE,
GLboolean  isShift = GL_FALSE 
) [virtual]
int GLVIEWER_API::SelectByRect ( const QRect &  theRect,
bool  Append = FALSE 
)

A function selecting objects on scene by rectangle.

Parameters:
theRect- rectangle of selection
Append- true if new selection will be append to existing selection, false - another *function search object rectangle which intersect with theRect and call object select method

Returns object corresponding the current iterator of selected objects.

Quantity_NameOfColor GLVIEWER_API::SelectionColor ( ) [inline]

Returns select color.

Definition at line 93 of file GLViewer_Context.h.

{ return mySelectionColor; } 
void GLVIEWER_API::selSelectionDone ( bool  append,
SelectionChangeStatus  status 
) [signal]
static void GLVIEWER_API::setAccelKey ( int  k) [inline, static]

Definition at line 150 of file GLViewer_Viewer.h.

{ acccelKey = k; }

A function installing to theObject active status.

void GLVIEWER_API::setAntialiasing ( const bool  on)

The function enables and disables antialiasing in Open GL (for points, lines and polygons).

static void GLVIEWER_API::setAppendKey ( int  k) [inline, static]

Definition at line 78 of file GLViewer_Selector.h.

{ apppendKey = k; }
void GLVIEWER_API::setArrowHeightBottom ( const int  HeightBot)

A function installing height of arrow cut on bottom.

void GLVIEWER_API::setArrowHeightTop ( const int  HeightTop)

A function installing height of arrow header.

void GLVIEWER_API::setArrowWidthBottom ( const int  WidthBot)

A function installing width of base part of arrow.

void GLVIEWER_API::setArrowWidthTop ( const int  WidthTop)

A function installing width of wide part of arrow.

virtual void GLVIEWER_API::setAspectLine ( GLViewer_AspectLine aspect) [inline, virtual]

Installs acpect line for object presentation.

Definition at line 162 of file GLViewer_Object.h.

{ myAspectLine = aspect; }
void GLVIEWER_API::setAxisColor ( GLfloat  r,
GLfloat  g,
GLfloat  b 
)

Sets color of grid axes in RGB format.

void GLVIEWER_API::setBackground ( QString  theFileName)

A function load picture from file with name theFileName and post it in center of global OpenGL scene.

void GLVIEWER_API::setBackgroundColor ( const QColor &  )
virtual void GLVIEWER_API::setBackgroundColor ( const QColor &  ) [virtual]

Sets background color.

void GLVIEWER_API::setBottom ( float  theBottom) [inline]

Definition at line 89 of file GLViewer_Geom.h.

{ myBottom = theBottom; }
virtual void GLVIEWER_API::setCenter ( int  ,
int   
) [protected, pure virtual]

Sets Radius of center point( begin coords )

void GLVIEWER_API::setClosed ( GLboolean  closed) [inline]

On/off closed status of polyline.

Definition at line 171 of file GLViewer_BaseObjects.h.

{ myIsClosed = closed; }
void GLVIEWER_API::setColor ( const QColor &  color) [inline]

Sets text color.

Definition at line 69 of file GLViewer_Text.h.

{ myColor = color; }
void GLVIEWER_API::setColor ( const QColor &  color) [inline]

A function installing color.

Definition at line 97 of file GLViewer_Compass.h.

{ myCol = color; }
void GLVIEWER_API::setCompass ( const QColor &  color,
const int  size,
const Position  pos 
)

A function installing main parameters of compass.

Sets context from Viewer2d.

Definition at line 55 of file GLViewer_Selector2d.h.

{ myGLContext = glc; }
void GLVIEWER_API::setCoords ( float  theLeft,
float  theRight,
float  theBottom,
float  theTop 
) [inline]

Definition at line 91 of file GLViewer_Geom.h.

  { myLeft = theLeft; myRight = theRight; myBottom = theBottom; myTop = theTop; }
static void GLVIEWER_API::setDefaultCursor ( const QCursor &  newCursor) [static]
virtual void GLVIEWER_API::setDrawer ( GLViewer_Drawer theDrawer) [inline, virtual]

Installing already exist drawer with same type.

Definition at line 74 of file GLViewer_Object.h.

{ myDrawer = theDrawer; }
virtual void GLVIEWER_API::setDrawer ( GLViewer_Drawer theDrawer) [virtual]
static void GLVIEWER_API::setFitRectButton ( int  b) [inline, static]

Definition at line 166 of file GLViewer_Viewer.h.

{ fitRectBtn = b; }
void GLVIEWER_API::setFont ( const QFont  theQFont) [inline]

Sets text font.

Definition at line 74 of file GLViewer_Text.h.

{ myQFont = theQFont; }
void GLVIEWER_API::setFont ( QFont  theFont)

A function installing.

void GLVIEWER_API::setFont ( const QFont &  font) [inline]

Sets a default font to be used by drawGLText method.

Parameters:
font- the default font

Definition at line 374 of file GLViewer_Drawer.h.

{ myFont = font; }

Here is the call graph for this function:

void GLVIEWER_API::setGLText ( GLViewer_Text glText) [inline]

Installs GLText to object.

Definition at line 157 of file GLViewer_Object.h.

{ myGLText = glText; }
void GLVIEWER_API::setGridColor ( GLfloat  r,
GLfloat  g,
GLfloat  b 
)

Sets color of grid in RGB format.

Adds object to group theGroup.

static void GLVIEWER_API::setHandCursor ( const QCursor &  newCursor) [static, protected]
void GLVIEWER_API::setHeight ( int  h) [inline]

Definition at line 244 of file GLViewer_BaseObjects.h.

{ myHeight=h; }
void GLVIEWER_API::SetHighlightColor ( Quantity_NameOfColor  aCol)

A function installing highlight color for all presentation (does not work)

void GLVIEWER_API::setHighSelAll ( GLboolean  highSelAll) [inline]

On/off highlight as whole object status.

Definition at line 176 of file GLViewer_BaseObjects.h.

{ myHighSelAll = highSelAll; }
virtual void GLVIEWER_API::setHilightColor ( Quantity_NameOfColor  ) [virtual]
virtual void GLVIEWER_API::setHilightColor ( Quantity_NameOfColor  ) [pure virtual]

A function installing to theObject inactive status.

void GLVIEWER_API::setIsEmpty ( bool  on) [inline]

On/off empty status.

Definition at line 100 of file GLViewer_Geom.h.

{ myIsEmpty = on; }
void GLVIEWER_API::setLeft ( float  theLeft) [inline]

Definition at line 86 of file GLViewer_Geom.h.

{ myLeft = theLeft; }
void GLVIEWER_API::setLineColors ( QColor  nc = Qt::black,
QColor  hc = Qt::cyan,
QColor  sc = Qt::red 
)

A function for installing the line colors.

Parameters:
ncis normal color
hcis highlight color
scis select color
int GLVIEWER_API::setLineType ( const int  theType)

A function for installing the line type.

Parameters:
theTypeequals 0 for normal line and 1 for strip line
int GLVIEWER_API::setLineWidth ( const float  theWidth)

A function for installing the line width.

void GLVIEWER_API::setMarkerSize ( const float  size) [inline]

Sets merker radius.

Definition at line 91 of file GLViewer_BaseObjects.h.

void GLVIEWER_API::setMinRectSize ( const QSize &  minSize)
void GLVIEWER_API::setName ( QString  name) [inline]

Installs object name.

Definition at line 171 of file GLViewer_Object.h.

{ myName = name; } 

SetS number of points.

Sets markers number.

Translate objects to byte array.

void GLVIEWER_API::setOrigin ( double  x,
double  y 
)

A function installing the origin in reference system.

Warning:
It is for ouv

Definition at line 239 of file GLViewer_Object.h.

{ myOwner = owner; }

Here is the call graph for this function:

void GLVIEWER_API::setPan ( GLfloat  xPan,
GLfloat  yPan,
GLfloat  zPan 
)

A function for installing the offset parameters of Window in OpenGL global scene.

void GLVIEWER_API::setPan ( float  xp,
float  yp 
)

Sets offset along x and y direction.

static void GLVIEWER_API::setPanButton ( int  b) [inline, static]

Definition at line 158 of file GLViewer_Viewer.h.

{ panBtn = b; }
static void GLVIEWER_API::setPanCursor ( const QCursor &  newCursor) [static, protected]
static void GLVIEWER_API::setPanglCursor ( const QCursor &  newCursor) [static, protected]
static void GLVIEWER_API::setPanGlobalButton ( int  b) [inline, static]

Definition at line 162 of file GLViewer_Viewer.h.

{ panGlobalBtn = b; }
void GLVIEWER_API::setPos ( const Position  pos) [inline]

A function installing position.

Definition at line 92 of file GLViewer_Compass.h.

{ myPos = pos; }
void GLVIEWER_API::setPosition ( float  xPos,
float  yPos 
) [inline]

Sets text position.

Definition at line 64 of file GLViewer_Text.h.

{ myXPos = xPos; myYPos = yPos; }
virtual void GLVIEWER_API::setRect ( GLViewer_Rect rect) [inline, virtual]

Installs object rectangle.

Definition at line 130 of file GLViewer_Object.h.

{ myRect = rect; }
void GLVIEWER_API::setResize ( float  winW,
float  winH,
float  Zoom 
)

Recomputes grid in new size and scale of view.

void GLVIEWER_API::setRight ( float  theRight) [inline]

Definition at line 87 of file GLViewer_Geom.h.

{ myRight = theRight; }
static void GLVIEWER_API::setRotateButton ( int  b) [inline, static]

Definition at line 243 of file GLViewer_Viewer2d.h.

{ rotateBtn = b; }
void GLVIEWER_API::setRotation ( double  rotation)

A function installing rotation angle of axes in reference system.

void GLVIEWER_API::setRotation ( GLfloat  ,
GLfloat  ,
GLfloat  ,
GLfloat   
)

A function for installing the parameters of current rotation.

void GLVIEWER_API::setRotationAngle ( GLfloat  a) [inline]

A function for installing the rotation angle of Window in OpenGL global scene in degree.

Only in 2D

Definition at line 84 of file GLViewer_Widget.h.

void GLVIEWER_API::setRotationStart ( GLfloat  rotationStartX,
GLfloat  rotationStartY,
GLfloat  rotationStartZ 
)

A function for installing the start point of curren rotation of Window in OpenGL global scene.

static void GLVIEWER_API::setRotCursor ( const QCursor &  newCursor) [static]
void GLVIEWER_API::setScale ( GLfloat  xScale,
GLfloat  yScale,
GLfloat  zScaleGLfloat 
)

A function for installing the scales of OpenGL scene.

virtual void GLVIEWER_API::setScale ( GLfloat  xScale,
GLfloat  yScale 
) [inline, virtual]

Installs scale factors.

Definition at line 138 of file GLViewer_Object.h.

{ myXScale = xScale; myYScale = yScale; }

Sets step of scale.

virtual void GLVIEWER_API::setSelectColor ( Quantity_NameOfColor  ) [virtual]
virtual void GLVIEWER_API::setSelectColor ( Quantity_NameOfColor  ) [pure virtual]
void GLVIEWER_API::setSelected ( const TColStd_SequenceOfInteger &  )

Sets selected nembers.

void GLVIEWER_API::setSelected ( GLViewer_Object theObject,
bool  updateViewer 
)

A function make theObject as selected object and update viewer if updateViewer = true.

virtual void GLVIEWER_API::setSelected ( GLboolean  state) [inline, virtual]

Installs select status to object.

Definition at line 154 of file GLViewer_Object.h.

{ myIsSel = state; }
void GLVIEWER_API::SetSelectionColor ( Quantity_NameOfColor  aCol)

A function installing select color for all presentation (does not work)

void GLVIEWER_API::setSeparator ( int  theSep) [inline]

Sets text separator.

Definition at line 81 of file GLViewer_Text.h.

{ mySeparator = theSep; }
void GLVIEWER_API::setSeparator ( int  theSeparator) [inline]

Installing separator between letters.

Definition at line 137 of file GLViewer_Drawer.h.

{ mySeparator = theSeparator; }
void GLVIEWER_API::setSize ( float  xs,
float  ys 
)

Sets steps along x and y directions.

void GLVIEWER_API::setSize ( const int  size)

A function installing diameter.

static void GLVIEWER_API::setSketchButton ( int  b) [inline, static]

Definition at line 216 of file GLViewer_Viewer.h.

{ sketchBtn = b; }
static void GLVIEWER_API::setSketchCursor ( const QCursor &  newCursor) [static]

Activates/deactivates sketching.

void GLVIEWER_API::setText ( const QString &  text) [inline]

Sets text.

Definition at line 59 of file GLViewer_Text.h.

{ myText = text; }
void GLVIEWER_API::setText ( const QString &  theText) [inline]

Definition at line 59 of file GLViewer_ToolTip.h.

{ myText = theText; }

Returns text format BITMAP or TEXTURE.

Definition at line 99 of file GLViewer_Text.h.

{ myDTF = theDTF; }

Sets a default text displaying format to be used by drawGLText method.

Parameters:
format- the default text displaying format

Definition at line 383 of file GLViewer_Drawer.h.

Here is the call graph for this function:

void GLVIEWER_API::setTextScale ( const GLfloat  factor) [inline]

Sets a text string displaying scale factor (used only with text format DTF_TEXTURE_SCALABLE)

Parameters:
factor- scale factor

Definition at line 392 of file GLViewer_Drawer.h.

{ myTextScale = factor; }
void GLVIEWER_API::setTolerance ( int  tol) [inline]

A function installing tolerance in window pixels for highlghting and selection methods.

Definition at line 124 of file GLViewer_Context.h.

{ myTolerance = tol; }
void GLVIEWER_API::setToolTipFormat ( bool  isHTML) [inline]

Installs tool tip supporting of HTML tags.

Definition at line 201 of file GLViewer_Object.h.

{ isToolTipHTML = isHTML; }
void GLVIEWER_API::setToolTipText ( QString  str) [inline]

Installs onject tool tip text.

Definition at line 194 of file GLViewer_Object.h.

{ myToolTipText = str; }
void GLVIEWER_API::setTop ( float  theTop) [inline]

Definition at line 88 of file GLViewer_Geom.h.

{ myTop = theTop; }

Activates/deactivates transformer.

A function installing type of system.

void GLVIEWER_API::setUnits ( double  x,
double  y 
)

A function installing units along axes.

void GLVIEWER_API::setUpdateAll ( bool  on) [inline]

A function installing update flag in highlighting technology.

Definition at line 62 of file GLViewer_Context.h.

{ myUpdateAll = on; }
virtual void GLVIEWER_API::setViewManager ( SUIT_ViewManager *  theViewManager) [virtual]
void GLVIEWER_API::setVisible ( const bool  vis = true)

A function installing a visible status.

virtual void GLVIEWER_API::setVisible ( bool  theStatus) [inline, virtual]

Installs visible object status.

Definition at line 191 of file GLViewer_Object.h.

{ myIsVisible = theStatus; }
virtual void GLVIEWER_API::setVisualParameters ( const QString &  parameters) [virtual]
void GLVIEWER_API::setWidth ( int  w) [inline]

Definition at line 243 of file GLViewer_BaseObjects.h.

{ myWidth=w; }
void GLVIEWER_API::setX ( GLfloat  theX) [inline]

Definition at line 52 of file GLViewer_Geom.h.

{ myX = theX; }
void GLVIEWER_API::setXCoord ( GLfloat *  xCoord,
int  size 
)

Sets array of x coords of markers.

void GLVIEWER_API::setXCoord ( GLfloat *  xCoord,
int  size 
)

Sets array of x coords of points.

void GLVIEWER_API::setXY ( GLfloat  theX,
GLfloat  theY 
) [inline]

Definition at line 54 of file GLViewer_Geom.h.

{ myX = theX; myY = theY; }
void GLVIEWER_API::setY ( GLfloat  theY) [inline]

Definition at line 53 of file GLViewer_Geom.h.

{ myY = theY; }
void GLVIEWER_API::setYCoord ( GLfloat *  yCoord,
int  size 
)

Sets array of y coords of markers.

void GLVIEWER_API::setYCoord ( GLfloat *  yCoord,
int  size 
)

Sets array of y coords of points.

bool GLVIEWER_API::setZoom ( float  zoom)

Sets common scale factor along x and y direction.

virtual GLboolean GLVIEWER_API::setZoom ( GLfloat  zoom,
bool  recompute,
bool  fromGroup = false 
) [virtual]
Warning:
It is for ouv
static void GLVIEWER_API::setZoomButton ( int  b) [inline, static]

Definition at line 154 of file GLViewer_Viewer.h.

{ zoomBtn = b; }
static void GLVIEWER_API::setZoomCursor ( const QCursor &  newCursor) [static, protected]
void GLVIEWER_API::showTip ( ) [private, slot]
QSize GLVIEWER_API::sizeHint ( ) const
static int GLVIEWER_API::sketchButton ( ) [inline, static]

Sets/returns mouse button used for sketching ( MB1 by default )

Definition at line 215 of file GLViewer_Viewer.h.

{ return sketchBtn; }
virtual void GLVIEWER_API::startOperations ( QMouseEvent *  ) [inline, protected, virtual]

Definition at line 110 of file GLViewer_Viewer.h.

{}
virtual void GLVIEWER_API::startOperations ( QWheelEvent *  ) [inline, protected, virtual]

Definition at line 113 of file GLViewer_Viewer.h.

{}
virtual void GLVIEWER_API::startOperations ( QMouseEvent *  ) [protected, virtual]

Starts any operations on mouse event.

virtual void GLVIEWER_API::startOperations ( QWheelEvent *  ) [protected, virtual]

Starts any operations on mouse wheel event.

virtual bool GLVIEWER_API::startPulling ( GLViewer_Pnt  ) [inline, virtual]
Warning:
It is for ouv

Definition at line 118 of file GLViewer_Object.h.

{ return false; }
bool GLVIEWER_API::testRotation ( QMouseEvent *  ) [private]

Rotation transformation.

Returns a default text displaying format used by drawGLText method.

Definition at line 386 of file GLViewer_Drawer.h.

{ return myTextFormat; }
GLViewer_Rect GLVIEWER_API::textRect ( const QString &  ) const

Returns a rectangle of text (without viewer scale)

GLfloat GLVIEWER_API::textScale ( ) const [inline]

Returns a text string displaying scale factor.

Definition at line 395 of file GLViewer_Drawer.h.

{ return myTextScale; }
void GLVIEWER_API::timeIsOut ( ) [protected]
float GLVIEWER_API::top ( ) const [inline]

Definition at line 80 of file GLViewer_Geom.h.

{ return myTop; }

Here is the caller graph for this function:

QRect GLVIEWER_API::toQRect ( ) [inline]
Warning:
This method translate only rect format

Definition at line 95 of file GLViewer_Geom.h.

                        { return QRect( ( int )myLeft, ( int )myBottom,
                                        ( int )( myRight - myLeft ),
                                        ( int )( myTop - myBottom ) ); }
virtual void GLVIEWER_API::toReference ( double &  x,
double &  y 
) [protected, virtual]

A function transforms system coords to coords in reference system.

void GLVIEWER_API::transform ( GLViewer_CoordSystem aSystem,
double &  x,
double &  y 
)

Transform the coordinates x, y from current CS to aSystem.

void GLVIEWER_API::transformCoordsToHPGL ( double &  x,
double &  y 
) [protected]

Transforms point (x,y) in Viewer CS to HPGL CS.

void GLVIEWER_API::transformCoordsToPS ( double &  x,
double &  y 
) [protected]

Transforms point (x,y) in Viewer CS to Post Script CS.

virtual void GLVIEWER_API::translateBackgroundToPS ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPSCS 
) [virtual]

A function translate background of window in to PostScript file on disk.

Parameters:
hFilethe name of PostScript file chosen by user
aViewerCSthe GLViewer_CoordSystem of window
aPSCSthe GLViewer_CoordSystem of PostScript page
virtual bool GLVIEWER_API::translateTo ( VectorFileType  aType,
QString  FileName,
PaperType  aPType,
double  mmLeft,
double  mmRight,
double  mmTop,
double  mmBottom 
) [virtual]

Translates current view content to vector file.

virtual bool GLVIEWER_API::translateToHPGL ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aHPGLCS 
) [virtual]
virtual bool GLVIEWER_API::translateToHPGL ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aHPGLCS 
) [virtual]
virtual bool GLVIEWER_API::translateToHPGL ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aHPGLCS 
) [pure virtual]

A function translate object in to HPGL file on disk.

Parameters:
hFilethe name of PostScript file chosen by user
aViewerCSthe GLViewer_CoordSystem of window
aHPGLCSthe GLViewer_CoordSystem of PostScript page
virtual bool GLVIEWER_API::translateToHPGL ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aHPGLCS 
) [virtual]
virtual bool GLVIEWER_API::translateToHPGL ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aHPGLCS 
) [virtual]

A function translate object in to HPGL file on disk.

Parameters:
hFilethe name of PostScript file chosen by user
aViewerCSthe GLViewer_CoordSystem of window
aHPGLCSthe GLViewer_CoordSystem of PostScript page
virtual bool GLVIEWER_API::translateToPS ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPSCS 
) [virtual]
virtual bool GLVIEWER_API::translateToPS ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPSCS 
) [virtual]
virtual bool GLVIEWER_API::translateToPS ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPSCS 
) [pure virtual]

A function translate object in to PostScript file on disk.

Parameters:
hFilethe name of PostScript file chosen by user
aViewerCSthe GLViewer_CoordSystem of window
aPSCSthe GLViewer_CoordSystem of PostScript page
virtual bool GLVIEWER_API::translateToPS ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPSCS 
) [virtual]
virtual bool GLVIEWER_API::translateToPS ( QFile &  hFile,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPSCS 
) [virtual]

A function translate object in to PostScript file on disk.

Parameters:
hFilethe name of PostScript file chosen by user
aViewerCSthe GLViewer_CoordSystem of window
aPSCSthe GLViewer_CoordSystem of PostScript page
void GLVIEWER_API::transPoint ( GLfloat &  x,
GLfloat &  y 
)

Translates point (x,y) from global CS to curreent viewer CS.

static QString GLVIEWER_API::Type ( ) [inline, static]

Definition at line 76 of file GLViewer_Viewer.h.

{ return "GLViewer_ViewModel";  }

Here is the caller graph for this function:

int GLVIEWER_API::type ( ) const

Returns transformer type.

int GLVIEWER_API::type ( ) const [inline]

Returns sketcher type.

Definition at line 206 of file GLViewer_Viewer.h.

{ return myType; }
virtual void GLVIEWER_API::undetectAll ( ) [pure virtual]
virtual void GLVIEWER_API::undetectAll ( ) [virtual]
virtual GLboolean GLVIEWER_API::unhighlight ( ) [virtual]
virtual GLboolean GLVIEWER_API::unhighlight ( ) [pure virtual]

Clears all highlight information.

virtual GLboolean GLVIEWER_API::unhighlight ( ) [virtual]
virtual GLboolean GLVIEWER_API::unhighlight ( ) [virtual]
virtual void GLVIEWER_API::unhilightDetected ( ) [protected, virtual]
virtual GLboolean GLVIEWER_API::unselect ( ) [virtual]
virtual GLboolean GLVIEWER_API::unselect ( ) [pure virtual]

Clears all select information.

virtual GLboolean GLVIEWER_API::unselect ( ) [virtual]
virtual GLboolean GLVIEWER_API::unselect ( ) [virtual]
virtual void GLVIEWER_API::unselectAll ( ) [pure virtual]
virtual void GLVIEWER_API::unselectAll ( ) [virtual]
virtual void GLVIEWER_API::update ( int  = 0) [virtual]

Redraws all active objects by updating all drawers in all views.

Updates rect of global scene by adding new rect.

Recomputes global scene rect.

void GLVIEWER_API::updateColors ( QColor  colorH,
QColor  colorS 
)

Updates colors for all drawers (does not work)

void GLVIEWER_API::updateDrawers ( GLboolean  onlyUpdate,
GLfloat  scX = 0.0,
GLfloat  scY = 0.0 
)

Updates all drawers with new scale factor.

Updates objects after updating font.

virtual bool GLVIEWER_API::updateOperations ( QMouseEvent *  ) [inline, protected, virtual]

Definition at line 111 of file GLViewer_Viewer.h.

{ return false; }
virtual bool GLVIEWER_API::updateOperations ( QMouseEvent *  ) [protected, virtual]

Updates started operations on mouse event.

void GLVIEWER_API::updateScales ( GLfloat  theX,
GLfloat  theY 
)

A function updating scales of all objects in context.

void GLVIEWER_API::updateZoom ( GLViewer_Object sender,
float  zoom 
)
Warning:
it is for ouv
virtual GLboolean GLVIEWER_API::updateZoom ( bool  zoomIn) [virtual]
Warning:
It is for ouv
void GLVIEWER_API::vfDrawExternal ( QPainter *  ) [signal]
void GLVIEWER_API::vfViewClosing ( QCloseEvent *  ) [signal]
void GLVIEWER_API::vpDrawExternal ( QPainter *  ) [signal]
void GLVIEWER_API::vpKeyEvent ( QKeyEvent *  ) [signal]
void GLVIEWER_API::vpMouseEvent ( QMouseEvent *  ) [signal]
void GLVIEWER_API::vpWheelEvent ( QWheelEvent *  ) [signal]
void GLVIEWER_API::wakeup ( int  mseconds = TIP_TIME) [private]
void GLVIEWER_API::wheelEvent ( QWheelEvent *  ) [private, slot]
virtual void GLVIEWER_API::wheelEvent ( QWheelEvent *  ) [protected, virtual]
void GLVIEWER_API::wheelZoomChange ( bool  ) [signal]

Signal needs for optimum recompute of zoom depending objects Warning: use recompute without update viewer.

float GLVIEWER_API::width ( ) const [inline]

Definition at line 83 of file GLViewer_Geom.h.

{ return fabs( myRight - myLeft ); }
GLfloat GLVIEWER_API::x ( ) const [inline]

Definition at line 50 of file GLViewer_Geom.h.

{ return myX; }

Here is the caller graph for this function:

GLfloat GLVIEWER_API::y ( ) const [inline]

Definition at line 51 of file GLViewer_Geom.h.

{ return myY; }

Here is the caller graph for this function:

virtual void GLVIEWER_API::zoom ( int  ,
int  ,
int  ,
int   
) [protected, pure virtual]
static int GLVIEWER_API::zoomButton ( ) [inline, static]

Sets/returns mouse button used for zooming ( MB1 by default )

Definition at line 153 of file GLViewer_Viewer.h.

{ return zoomBtn; }

Friends And Related Function Documentation

friend class GLViewer_ViewSketcher [friend]

Definition at line 64 of file GLViewer_ViewPort.h.

friend class GLViewer_ViewTransformer [friend]

Definition at line 65 of file GLViewer_ViewPort.h.


Member Data Documentation

int GLVIEWER_API::acccelKey [static, protected]

Definition at line 185 of file GLViewer_Viewer.h.

int GLVIEWER_API::apppendKey [static, private]

Definition at l