Logo Search packages:      
Sourcecode: qcad version File versions  Download package

RS_GraphicView Class Reference

#include <rs_graphicview.h>

Inheritance diagram for RS_GraphicView:

QG_GraphicView RS_StaticGraphicView QC_GraphicView

List of all members.


Detailed Description

This class is a common GUI interface for the graphic viewer widget which has to be implementet by real GUI classes such as the Qt graphical view.

Note that this is just an interface used as a slot to communicate with the qcadlib from a GUI level.

Definition at line 72 of file rs_graphicview.h.


Public Member Functions

virtual void adjustOffsetControls ()
virtual void adjustZoomControls ()
void back ()
void centerOffsetX ()
void centerOffsetY ()
void centerX (double x)
void centerY (double y)
void cleanUp ()
void commandEvent (RS_CommandEvent *e)
virtual RS_PaintercreateDirectPainter ()=0
virtual RS_PaintercreatePainter ()=0
virtual void deleteEntity (RS_Entity *e)
virtual void destroyPainter ()=0
void disableCoordinateInput ()
void disableUpdate ()
virtual void drawAbsoluteZero ()
void drawArcSmooth (const RS_Vector &center, double radius, double a1, double a2, bool rev, const RS_Pen &pen)
virtual void drawEntity (RS_Entity *e, double patternOffset=0.0, bool db=false)
virtual void drawEntityPlain (RS_Entity *e, double patternOffset=0.0)
virtual void drawGrid ()
virtual void drawIt ()
void drawLineSmooth (const RS_Vector &p1, const RS_Vector &p2, const RS_Pen &pen)
virtual void drawMetaGrid ()
virtual void drawPaper ()
virtual void drawRelativeZero ()
virtual void drawWindow (RS_Vector v1, RS_Vector v2)
virtual void emulateMouseMoveEvent ()=0
void enableCoordinateInput ()
void enableUpdate ()
void enter ()
void freezeZoom (bool freeze)
RS_Color getBackground ()
int getBorderBottom ()
int getBorderLeft ()
int getBorderRight ()
int getBorderTop ()
RS_EntityContainergetContainer ()
RS_ActionInterfacegetCurrentAction ()
RS_ActionInterfacegetDefaultAction ()
RS2::SnapMode getDefaultSnapMode ()
bool getDeleteMode ()
RS2::DrawingMode getDrawingMode ()
RS_EventHandlergetEventHandler ()
RS_Vector getFactor ()
RS_Color getForeground ()
RS_GraphicgetGraphic ()
RS_GridgetGrid ()
virtual int getHeight ()=0
int getOffsetX ()
int getOffsetY ()
virtual RS_LineTypePatterngetPattern (RS2::LineType t)
RS_Vector getRelativeZero ()
bool getSimulationRapid ()
int getSimulationSpeed ()
RS2::SnapRestriction getSnapRestriction ()
virtual int getWidth ()=0
bool isDraftMode ()
bool isGridOn ()
bool isPrinting ()
bool isPrintPreview ()
bool isRelativeZeroLocked ()
bool isUpdateEnabled ()
bool isZoomFrozen ()
void keyPressEvent (RS_KeyEvent *e)
void keyReleaseEvent (RS_KeyEvent *e)
void killAllActions ()
void killSelectActions ()
void lockRelativeZero (bool lock)
void mouseEnterEvent ()
void mouseLeaveEvent ()
void mouseMoveEvent (RS_MouseEvent *e)
void mousePressEvent (RS_MouseEvent *e)
void mouseReleaseEvent (RS_MouseEvent *e)
void moveRelativeZero (const RS_Vector &pos)
virtual void redraw ()=0
virtual void restoreView ()
 RS_GraphicView ()
virtual void saveView ()
virtual void setBackground (const RS_Color &bg)
void setBorders (int left, int top, int right, int bottom)
void setContainer (RS_EntityContainer *container)
void setCurrentAction (RS_ActionInterface *action)
void setDefaultAction (RS_ActionInterface *action)
void setDefaultSnapMode (RS2::SnapMode sm)
void setDeleteMode (bool m)
void setDrawingMode (RS2::DrawingMode m)
void setFactor (double f)
void setFactorX (double f)
void setFactorY (double f)
void setGridColor (const RS_Color &c)
void setHighlightedColor (const RS_Color &c)
void setMetaGridColor (const RS_Color &c)
virtual void setMouseCursor (RS2::CursorType)
void setOffset (int ox, int oy)
void setOffsetX (int ox)
void setOffsetY (int oy)
virtual void setPainter (RS_Painter *p)
virtual void setPenForEntity (RS_Entity *e)
void setPrinting (bool p)
void setPrintPreview (bool pv)
void setRelativeZero (const RS_Vector &pos)
void setSelectedColor (const RS_Color &c)
void setSimulationRapid (bool r)
void setSimulationSmooth (bool s)
void setSimulationSpeed (int s)
void setSnapRestriction (RS2::SnapRestriction sr)
void simulateEntity (RS_Entity *e, const RS_Pen &pen)
void simulateIt ()
void simulationDelay (bool step=false)
RS_Vector toGraph (int x, int y)
RS_Vector toGraph (RS_Vector v)
double toGraphDX (int d)
double toGraphDY (int d)
double toGraphX (int x)
double toGraphY (int y)
RS_Vector toGui (RS_Vector v)
double toGuiDX (double d)
double toGuiDY (double d)
double toGuiX (double x, bool *visible=NULL)
double toGuiY (double y)
virtual void updateGrid ()
virtual void updateGridStatusWidget (const RS_String &)
virtual void updateView ()
virtual void zoomAuto (bool axis=true, bool keepAspectRatio=true)
virtual void zoomAutoY (bool axis=true)
virtual void zoomIn (double f=1.5, const RS_Vector &center=RS_Vector(false))
virtual void zoomInX (double f=1.5)
virtual void zoomInY (double f=1.5)
virtual void zoomOut (double f=1.5, const RS_Vector &center=RS_Vector(false))
virtual void zoomOutX (double f=1.5)
virtual void zoomOutY (double f=1.5)
virtual void zoomPage ()
virtual void zoomPan (int dx, int dy)
virtual void zoomPrevious ()
virtual void zoomScroll (RS2::Direction direction)
virtual void zoomWindow (RS_Vector v1, RS_Vector v2, bool keepAspectRatio=true)
virtual ~RS_GraphicView ()

Protected Attributes

RS_Color background
RS_EntityContainercontainer
RS2::SnapMode defaultSnapMode
RS2::SnapRestriction defaultSnapRes
bool deleteMode
RS2::DrawingMode drawingMode
RS_EventHandlereventHandler
RS_Color foreground
RS_Gridgrid
RS_Color gridColor
RS_Color highlightedColor
RS_Color metaGridColor
int mx
 Last known mouse cursor position.
int my
 Last known mouse cursor position.
RS_Painterpainter
RS_Color selectedColor
bool simulationRunning
 If true, the simulation is currectly running.

Private Attributes

int borderBottom
int borderLeft
int borderRight
int borderTop
bool draftMode
RS_Vector factor
int offsetX
int offsetY
RS_Vector previousFactor
int previousOffsetX
int previousOffsetY
bool printing
 Active when printing only:.
bool printPreview
 Print preview flag.
RS_Vector relativeZero
bool relativeZeroLocked
RS_Vector simulationLast
 Last position (for rapid move).
bool simulationRapid
 If true, the way between entities is also shown.
bool simulationSmooth
 If true, the entity is drawn slowly (pixel by pixel).
int simulationSpeed
 Simulation speed in percentage.
int updateEnabled
bool zoomFrozen

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index